I hereby claim:
- I am Eramdam on github.
- I am eramdam (https://keybase.io/eramdam) on keybase.
- I have a public key whose fingerprint is D428 64DC E1DA 8CA1 CA5D 91C8 BDE8 E9B2 FF55 71BB
To claim this, I am signing this object:
// Open facebook.com/messages and the stickers pop-up, click on a Facebook Sticker set, open up your JS console and paste this | |
function dumpStickers() { | |
URLs = []; | |
URLs.push(document.querySelectorAll('._5r8a._5r8b')[0].getAttribute('aria-label')); | |
[].slice.call(document.querySelectorAll('._5r8h')).forEach(function (el) { | |
URLs.push(el.querySelector('div').style.backgroundImage.replace('url(','').replace(')','').replace('p64','p128').replace('x64','x128')); | |
}); | |
return URLs; | |
} | |
copy(dumpStickers()); |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
## A little script that does REAL random wallpaper changing. Because the OSX's one sucks. | |
force=false; | |
while getopts ":f" opt; do | |
case $opt in | |
f) | |
force=true; | |
;; |
var request = require('request') | |
var clipboard = require('child_process').spawn('pbcopy') | |
var colors = require('colors') | |
var log = console.log | |
function getTags(artistName) { | |
request('http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&artist='+artistName+'&api_key=21c55ae94ac46850ab59171f7da02c1d&format=json', function(err, res, body) { | |
if(!err && res.statusCode == 200) { | |
var json = JSON.parse(body) |
Or 'How to don't loose time on these damn surveys and earn your stars and start playing the game you just got
Since the Nintendo's website uses jQuery, we should totally use it to do that.
Open your JavaScript console (Cmd+Alt+J on Chrome OSX/Ctrl+Shift+J on Chrome Windows) and type the following commands :
currentTune=`osascript itunes.scpt` | |
currentTune="$(perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$currentTune")" | |
open "http://www.youtube.com/results?search_query=${currentTune}" |
# This theme is a modification of the dpoggi one bundled with oh-my-zsh, it features a non-emoji lightning character and some visual tweaks | |
function my_git_prompt_info() { | |
if [[ "$(git config --get oh-my-zsh.hide-status)" != "1" ]]; then | |
ref=$(command git symbolic-ref HEAD 2> /dev/null) || \ | |
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return | |
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$(git_remote_status)$ZSH_THEME_GIT_PROMPT_SUFFIX" | |
fi | |
} | |
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi |