Skip to content

Instantly share code, notes, and snippets.

alias lesslol=’lolcat -f | less -r’
alias lol=’lolcat -f’
alias nlol=’lolcat -f | nl’
toolkit.tabbox.switchByScrolling
curl --silent http://127.0.0.1:4040/api/tunnels | jq '.tunnels[0].public_url'
wget -nd -H -p -A jpg,jpeg,png,gif -e robots=off http://galeri.mynet.com/guncel/inanmasi-zor-ama-bu-bir-savas-gemisi-4694/63
sort *.txt | uniq > all_acc.txt
sort *.txt | uniq -u > all_acc.txt
sort *.txt | sort -u > all_acc.txt
sort *.txt | uniq -u > all_acc.txt | awk '!a[$0]++' all_acc.txt
sort -u all_acc.txt > all_accounts.txt
sort *.txt > all_acc.txt
perl -ne 'print unless $dup{$_}++;' all_acc.txt all_accounts.txt
perl -ne 'print unless $dup{$_}++;' all_acc.txt > all_accounts.txt
perl -ne 'print unless $dup{$_}++;' all_accounts.txt > all.txt
<input nl | sort -k 2 -u | sort -k 1n | cut -f 2- >output
sshpass -p 'password' scp -P <port> /path/to/file/ user@255.255.255.255:/path/to/destination/
STEM.IS
-------
Allerjans-Happiness:67K
https://open.spotify.com/track/6JmWN6VdQkrMH4ZiamkDmL
alamet-i farika-Netto:55K
https://open.spotify.com/track/4uIW1Kzbz9eRq3BdX5lyA9.
Da Pace-Mortal:88K
https://open.spotify.com/track/0p7HsZLnTiLgMfRDXASquw
import os
import time
print('removing old url.xlsx file')
time.sleep(1)
os.system("rm /root/Desktop/Docs/linux/url.xlsx >/dev/null 2>&1")
print('downloading new url.txt file from github')
os.system("cd /root/Desktop/Docs/linux/ && wget https://raw.githubusercontent.com/elanozturk/personal-backup/master/elan.txt >/dev/null 2>&1")
time.sleep(1)
os.system("sed 's/ \+/,/g' /root/Desktop/Docs/linux/elan.txt > /root/Desktop/Docs/linux/url.csv")
print('current song url :')