curl ifconfig.co
curl icanhazip.com
curl ifconfig.me
curl http://smart-ip.net/myip
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
#!/bin/bash | |
# converts .mp3 files in current directory into .sln Asterisk 16-bit signed linear audio | |
for f in *.mp3; do | |
lame --decode $f; | |
done | |
for f in *.wav; do | |
sox $f -t raw -r 8000 -b 16 -c 1 ${f%.wav}.sln | |
rm $f |
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
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
# !!! Don't forget to backup first !!! | |
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
# !!! Everyone who has forked from your repository will need to start over !!! | |
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
# removing .settings folder and .project file | |
git filter-branch --index-filter 'git ls-files -- .settings .project | xargs git update-index --remove' --tag-name-filter cat --prune-empty -f -- --all |
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
%pre --interpreter /usr/bin/python | |
# -*- coding: utf-8 -*- | |
import os, sys | |
from snack import * | |
def set_tty(n): | |
f = open('/dev/tty%d' % n, 'a') | |
os.dup2(f.fileno(), sys.stdin.fileno()) | |
os.dup2(f.fileno(), sys.stdout.fileno()) | |
os.dup2(f.fileno(), sys.stderr.fileno()) |
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
#!/bin/bash | |
find /lib/modules/`uname -r` -name 'dahdi_echo*' | sed 's/^.*dahdi_echocan_//;s/.ko$//' |
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
#!/bin/sh | |
containers=`vzlist | sed '1d' | awk '{print $1}'` | |
for c in $containers; do | |
vzctl exec $c $@ | |
done |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v1.4.13 (GNU/Linux) | |
mQENBFHWf4kBCADA5R23TaSpsAq2duHb7COjMkTLfXkHm1hM/a3+6Qpj/jbIJPZw | |
qmdW+aXcQeIhJTud6Jy5aZ/bZ3lQ1yuyf+LOiMe1+U1gFgFscFFcwpSPxccAhHgK | |
mVSrflhSYi6bHkRaMvS1OUnipCZELgHvuKat1bUDBe5gmtYWWwIIhrBmX80/EdZf | |
zHk1uoKaC+C/8JLx4ZlYHqrRpB3/gJ4emGsjNY6NpdN7QDRydB3lCw8/i1TPqnwo | |
0YBg5sKYoUoRrjoy4mmTw4laDm6GPvi8VqcoQvGCqk4pZAcv3BucRI+ZsRjRUJhD | |
xUx+stLsv8+HUdQKE+6mcvVi6AKKGrzjUKVdABEBAAG0J0l2YW4gUG9kZHVibnkg | |
PGl2YW4ucG9kZHVibnlAZ21haWwuY29tPokBOAQTAQIAIgUCUdZ/iQIbAwYLCQgH |
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
[incoming] | |
exten => 7926XXXXXXX,1,Versobe(Hello Multifon) | |
same => n,NoOp(Call from ${CALLERID(num)}) | |
; do something, like answer, ... | |
same => n,Hangup | |
[outbound] | |
exten => _89XXXXXXXXX,1,Dial(SIP/multifon/${EXTEN}) | |
same => n,Hangup |
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
#!/bin/bash | |
function getCSV { | |
echo "Downloading $1..." | |
curl -s https://rossvyaz.ru/data/$1.csv |\ | |
iconv -f cp1251 -t utf8 |\ | |
sed -e 's/[[:space:]]*;[[:space:]]*/;/g' -e '/^$/d' |\ | |
awk '{ split($0,a,";"); print a[1] ";" a[2] ";" a[3] ";" a[4] ";" a[5] ";" a[6] ", " a[7] ", " a[8] ", " a[9] ", " a[10] }' |\ | |
sed -e 's/\(,[[:space:]]\)*$//' > $2.csv | |
} |
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
define(['cjs'], function (cjs) { | |
console.log('amd module loaded'); | |
console.log('cjs exported:', cjs); | |
return 'AMD'; | |
}); |
OlderNewer