I hereby claim:
- I am steingrd on github.
- I am steingrd (https://keybase.io/steingrd) on keybase.
- I have a public key whose fingerprint is 1828 80D9 DBA9 4CB0 5DF6 9DD9 AB3E 253F 20D0 530A
To claim this, I am signing this object:
| % curl -v \ | |
| -F comment='kommentar' \ | |
| -F filename=filnavn.pdf \ | |
| -F attachToPayment=false \ | |
| -F attachToSale=true \ | |
| -F [email protected] \ | |
| -H "Authorization: Bearer <token>" \ | |
| https://api.fiken.no/api/v2/companies/<companyname>/sales/<salesid>/attachments | |
| > POST /api/v2/companies/fiken-demo-god-og-tydelig-musikk-as/sales/1029625303/attachments HTTP/1.1 |
| import axios from "axios"; | |
| import FormData from "form-data"; | |
| import fs from "fs"; | |
| const apiToken = "..." | |
| const url = "..."; | |
| const formData = new FormData(); | |
| formData.append("file", fs.createReadStream(__dirname + '/test.pdf')); | |
| formData.append("filename", "test.pdf"); |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| wget http://podkast.nrk.no/program/radioresepsjonen.rss -O radioresepsjonen.rss | |
| grep enclosure radioresepsjonen.rss | cut -d '"' -f2 | cut -d '?' -f1 > urls.txt | |
| for line in $(cat urls.txt); do | |
| fname=$(echo $line | cut -d '/' -f6) | |
| if [ ! -e $fname ]; then | |
| wget $line |
| function e { | |
| TMP_P="$*" | |
| if [[ -z "$*" ]] | |
| then TMP_P=`pwd` | |
| fi | |
| explorer "`cygpath -w \"$TMP_P\"`" | |
| } |
| #!/bin/bash | |
| function check_setuppy_exists() { | |
| if [ ! -e setup.py ]; then | |
| echo "missing setup.py, aborting"; | |
| exit 1; | |
| fi | |
| } | |
| function create_virtualenv() { |
| #!/bin/sh | |
| # | |
| # From http://mid.gmane.org/[email protected] | |
| # | |
| usage() { | |
| echo "usage: `basename $0` [<limit>]" | |
| exit 1 | |
| } |
| function parse_git_branch { | |
| local BRANCH=`\git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
| if [ ! -z "${BRANCH}" ] | |
| then | |
| local STATUS=`\git status --porcelain 2> /dev/null` | |
| if [ ! -z "${STATUS}" ] | |
| then | |
| STATUS="*" | |
| fi | |