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
today() { | |
[[ -z "$*" ]] && < ~/.today || echo "$(date +'%F %T') $*" >> ~/.today | |
} |
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
String.prototype.replaceAll = function(foo, bar) { | |
return this.split(foo).join(bar); | |
}; |
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
chr = char(32:127)(:); | |
spc = ' ' * ones(length(chr), 1); | |
nms = num2str([32:127](:)); | |
tab = [nms spc chr spc]; | |
qti = reshape(tab',length(tab)/2,[])'; | |
disp(qti) |
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
# LOL!!1 | |
alias wtf='dmesg' | |
alias onoz='cat /var/log/errors.log' | |
alias rtfm='man' | |
alias visible='echo' | |
alias invisible='cat' | |
alias moar='more' | |
alias icanhas='mkdir' | |
alias donotwant='rm' | |
alias dowant='cp' |
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
#!/usr/bin/env bash | |
# | |
# Convert cbr files to cbz. | |
# depends | |
type -p 7z >/dev/null || exit 3 | |
# trap SIGINT | |
trap 'trap - INT; kill -s INT "$$"' INT |
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
#!/usr/bin/env bash | |
# | |
# Convert CSV file(s) to a TeX table. | |
# trap SIGINT | |
trap 'trap - INT; kill -s INT "$$"' INT | |
caption="Πειραματικά δεδομένα." | |
label_template="tab:" | |
out_template="tab-" |
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
#!/usr/bin/env bash | |
# | |
# Convert a Sourceforge's CVS repo to Git. | |
# depends | |
type -p rsync >/dev/null || exit 3 | |
type -p cvs2git >/dev/null || exit 3 | |
# trap SIGINT | |
trap 'trap - INT; kill -s INT "$$"' INT |
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
#!/usr/bin/env python | |
# shitty way of doing a Lagrange interpolation | |
def lagint(xarr,yarr): | |
p = [] | |
k = len(xarr) # rank+1 | |
for i in range(k): | |
Li = [] | |
for j in range(k): | |
if (j != i): |
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
#!/usr/bin/env python | |
import requests | |
from bs4 import BeautifulSoup | |
from re import findall | |
url = 'http://5.9.247.121/d34dc0d3' | |
headers = { 'X-0x0ACE-Key' : 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' } | |
# key to be taken by previous challenge on 80.233.134.210 | |
def solve(bgn,end): |
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
[Desktop Entry] | |
Encoding=UTF-8 | |
Version=1.0 | |
Name=$vb_name | |
Comment=Starts the VirtualBox machine $vb_name | |
Type=Application | |
Exec=/usr/lib/virtualbox/VirtualBox --comment $vb_name --startvm $vb_uuid | |
Icon=virtualbox-vbox.png |
NewerOlder