Install fbterm
via your favorite package manager
pacman -S fbterm
[user] | |
name = Pavan Kumar Sunkara | |
email = pavan.sss1991@gmail.com | |
username = pksunkara | |
[init] | |
defaultBranch = master | |
[core] | |
editor = nvim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
pager = delta |
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; |
#!/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 |
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' |
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 |
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 |
This is an attempt to implement a trie in Swift with a generic key. Instead of using just strings as keys, this trie can be keyed by any object that can generate its own prefixes. This is accomplished by using a protocol to define a trie key that can return a generator of Hashable
s. We need Hashable
s because the prefixes will be stored in a Dictionary
.
The TrieNode
class will be a private implementation detail. It helps to separate the implementation into TrieNode
and the wrapper for a few reasons:
This guide offers the least time-consuming way of setting up Nginx for serving Git repositories over HTTP using Gitweb. The stuff here has been tested with Git 1.9.1 and Nginx 1.6.0 on Debian Wheezy. Probably also works for Ubuntu, etc.
Total time ~ 10 minutes.
Enable wheezy-backports
by adding this line to /etc/apt/sources.list
:
deb http://http.debian.net/debian wheezy-backports main
# | |
# Himawari-8 Downloader | |
# | |
# | |
# | |
# This script will scrape the latest image from the Himawari-8 satellite, recombining the tiled image, | |
# converting it to a JPG which is saved in My Pictures\Himawari\ and then set as the desktop background. | |
# | |
# http://himawari8.nict.go.jp/himawari8-image.htm | |
# |