Skip to content

Instantly share code, notes, and snippets.

View a904guy's full-sized avatar
🆚
𝔸𝕟𝕕𝕣𝕖𝕨 ℍ𝕒𝕨𝕜𝕚𝕟𝕤

Andy Hawkins — (̖̣͕̠̬̭̞̪̐̅ỉ̭̣͈̪̠ͮs̳̳̦̞̰̜̞̳͑͌͋ͪ̃̍ ̩̘́͑ͨ̈́̎̋ͮ͊̀ñ͔̣͓̬̈ͮͦ́ͫ͐͛ͅͅo̩̦̳̠̙̗̯̺̐͆̽t̜̥̻̙̟̼̜͂ͩ͋̅̈́ ̠̦̹̟͕͕̱͉͒͋̅́͐ā̟̻̱ͦ̒̍͋ ̗̞͚ͨͩ͊͂̉ͅh͔̼͚̩͚̪̝̝ͣa̫̫̒̓ͬc̦̲̳͍̹̃ͥͯk̲͕̗̖̤̙̜͍̊e̫͎̟̼̺̫̿r͙̰̊̑̿̅ͯͅ)̪̖͇̝̮̪͖̦͆̇ͧ͑̚ a904guy

🆚
𝔸𝕟𝕕𝕣𝕖𝕨 ℍ𝕒𝕨𝕜𝕚𝕟𝕤
View GitHub Profile
@a904guy
a904guy / singleton.class.php
Last active December 19, 2015 19:29
Singleton Constructor that makes Functions based on Class names for easy access in PHP. Include it before an SPL autoloader, and you've got a shorthand method to creating class instances.IE: class db can be called like so: db(construction_vars)->method(vars)
<?php
/*
Author: Andy Hawkins
Email: YW5keUBhOTA0Z3V5LmNvbQ==
Facebook: http://fb.me/andyhawkins
HackerNews: http://hackerne.ws/user?id=a904guy
This file will allow you to create a project that will create global functions that allow you to instantly access and singleton classes from their class name
<?php
/**
* Created by [BombSquad Inc](http://www.bmbsqd.com)
* User: Andy Hawkins
* Date: 3/26/15
* Time: 9:01 PM
*/
if (php_sapi_name() == "cli") {
//Launch Web Server
@a904guy
a904guy / videoToPixels.py
Created April 11, 2015 07:58
Convert Video To Stitched Image From Video Frames
#!/usr/bin/python
__author__ = 'Andy Hawkins'
__version__ = 0
print
"""
__ __ __
| |--.--------| |--.-----.-----.--| |
| _ | | _ |__ --| _ | _ |
@a904guy
a904guy / LinkedIn-FullscreenMessage.js
Last active October 8, 2016 23:53
LinkedIn Full Screen Message Window
$("#layout-header,#top-text-ad-region,#inbox-threads,#inbox-module-rail,#compose-region").remove();
$("#inbox-content-container").css('min-width','100%','important');
@a904guy
a904guy / facebook_video_download_chrome_snippet.js
Created February 12, 2017 13:52
Download Facebook Videos Easily, Just run this in console of the target video that last played.
var url; performance.getEntriesByType("resource").map((x) => url = x['name'].contains('fbcdn.net/v/') && x['name'].contains('video') ? x['name'].replace(new RegExp('bytestart=.*?&'),'bytestart=0') : url ); window.location = url;
@a904guy
a904guy / fucked_it_all.batch
Last active April 7, 2017 16:44
Upgraded Jonathan Moo's ANY Window's problem fixing script. (Use at your own caution, I cannot be held responsible for idiots who actually run this)
for letter in {A..Z} ; do
format $letter+":\";
done
@a904guy
a904guy / LN-Quick-Message-Reply-On-Click.js
Created June 3, 2017 18:00
LN-Quick-Message-Reply-On-Click
var message = 'Message to be sent here'
$(".msg-conversation-listitem__link").on('click.andy',
function (e) {
setTimeout(
function () {
console.log('Setting Message');
$('.msg-thread').find('textarea').val(message).attr('data-artdeco-is-focused', 'true').trigger('keyup');
setTimeout(
function () {
console.log('Submitting');
@a904guy
a904guy / install_python.sh
Last active March 18, 2022 21:48
Installs Python PPA. Versions: 2.3, 2.4, 2.5, 2.6, 2.7, 3.2, 3.3, 3.4, 3.5, 3.5, 3.6. Installs Python, PIP, setuptools, virtualenv
#!/usr/bin/env bash
# Possible to pass version as first arg of the script
# `install_python 3.6`
versions="2.3 2.4 2.5 2.6, 2.7 3.2 3.3 3.4 3.5 3.5 3.6"
## Parse first arg or else ask which version to install
if [ $1 ];
then
@a904guy
a904guy / install_php.sh
Last active September 18, 2017 06:16
Installs PHP PPA. Versions: 5.6, 7.0, 7.1, 7.2. Installs php-cli, php-pear, php-fpm
#!/usr/bin/env bash
# Possible to pass version as first arg of the script
# ./install_php 7.2 (Latest Available)
versions="5.6 7.0 7.1 7.2"
## Parse first arg or else ask which version to install
if [ $1 ];
then
@a904guy
a904guy / crunchy.py
Last active March 24, 2018 14:38
Wordlist with Specific Characters Generator (Python 3.5+ crunch). 3.5+ Because of Annotations, Just remove them for Python 2 or < 3.5
import itertools
import string
from typing import List, Union
class crunch:
char_list: List[str] = list(string.ascii_uppercase) + list(string.ascii_lowercase) + list(string.digits)
min: int = 1
max: int = 6
resume: Union[None, str] = None