Skip to content

Instantly share code, notes, and snippets.

View figital's full-sized avatar
💭
github status lol

figital figital

💭
github status lol
View GitHub Profile
<div id="scoreboard">
<div class="title">
<?php= $numhosts ?>
</div>
<div class="subtitle">
DHCP Addresses<br>
Are Still Left<br>
ON BOCOUP-EVENTS
</div>
</div>
@figital
figital / fstring
Created February 9, 2011 21:12
fstring
#! /bin/bash
# description: search a directory for a string, output filenames and context
# usage: fstring /tmp/whatever mysearch
# example: fstring ./ hello (search current directory for string "hello"
# better example:
# sfitchet@crunchbang:/tmp/myapp$ fstring ./ array_slice
@figital
figital / message.css
Created February 9, 2011 22:22
message.css
.message {
margin-bottom:10px;
padding:10px;
font-size:12px;
background-color:#eee;
border:1px solid #ccc;
}
.bad {
background-color:#fcc;
<p type="B" id="911" x="93.56" y="117.43" des="Ball" sv_id="100511_231400"
start_speed="93.0" end_speed="87.1" sz_top="3.33" sz_bot="1.61" pfx_x="-3.34"
pfx_z="8.35" px="0.272" pz="3.667" x0="-1.472" y0="50.0" z0="6.497" vx0="5.906"
vy0="-136.155" vz0="-4.703" ax="-6.39" ay="24.181" az="-16.104" break_y="23.9"
break_angle="17.6" break_length="3.7" pitch_type="FF" type_confidence=".828"
zone="12" nasty="59" spin_dir="201.683" spin_rate="1842.723" cc=""/>
@figital
figital / fragment.js
Created May 17, 2011 22:47
jslinux start()
// hi ben
function start() {
var Hf,
i,
start,
If,
Jf;
if (!Gf()) {
aa.writeln("");
aa.writeln("Your browser does not support the W3C Typed Arrays and this version of JS/Linux needs them.\n");
@figital
figital / get-chromium.sh
Created July 22, 2011 21:28
a shell script to download the most recent chromium build for linux
#/bin/sh
# quick hack to automate local user bleeding-edge chromium build installs
# how do you like to call this program? (chrome-linux, chrome, chromium, google-chrome?)
APPNAME="chromium"
# get the latest build number (JSON)
VERSION=$(wget -qO- http://build.chromium.org/f/chromium/snapshots/Linux/LATEST)
# get some extra metadata to display on the command line
LOGURL="http://build.chromium.org/f/chromium/snapshots/Linux/"$VERSION"/REVISIONS"
@figital
figital / chromiumer-devtools.sh
Created July 25, 2011 15:43 — forked from cowboy/chromiumer-devtools.sh
chromiumer.sh bash script that will download the latest Chromium chrome-mac.zip and devtools_frontend.zip, extract them into cwd, and link them together using --debug-devtools-frontend.
#!/bin/bash
# I use this (optional) file to make the font larger for presentations - Cowboy
echo -n "Modifying fonts..."
find "$1" \( -name devTools.css \) \
-exec sh -c 'cat >> $1 <<EOF
/* Added on `date` */
body.platform-mac.platform-mac-snowleopard .monospace,
@figital
figital / lobsters.txt
Created July 28, 2011 18:10
From: "The Secret Life of Lobsters" via wikipedia
The American lobster urinates not from some posterior region of
its body, but directly out the front of its face. Two bladders
inside the head hold copious amounts of urine, which the lobster
squirts through a pair of muscular nozzles beneath its antennae.
These powerful streams mix with the gill outflow and are carried
some five feet ahead of the lobster in its plume ... What the
researchers discovered during the ensuing fights was that dueling
lobsters accompanied their most punishing blows during combat by
intense squirts of piss at the opponent's face. What was more, in
scenes akin to a showdown at the OK Corral, the winner of the
@figital
figital / cfdump-demo.js
Created August 5, 2011 00:08
This is included in the README.markdown for github.com/figital/cfdump.js
// cfdump.js demo
var http = require('http');
var dump = require('cfdump').dump;
var port = 1337;
var host = "localhost";
var defaultMimeType = "text/html";
function listener(request, response) {
@figital
figital / demo.js
Created August 5, 2011 16:22
this might be easier to understand for step 0.
// An attempt to simplify the basic node starter script.
// USAGE: node demo.js
var http = require('http');
function listener(request, response) {
console.log('URI: ' + request.url);
response.writeHead(200, {'Content-Type': 'text/plain'});
response.end('Hello, World\n');
}