This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// auto fill captcha | |
// open http://www.seoreviewtools.com/bulk-seomoz-authority-checker/ | |
// open console | |
// paste this code | |
var questionText = $('.captcha').text() | |
var questionNumber = questionText.substring(0, questionText.indexOf('=')); | |
questionNumber = questionNumber.substring(8) | |
var answer = eval(questionNumber) | |
$('#captcha').val(answer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Press F5 on command line to drop cache | |
# Tested on Ubuntu 16 | |
is_sudoed=false | |
eval "f5() {zle push-line;LBUFFER+='fkey_f5';zle accept-line}" | |
zle -N f5 | |
bindkey '^[[15~' f5 | |
function fkey_f5 { | |
if [ "$is_sudoed" = 'true' ]; then | |
sync | sudo tee /proc/sys/vm/drop_caches | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fallocate -l 4G /swapfile | |
chmod 600 /swapfile | |
mkswap /swapfile | |
swapon /swapfile | |
swapon -s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
youtube-dl -i --extract-audio --audio-format mp3 |