Skip to content

Instantly share code, notes, and snippets.

View slickplaid's full-sized avatar

Evan slickplaid

View GitHub Profile
@slickplaid
slickplaid / README.md
Last active May 8, 2018 01:59
Create an AP on a raspberry pi

Raspi Atlas AP

This will set up a raspbian access point with all traffic masqueraded through eth0

Usage

wget -O- https://gist.githubusercontent.com/slickplaid/a55bdcd5ad9c1ecc933bb0fd245dbbf6/raw/df2b624fc25ee742d971f999de85a4f4e2daaaf8/raspi-chromecast-ap.sh | sh
045e4a129a42d99765944f99c25c71c8e6a91417f7b8514d80e1447ebf230fc0c70f8c3ac2a0ab3077f0a6414541698cdb8dd8f10cf9b4f293b801bb7cf6509667
@slickplaid
slickplaid / notes.sh
Created October 2, 2017 16:57
CLI Notes => ~/notes.md
notes() {
if [ ! -z "$1" ]; then
# Using the "$@" here will take all parameters passed into
# this function so we can place everything into our file.
echo "$@" >> "$HOME/notes.md"
else
# If no arguments were passed we will take stdout and place
# it into our notes instead.
cat - >> "$HOME/notes.md"
fi
@slickplaid
slickplaid / extract.bat
Last active September 11, 2017 21:15
Quickly extract archive files
FOR /D /r %%F in ("*") DO (
pushd %CD%
cd %%F
FOR %%X in (*.rar *.zip *.001) DO (
"C:\Program Files\7-zip\7z.exe" x -aos "%%X"
)
popd
)

Keybase proof

I hereby claim:

  • I am slickplaid on github.
  • I am slicklabs (https://keybase.io/slicklabs) on keybase.
  • I have a public key ASAwNNH4AOmtX1a2mPQGfJn5wdhXTqSxbCRoE3JS_0x1ogo

To claim this, I am signing this object:

@slickplaid
slickplaid / upapt.sh
Created July 23, 2014 20:41
Rackspace Ubuntu Server - Allow older system to get updates using apt with Rackspace's Mirrors
sudo sed -i -e 's/mirror.rackspace.com\|archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
@slickplaid
slickplaid / split.go
Created November 30, 2016 22:19
Encrypt and split, join and decrypt to help bypass pesky email filters
package main
import (
"bufio"
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"fmt"
"io"
"io/ioutil"
@slickplaid
slickplaid / .block
Created October 24, 2016 18:26 — forked from mbostock/.block
Collapsible Tree
license: gpl-3.0
function buildRegexp(str) {
// start the regex with the
// ^ start key
let src = '^' + str;
// replace spaces with regex
// that accepts one or more spaces
// which will handle formatting
// inconsistencies
src = src.replace(/\s+/g, '\\s+');
@slickplaid
slickplaid / sort-table.js
Created January 27, 2016 14:36
Saved script for sorting a specific table
var tables = $('.table');
tables.each(function() {
var table = $(this);
var rows = table.find('tbody').find('tr');
rows.each(function(i) {
var row = $(this);
row.find('td:eq(0)').text(i+1);
var access = parseInt(row.find('td:eq(5)').text(), 10);
if(access <= 0) {