- [ ] British Museum (4h)
- [ ] Natural History Museum (6h)
- [ ] Tate Modern (4h)
- [ ] Science Museum (4h)
- [ ] London Zoo (6h)
- [ ] St James Park (1h)
#!/bin/bash | |
dir="directory" # no slash at end | |
files=$(ls -R $dir | awk ' | |
/:$/&&f{s=$0;f=0} | |
/:$/&&!f{sub(/:$/,"");s=$0;f=1;next} | |
NF&&f{ print s"/"$0 }'); | |
list=(); | |
while read -r line; do | |
list[${#list[@]}]=$line; |
<services> | |
<name>Daemons (Full Arch-specific config)</name> | |
<description> | |
This file contains a more detailed source for archlinux (or maybe systemd) specific services. | |
</description> | |
<service id="apache2-daemon-arch" priority="2" sudo="yes" icon="apache"> | |
<name>Apache2 Webserver</name> |
# Oh-my-Zsh prompt created by sigi | |
# The theme is based on gianu but has things I really wanted to have | |
# Also, note this great article: http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/ | |
function prompt_char { | |
git branch >/dev/null 2>/dev/null && echo '±' && return | |
hg root >/dev/null 2>/dev/null && echo '☿' && return | |
echo '○' | |
} |
#!/bin/python | |
""" | |
pjson - simple script for parsing jsons with python | |
Json input needed with stdin. | |
Usage: | |
pjson key1 key2 key3 ... | |
Examples: |
#!/usr/bin/env python3 | |
"""Termania api | |
Usage: | |
termania [options] [QUERY [QUERY ...]] | |
Options: | |
-h --help Show this screen. | |
--version Show version. | |
""" |
#!/usr/bin/env python3 | |
"""DIS slovarček api | |
Usage: | |
dis [options] [QUERY [QUERY ...]] | |
Options: | |
-h --help Show this screen. | |
--version Show version. | |
""" |
# In a file with urls, count different status codes | |
{ for line in `cat urls.txt`; do curl -I $line 2> /dev/null | head -n 1 | egrep -o '[0-9]{3}' ; done; } | sort | uniq -c | |
# Get titles from urls from clipboard | |
urls=`xclip -o | tr '\n' ' '`; for url in $(echo $urls); do clean_url=$(echo -e "${url}" | tr -d '[[:space:]]'); tmp=$(curl "$clean_url" 2> /dev/null | egrep -o '<title>.*</title>' | egrep -o '>.*<'); echo ${tmp:1:-2}; done; |