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
this is a test
http://figital.com
this is a test
http://figital.com
this is a test
http://figital.com
sfitchet@crunchbang:~/git-repos/chromeless$ ./run &
[1] 8468
sfitchet@crunchbang:~/git-repos/chromeless$ Will open the browser html =first_browser/index.html
You can also try other scripts such as ./run ui/thumbnails/index.html
Your package.json says our ID is:
jid0-VE0BAYsOX4sNiJGMMjrgl4kfM2w
But I don't have a corresponding private key in:
/home/sfitchet/.jetpack/keys/jid0-VE0BAYsOX4sNiJGMMjrgl4kfM2w
If you are the original developer of this package and have recently copied
#! /bin/sh
wget --directory-prefix=/home/sfitchet/archive/figital.com/$(date +\%Y-\%m-\%d) -E -H -k -K -p -nd http://www.figital.com
#!/bin/sh
wget --directory-prefix=/home/sfitchet/archive/figital.com/$(date +\%Y-\%m-\%d) -E -H -k -K -p -nd http://www.figital.com
# don't forget to change the --directory-prefix to a location on your
# own system and obviously the URL you'd like to archive ;)
sfitchet@crunchbang:~$ ping espn.com -c 6
PING espn.com (199.181.132.250) 56(84) bytes of data.
64 bytes from espnrf.espndeportes.com (199.181.132.250): icmp_req=1 ttl=239 time=100 ms
64 bytes from disneyhumanrights.org (199.181.132.250): icmp_req=2 ttl=239 time=100 ms
64 bytes from disneystudios.com (199.181.132.250): icmp_req=3 ttl=239 time=100 ms
64 bytes from espnrf.espndeportes.com (199.181.132.250): icmp_req=4 ttl=239 time=101 ms
64 bytes from disneyhumanrights.org (199.181.132.250): icmp_req=5 ttl=239 time=101 ms
64 bytes from disneystudios.com (199.181.132.250): icmp_req=6 ttl=239 time=101 ms
--- espn.com ping statistics ---
@figital
figital / example.js
Created January 12, 2011 01:57
the node.js hello world
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(8124, "127.0.0.1");
console.log('Server running at http://127.0.0.1:8124/');
<?php
// Grab the raw data feed from the filesystem
$filename = "DHCP_Static.asp.html";
$file = file_get_contents($filename);
// Find the range of characters we'll scrape from the raw data feed
// Sure I could regex this part but I didn't :p
$startpos = strpos($file, "var table = new Array(") + 22;
$endpos = strpos($file, ");", $startpos);
#!/bin/bash
# This script runs every minute using crontab. It logs into your router
# and grabs a DHCP that will be scraped later with PHP.
HOST='192.168.1.1'
FEEDDIR='/home/sfitchet/git-repos/roto'
COOKIES=$FEEDDIR'/cookies.txt'
USER='admin'
PASS='alpine' # j/k ;)