Skip to content

Instantly share code, notes, and snippets.

View mattdconnell's full-sized avatar

Matthew Connell mattdconnell

View GitHub Profile
@mattdconnell
mattdconnell / puush.sh
Created April 17, 2017 16:54
Puush arbitrary file
#!/bin/sh
# Uncommend following line if you would like to add api key in this file
#PUUSH_API_KEY="apikeyhere"
if [ -z "$PUUSH_API_KEY" ]
then
echo "Set the variable PUUSH_API_KEY in $0 or with 'export PUUSH_API_KEY=\"apiKeyHere\""
exit 1
elif [ -z "$1" ]
@mattdconnell
mattdconnell / puush-scrot.sh
Created April 17, 2017 16:56
Puush + scrot
#!/bin/sh
# The message that the user will be sent.
MESSAGE=""
# API key definition.
API_KEY_FILE="/home/$USER/.puush.api"
# Read in the user's API key
if [ -f $API_KEY_FILE ]
@mattdconnell
mattdconnell / id_rsa.pub.md
Last active August 16, 2017 21:56
braeburn.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAEAQDhphxBWiNz+FWP5ZorAWc8opj8gd2+2Vm1h4bRRnKDFImrTUU7fmGIE1AHBzEIzOLsBNVcJ/HTI6RuvnFUXiN6GpDdcUl4f0f14AdnDSzXCXR8Pl8Cmg6vBjYcyp2bDhXFbAvOPa3npGzsfGzJL9Kz/oeo5W2XLledOHcB6HO+zBB+HQY30hILCQ8ktVnEng5fHml9T1w+zQGcRUsOCkmsY7SeFEdBDvv9ZUBwvNpT8CnIcuGgdZmdHGdge5GWcZxZWm9gHKI1ArySDKzrb4GLAihq1RuvO9YG+uLogU8i/H5mh63p2rs1arUwTT2vpyzf0zGlw+f9NbTKua4U27q7prbhNF/fdgIUcaZH4iHKaswcal12+1/2n88P/RPOGLqoAfnt9yYtcuGA5AF6wFZ5ixn9f0U0d4TUoC3u6TG3fgLRdhuFzheBkqJ9PxLET3iJ90NDUxQJzCAvEnF9KPAmvn+oCDnuO/DrxH3PWhFNY+xoMK4r3EHsipJzK68R+A7r8K41W21XwuVLD3JjGtFVyLoabRHJZjGmoL4db3BHg53hhfWM7syOW3E4W+aY77hUOHR9V+olg69tmLHNRVHYqq3bhWq/LRZv4pMFXzYryoCX/2pv94hdGkv9r2BVu0bYWEoTgjPxdSUUV8N6veN6ESSJq3UIkMNhZsei00o6Gii7vIhBuQg4ok9M/OhuDKFCHICryPsxYKdjT4fBNofOajOW/4Cm6t1SjuewCnMHuWTXAugt+m622Vf1nJF+Ya0EQyxi1RoOrjf76JSHESeKIOV87a31mxTW43B0NGvMTFMDYqkWsMZRcjaderG/hS2QKE+qpE/kkuLYW7i49+/d+uG5ADl7A6CHIS2XMfjTd/05G2CvF3vXm95knBEVz2usVds2onPiSzEODiTFjpAq2GE4JWb9HQOoK5KGgGiflGx95AbI2B7fD/3bI25H3nYqbHQSrsmEVGgcRdZofO8R
@mattdconnell
mattdconnell / col.py
Created November 6, 2017 22:27
Column retrieval, python, csv
"""Col dot py
Usage:
col.py -f file -c column
Options:
-h help Get help
-f file Filename to parse
-c column The column to return.
@mattdconnell
mattdconnell / fix_mysql.inc.php
Created February 19, 2018 16:29 — forked from rubo77/fix_mysql.inc.php.md
A php include that replaces all mysql functions with the corresponding mysqli functions
<?php
/**
* replacement for all mysql functions
*
* Be aware, that this is just a workaround to fix-up some old code and the resulting project
* will be more vulnerable than if you use the recommended newer mysqli-functions instead.
* So only If you are sure that this is not setting your server at risk, you can fix your old
* code by adding this line at the beginning of your old code:
<?php