Skip to content

Instantly share code, notes, and snippets.

View f4th4n's full-sized avatar
🌼
life is fun

Wildan Fathan f4th4n

🌼
life is fun
View GitHub Profile
@f4th4n
f4th4n / youtube-dl-audio
Created November 14, 2019 07:45
youtube-dl But Sound Only
youtube-dl -i --extract-audio --audio-format mp3
@f4th4n
f4th4n / create_swap.sh
Created August 10, 2017 16:08
Create Swap Centos
fallocate -l 4G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
swapon -s
@f4th4n
f4th4n / .zshrc
Created October 23, 2016 22:22
Shortcut to Drop Cache Linux on Zshell
# 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
@f4th4n
f4th4n / script_for_console.js
Created August 22, 2016 11:26
Captcha Filler on Seoreviewtools.com
// 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)