Skip to content

Instantly share code, notes, and snippets.

Dean Fenster DeanF

Block or report user

Report or block DeanF

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
DeanF /
Created Feb 21, 2019 — forked from Dlat/
Using error messages to decloak an S3 bucket. Uses soap, unicode, post, multipart, streaming and index listing as ways of figure it out. You do need a valid aws-key (never the secret) to properly get the error messages
# Written by Frans Rosén (
_debug="$2" #turn on debug
#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
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"
DeanF /
Last active Jun 11, 2018 — forked from albertbori/
Automatically disable Wifi when an Ethernet connection (cable) is plugged in on a Mac


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.


  • Mac OSX 10+
  • Administrator privileges

Keybase proof

I hereby claim:

  • I am deanf on github.
  • I am deanf ( on keybase.
  • I have a public key ASCcTLdNZBP5sSa9tL4j4zEsY3-uAb7j4XiLIeNwarZnKAo

To claim this, I am signing this object:

DeanF /
Last active Mar 8, 2017
Unlocks all pdfs in a folder using pdftk
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}"
DeanF / Sharpbox.DownloadFolder.cs
Created Oct 11, 2013
DownloadFolder for Sharpbox
View Sharpbox.DownloadFolder.cs
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));
You can’t perform that action at this time.