Skip to content

Instantly share code, notes, and snippets.

View unlobito's full-sized avatar

Harley Watson unlobito

View GitHub Profile
_type: export
__export_format: 4
__export_date: 2023-09-03T11:00:59.602Z
__export_source: insomnia.desktop.app:v2023.2.2
resources:
- _id: req_e6d57f8354274e6ea9b81eb1e06f6ff3
parentId: fld_7c426e3bbd534918bc0b6dcea5fb011a
modified: 1693737461100
created: 1693736675897
url: "{{ _.base }}/ojn_api/accounts/auth"
@unlobito
unlobito / unblock_all.py
Last active January 16, 2018 00:58 — forked from kristopherjohnson/unblock_all.py
Unblock all blocked Twitter accounts
#!/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'
### 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:
<?php
require '/home/wwwcilku/public_html/Stripelib/lib/Stripe.php';
if ($_POST) {
Stripe::setApiKey("sk_test_DwpmvsqgIkLNt3Tt0lvFW3mz");
$token = $_POST['stripeToken'];
$error = '';
$success = '';
<?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");
<?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');
}
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 March 6, 2011 20:13
Running nslookup on 207.46.232.182
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
12/19/10 15:22
Hardware:
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: MacBookPro2,2
<?php
// ACME API
// bbPress database model
$this->load->library('acmebbuser');
class ACME_bbPress extends Model {
function ACME_bbPress() {
parent::Model();
}