I hereby claim:
- I am deanf on github.
- I am deanf (https://keybase.io/deanf) on keybase.
- I have a public key ASCcTLdNZBP5sSa9tL4j4zEsY3-uAb7j4XiLIeNwarZnKAo
To claim this, I am signing this object:
public static void DownloadFolder(this CloudStorage dropBoxStorage, ICloudDirectoryEntry remoteDir, string targetDir) | |
{ | |
foreach (ICloudFileSystemEntry fsentry in remoteDir) | |
{ | |
if (fsentry is ICloudDirectoryEntry) | |
{ | |
DownloadFolder(dropBoxStorage, fsentry as ICloudDirectoryEntry, Path.Combine(targetDir, fsentry.Name)); | |
} | |
else |
#!/bin/bash | |
for filename in *.pdf; do | |
pdftk $filename input_pw $1 output "$filename.tmp.pdf" | |
if [ $? -eq 0 ]; then | |
rm "$filename" | |
mv "$filename.tmp.pdf" "$filename" | |
touch "${filename}" | |
fi | |
done |
I hereby claim:
To claim this, I am signing this object:
This is a bash script that will automatically turn your wifi off if you connect your computer to an ethernet connection and turn wifi back on when you unplug your ethernet cable/adapter. If you decide to turn wifi on for whatever reason, it will remember that choice. This was improvised from this mac hint to work with Yosemite, and without hard-coding the adapter names. It's supposed to support growl, but I didn't check that part. I did, however, add OSX notification center support. Feel free to fork and fix any issues you encounter.
Most the credit for these changes go to Dave Holland.
#!/bin/bash | |
# Written by Frans Rosén (twitter.com/fransrosen) | |
_debug="$2" #turn on debug | |
_timeout="20" | |
#you need a valid key, since the errors happens after it validates that the key exist. we do not need the secret key, only access key | |
_aws_key="AKIA..." | |
H_ACCEPT="accept-language: en-US,en;q=0.9,sv;q=0.8,zh-TW;q=0.7,zh;q=0.6,fi;q=0.5,it;q=0.4,de;q=0.3" | |
H_AGENT="user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.146 Safari/537.36" |