Install fbterm via your favorite package manager
pacman -S fbterm| import os, random, string, sys, urllib2 | |
| num_pics = 1 | |
| if len(sys.argv) > 1: | |
| num_pics = int(sys.argv[1]) | |
| while num_pics > 0: | |
| name = ''.join(random.sample(string.letters+string.digits, 5)) + '.jpg' | |
| img = urllib2.urlopen("http://i.imgur.com/" + name).read() | |
| if len(img) != 503: # 'image not found' is 503 bytes |
| next-server 10.0.3.2; | |
| if ( substring(option vendor-class-identifier, 0, 9) = "AAPLBSDPC" | |
| and substring(option vendor-class-identifier, 10, 4) = "i386" ) { | |
| # This needs to be there to tell the client we're an Apple boot server | |
| option vendor-class-identifier "AAPLBSDPC"; | |
| # Normally the client asks for a list, we respond, they tell us what we want, | |
| # then we send a select back with the information of that image. | |
| # This skips all that and forces the select down to the client. | |
| option vendor-encapsulated-options 01:01:02; | |
| # Use ipxe.efi for native drivers, or snponly.efi for underlying UNDI |
| require 'net/ntp' # gem install net-ntp | |
| # Windows' date command expects MM/DD/YYYY, e.g. 5/15/2009 | |
| DATE_FORMAT = '%m/%d/%Y' | |
| # Windows' time command expects HH:MM:SS AM/PM, e.g. 5:34:00 PM | |
| TIME_FORMAT = '%I:%M:%S %p' | |
| # External NTP is now firewalled :( | |
| NTP_SERVER = 'MILLDATA' |
| #!/usr/bin/env bash | |
| # pomf.se uploader | |
| # requires: curl | |
| dest_url='http://pomf.se/upload.php' | |
| return_url='http://a.pomf.se' | |
| if [[ -n "${1}" ]]; then | |
| file="${1}" | |
| if [ -f "${file}" ]; then |
| ddns-update-style none; | |
| deny bootp; #default | |
| authoritative; | |
| include "/etc/dhcp/ipxe-option-space.conf"; | |
| # GREEN (private network) | |
| subnet 10.1.1.0 netmask 255.255.255.0 { | |
| range 10.1.1.100 10.1.1.199; | |
| option subnet-mask 255.255.255.0; |
| # vi: ft=dosini | |
| [user] | |
| name = Pavan Kumar Sunkara | |
| email = [email protected] | |
| username = pksunkara | |
| [core] | |
| editor = nvim | |
| whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| pager = delta | |
| [column] |