Skip to content

Instantly share code, notes, and snippets.

View simonsickle-old's full-sized avatar

Simon Sickle simonsickle-old

View GitHub Profile
@simonsickle-old
simonsickle-old / ip-long-to-human.py
Created August 7, 2017 15:29
Convert longIP to standard human readable IPs
#!/usr/bin/python
import csv
from socket import inet_ntoa
from struct import pack
def long2ip(ip):
return inet_ntoa(pack("!L", ip))
with open('demo.csv', 'rb') as infile, open("ip-correct-2.csv", "wb") as outfile:
#!/usr/bin/env python
import multiprocessing
import imp
import urllib2
import urlparse
urllib = imp.new_module('urllib')
urllib.error = urllib2
urllib.parse = urlparse
urllib.request = urllib2

Keybase proof

I hereby claim:

  • I am SimonSickle on github.
  • I am simonsickle (https://keybase.io/simonsickle) on keybase.
  • I have a public key whose fingerprint is 6A40 A84F B157 604F 97D3 7CC3 CC2B CE98 794B DF22

To claim this, I am signing this object:

@simonsickle-old
simonsickle-old / dedupe.cpp
Last active December 30, 2015 04:31
A deduplicator for checking for duplicate emails in CPP
/*
* Copyright 2015 - Simon Sickle
* CSV DeDuplicator
* Finds duplicate emails and creates a list of duplicates
* usage is ./dedupe /path/to/whatever.csv /path/to/dupe.csv
*/
#include <iostream>
#include <fstream>
#include <sstream>
<?php
/**
* Class and Function List:
* Function list:
* - ReCaptcha()
* - _encodeQS()
* - _submitHTTPGet()
* - verifyResponse()
* Classes list:
* - ReCaptchaResponse
@simonsickle-old
simonsickle-old / birthday-checker.c
Created January 12, 2015 03:18
birthday-checker.c
/* Copyright 2015 Simon Sickle <simon@simonsickle.com>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
@simonsickle-old
simonsickle-old / mirrorit.sh
Last active August 29, 2015 14:09
Android Mirroring
#!/bin/bash
######################################################
# Copyright 2014 (c) Simon Sickle #
# MIT LICENSE #
######################################################
# Notes: Run this script from the directory containing
# the android source. Modify variables at the top to
# customize the upload. Meant for AOSP. Enjoy!
<?php
// A script to list devices and their "friendly" names
$devices = array(
"deb" => "Google Nexus 7 2013 (4G)",
"flo" => "Google Nexus 7 2013 (Wi-Fi)",
"grouper" => "Google Nexus 7 (Wi-Fi)",
"endeavoru" => "HTC One X",
"m7" => "HTC One (GSM)",
"m7spr" => "HTC One (Sprint)",
"m7vzw" => "HTC One (Verizon)",
<DOCTYPE html>
<header>
<title>Carbon Changelog</title>
</header>
<body>
<?php
// Get JSON Data
$jsonraw = file_get_contents("https://review.carbonrom.org/changes/?q=status:merged");
$json = json_decode(preg_replace('/^.+\n/', '', $jsonraw));
@simonsickle-old
simonsickle-old / makethem.sh
Created June 24, 2014 16:18
MD5 Generator
#!/bin/bash
# Below place your directory you want to search. For example below shows allfolders/allfiles.zip
list=*/*.zip
# Place file extension of a seperate file that you require to occompany your other files
extraextension=.md5
for i in $( ls $list ); do
if [ ! -f $i.$extraextension ]; then
md5sum $i > $i.$extraextension