Skip to content

Instantly share code, notes, and snippets.

Harley Watson unlobito

Block or report user

Report or block unlobito

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View StackOverflow Reputation Audit Parser.php
<?php
$audit = file_get_contents('audit.txt');
$audit = split("\n", $audit);
$data = Array();
for ($i=0; $i!=count($audit); $i++) {
$line = $audit[$i];
$datatype = substr($line, 0, 1);
switch ($datatype) {
case '-':
$day = substr($line, 3, 10);
@unlobito
unlobito / unblock_all.py
Last active Jan 16, 2018 — forked from kristopherjohnson/unblock_all.py
Unblock all blocked Twitter accounts
View unblock_all.py
#!/usr/bin/env python3
# Dependency: pip3 install twitter
import twitter
# Go to http://apps.twitter.com/, create an app, and fill in these values:
consumer_key = 'www'
consumer_secret = 'xxx'
access_token = 'yyy'
access_token_secret = 'zzz'
View gist:3dca0a6a3442a30f2310896951575986
### Keybase proof
I hereby claim:
* I am unlobito on github.
* I am unlobito (https://keybase.io/unlobito) on keybase.
* I have a public key ASCbyjhHAp3621abw-8PlV4mmc2u6SexxBS7SjSJoyTp9wo
To claim this, I am signing this object:
View extraer.php
<?php
$url = "http://inposdom.gob.do/codigopostal/jos_codigopostallist.php?start=";
$total = 128;
$postal = Array();
for ($i=0; $i<=$total; $i++) {
$data = file_get_contents($url.($i*2)."1");
View services.class.php
<?php
class Search {
function google($q) {
$request = 'http://ajax.googleapis.com/ajax/services/search/web?rsz=large&v=1.0&q='.urlencode($q);
$result = json_decode(Utils::request($request));
//print_r($result->responseData->results);
$results = Array();
foreach ($result->responseData->results as $result) {
$results[] = new SearchItem($result->titleNoFormatting, $result->url, $result->content, 'google');
}
View ataricontroller2
void setup() {
// initialize serial communication:
Serial.begin(9600);
// initialize the LED pins:
for (int thisPin = 2; thisPin < 7; thisPin++) {
pinMode(thisPin, OUTPUT);
}
}
void loop() {
@unlobito
unlobito / gist:857606
Created Mar 6, 2011
Running nslookup on 207.46.232.182
View gist:857606
Athena:~ henriwatson$ nslookup microsoft.com
Server: 196.3.81.5
Address: 196.3.81.5#53
Non-authoritative answer:
Name: microsoft.com
Address: 207.46.232.182
Name: microsoft.com
Address: 207.46.197.32
View gist:747613
12/19/10 15:22
Hardware:
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: MacBookPro2,2
View gist:609025
<?php
// ACME API
// bbPress database model
$this->load->library('acmebbuser');
class ACME_bbPress extends Model {
function ACME_bbPress() {
parent::Model();
}
View Cisco IPTV Port Scan.txt
Starting Nmap 4.90RC1 ( http://nmap.org ) at 2010-08-09 22:35 AST
NSE: Loaded 30 scripts for scanning.
Initiating ARP Ping Scan at 22:35
Scanning 10.0.0.2 [1 port]
Completed ARP Ping Scan at 22:35, 0.01s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 22:35
Completed Parallel DNS resolution of 1 host. at 22:35, 0.13s elapsed
Initiating SYN Stealth Scan at 22:35
Scanning 10.0.0.2 [65535 ports]
You can’t perform that action at this time.