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 / benchmark.php
Created September 23, 2023 17:01
Quick Benchmark Function to Gather Execution Times in PHP.
<?php
register_tick_function('trackExecutionTime');
declare(ticks=1);
function trackExecutionTime()
{
global $executionTimes;
@a904guy
a904guy / openpgp.txt
Created June 15, 2019 16:07
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:df67f345d4613586a2722cef296c7744216d05fd]

Keybase proof

I hereby claim:

  • I am a904guy on github.
  • I am a904guy (https://keybase.io/a904guy) on keybase.
  • I have a public key ASBYmBNvTOaNiCgXuP_FY0dMxMiK5U86IzCSy1tWbkCn_go

To claim this, I am signing this object:

@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
@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 / 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 / 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 / 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 / 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 / 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');