$ echo -n "foobar" | sha1sum | cut -d' ' -f1 | xxd -r -p | base64
$ USR="yourname";PWD="foobar";SALT="$(openssl rand -base64 3)";SHA1=$(printf "$PWD$SALT" | openssl dgst -binary -sha1 | sed 's#$#'"$SALT"'#' | base64); echo "$USR:{SSHA}$SHA1"
#!/usr/bin/env python | |
""" | |
Checks to see if loggy.py is running | |
""" | |
import os | |
import time | |
from subprocess import * | |
i = 0 |
Create a new repository on the command line | |
touch README.md | |
git init | |
git add README.md | |
git commit -m "first commit" | |
git remote add origin git@github.com:myano/test.git | |
git push -u origin master | |
title (b): ['\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\ | |
x9f', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', ' | |
\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', | |
'\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', | |
'\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', ' ', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', ' | |
\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', '\xf3', '\xa0', '\x81', '\x9f', ' ', '-', ' ', 'P', 'a', 's', 't', 'e', 'b', 'i' | |
.', 'c', 'o', 'm'] | |
title (a): ['\xf3', '\xa0', '\xf3', '\xa0', |
#!/usr/bin/env python | |
import copy | |
f = open('weechat.conf', 'r') | |
formats = ['/join ', '/query '] | |
networks = { |
1361852798.62 {'updated': u'2013-02-25T13:24:00-06:00', 'updated_parsed': time.struct_time(tm_year=2013, tm_mon=2, tm_mday=25, tm_hour=19, tm_min=24, tm_sec=0, tm_wday=0, tm_yday=56, tm_isdst=0), 'published_parsed': time.struct_time(tm_year=2013, tm_mon=2, tm_mday=25, tm_hour=19, tm_min=24, tm_sec=0, tm_wday=0, tm_yday=56, tm_isdst=0), 'author': u'w-nws.webmaster@noaa.gov', 'authors': [{'name': u'w-nws.webmaster@noaa.gov'}], 'guidislink': True, 'title_detail': {'base': u'http://alerts.weather.gov/cap/us.php?x=1', 'type': u'text/plain', 'value': u'Air Quality Alert issued February 25 at 1:24PM CST by NWS', 'language': None}, 'link': u'http://alerts.weather.gov/cap/wwacapget.php?x=IA124EEEEBFDD0.AirQualityAlert.124EEEF9D720IA.DMXAQAIA.b87599e40e16d2fecbdbab91f0e74ff2', 'published': u'2013-02-25T13:24:00-06:00', 'title': u'Air Quality Alert issued February 25 at 1:24PM CST by NWS', 'author_detail': {'name': u'w-nws.webmaster@noaa.gov'}, 'id': u'http://alerts.weather.gov/cap/wwacapget.php?x=IA124EEEEBFDD0.AirQual |
» cat gen.sh | |
rm -rf /var/www/yanovich.net/public/blog/ | |
mkdir /var/www/yanovich.net/public/blog/ | |
mkdir /var/www/yanovich.net/public/blog/theme | |
pelican -D -s /var/www/yanovich.net/public/blog_src/pelican.conf.py /var/www/yanovich.net/public/blog_src/ -o /var/www/yanovich.net/public/blog/ | |
» ./gen.sh | |
Traceback (most recent call last): | |
File "/usr/local/bin/pelican", line 9, in <module> | |
load_entry_point('pelican==3.2', 'console_scripts', 'pelican')() |
<?php | |
echo "I find this format for the brackets annoying."; | |
if (mynum < 10) { | |
echo "low"; | |
} | |
else { | |
echo "yay!"; | |
} | |
#!/usr/bin/env python | |
# -*- coding: utf8 -*- | |
from subprocess import Popen, PIPE | |
import datetime | |
import re | |
def main(): | |
f = open("/var/www/lmddgtfy.net/logs/reqs.txt", "w") |
#!/usr/bin/env python | |
# vim: set fileencoding=UTF-8 : | |
HTML_ENCODINGS = { | |
" ": "%20", | |
"!": "%21", | |
'"': "%22", | |
"#": "%23", | |
"$": "%24", | |
"%": "%25", |