Skip to content

Instantly share code, notes, and snippets.

View Arthelon's full-sized avatar
🐈
xmas vibes

Arthelon Arthelon

🐈
xmas vibes
View GitHub Profile
@Arthelon
Arthelon / 0_reuse_code.js
Created February 3, 2016 09:32
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
### Keybase proof
I hereby claim:
* I am arthelon on github.
* I am arthelon (https://keybase.io/arthelon) on keybase.
* I have a public key whose fingerprint is ECEB 23CC 4DB1 538B 714F A155 7FD0 778A 9175 C080
To claim this, I am signing this object:
ffmpeg -i "${FILE}" -vn -ab 128k -ar 44100 -y "${FILE%.webm}.mp3";
mongo --eval "db.getSiblingDB('admin').shutdownServer()"
@Arthelon
Arthelon / time to triple equal
Created October 24, 2016 09:31
crockford on comparisons
I don't know who you are. I don't know what you want. If you are looking for type coercion, I can tell you I don't have reliable rules. But what I do have are a very particular set of skills; skills I have acquired over a very long career. Skills that make me a nightmare for people like you. If you let my comparison operators go now, that'll be the end of it. I will not look for you, I will not pursue you. But if you don't, I will look for you, I will find you, and I will lint you....
@Arthelon
Arthelon / S3 CORS
Created October 26, 2016 04:17
S3 CORS Config
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>DELETE</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<ExposeHeader>ETag</ExposeHeader>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
adb reverse tcp:8081 tcp:8081
mongoimport --db dbName --collection collectionName < fileName.json
pg_restore -c -F t -f=backup.tar
@Arthelon
Arthelon / DuckyZeroBindings
Created December 4, 2016 13:54
Ducky zero backlight bindings
Fn + F10 - Windows Key Lock
Fn + F12 - 6-key/N-key rollover
Fn + Up Arrow - Increase LED Brightness Intensity
Fn + Down Arrow - Decrease LED Brightness Intensity
Fn + 1-7 - Adjusting level (1-7) LED Brightness Intensity
Fn + 0 - All LED off
Fn + S - Saving lighting mode [Doesn't work for me--this says it applies to the DK2108S and DK2108LS, and I'm guessing this is an LS-specific feature]
Fn + 8 - Pulsing mode