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
""" | |
Deterministic Turing Machine | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
This is a turing machine written in python. This code closely follows code from | |
chapter 5 of the book _Understanding Computation_ by Tom Stuart. | |
This is basically a Finite State Machine with a tape. | |
""" |
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
#!/usr/bin/awk -f | |
BEGIN { | |
FL_SUM = 0 | |
FL_CUR = 0 | |
FL_TOTAL = 0 | |
} | |
{ | |
getFocalLength($0) |
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
FROM debian:latest | |
MAINTAINER Tyler Cipriani <tyler@tylercipriani.com> | |
RUN apt-get update | |
RUN apt-get install -y vim-nox | |
RUN apt-get install -y zip | |
RUN apt-get install -y zathura |
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
#!/usr/bin/env php | |
<?php | |
/* | |
* This is a terrible way to build a streaming server as a cgi script! It | |
* takes a song from a query string, checks for its existence in the | |
* music directory. If it exists: it plays it! Whee! | |
*/ | |
define('MUSIC_PATH', '/home/thcipriani/Music/'); | |
define('FFMPEG', '/usr/bin/ffmpeg'); |
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
#!/usr/bin/env bash | |
# Meant to be run in a git directory | |
# This gets the first 12 bytes of a .git/index file which according to the spec (https://github.com/git/git/blob/master/Documentation/technical/index-format.txt) are: | |
# - 4 byte signature | |
# - 4 byte version | |
# - 32-bit (4 byte) number of entries, i.e. number of files | |
# | |
# This will pass the final 32-bits off to python to unpack a NBO Long to show the number of entries | |
head -c 12 .git/index | tail -c 4 | ~/tmp/unsigned_long_stdin.py |
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
vagrant@scap-target:$ stat big1.bin | |
File: ‘big1.bin’ | |
Size: 74 Blocks: 8 IO Block: 4096 regular file | |
Device: 58h/88d Inode: 28913 Links: 1 | |
Access: (0644/-rw-r--r--) Uid: ( 1000/ vagrant) Gid: ( 1000/ vagrant) | |
Access: 2016-12-20 16:06:36.823036152 +0000 | |
Modify: 2016-12-20 16:06:36.771036152 +0000 | |
Change: 2016-12-20 16:06:36.771036152 +0000 | |
Birth: - | |
vagrant@scap-target:$ git ls-files --stage --debug big1.bin |
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
#!/usr/bin/env bash | |
# Fancy progress bar, in bash! | |
TOTAL=100 | |
DELAY=0.1 | |
PROGRESS= | |
get_progress() { |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<opml version="1.1"> | |
<head title="Podcasts"> | |
<expansionState></expansionState> | |
</head> | |
<body> | |
<outline URL="http://feeds.99percentinvisible.org/99percentinvisible" text="99% Invisible" type="link" /> | |
<outline URL="http://www.npr.org/rss/podcast.php?id=381444908" text="Fresh Air" type="link" /> | |
<outline URL="http://radioproject.libsyn.com/rss" text="Making Contact" type="link" /> | |
<outline URL="http://feeds.wnyc.org/radiolab" text="Radiolab" type="link" /> |
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
#!/usr/bin/env bash | |
set -eu | |
COMMAND='' | |
usage() { | |
cat<<HELP | |
usage: git photo <add|show|rm> <file> | |
HELP |
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
deployment-jobrunner01.deployment-prep.eqiad.wmflabs | |
deployment-mediawiki01.deployment-prep.eqiad.wmflabs | |
deployment-mediawiki02.deployment-prep.eqiad.wmflabs | |
deployment-mediawiki03.deployment-prep.eqiad.wmflabs | |
deployment-tmh01.deployment-prep.eqiad.wmflabs | |
deployment-tin.deployment-prep.eqiad.wmflabs | |
mira.deployment-prep.eqiad.wmflabs |