Skip to content

Instantly share code, notes, and snippets.

View slickplaid's full-sized avatar

Evan slickplaid

View GitHub Profile
@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 / 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) {
@slickplaid
slickplaid / breathe-mod.js
Created December 18, 2015 17:01
Modify the color pallete of www.xhalr.com
var BreatheMod = (function() {
// Colors. Change these to whatever you want.
var backgroundColor = '#000';
var innerCircleColor = '#333';
function formatColorString(color) {
return 'background-color: '+color+';';
};
var ZoomHandler = (function() {
if(typeof require === 'undefined') {
return {};
}
// Private
const defaultZoom = 1;
const defaultWidth = 1030;
const maxZoom = 2;
var electronScreen = require('screen');
var webFrame = require('web-frame');
var currentZoomLevel;
var defaultZoomLevel = webFrame.getZoomFactor();
var defaultWidth = 1030;
function getZoomLevel() {
var zoomFactor = webFrame.getZoomFactor();
@slickplaid
slickplaid / module1.js
Last active August 29, 2015 14:13
Question about Scope in Javascript
var module2 = require('./module2');
// will return the same exact output from console.log as inside the module
module2.function1();
module2.function2();
// If you want to get around this, you will want to pass the variables, or set them inside the proper scope
var module3 = require('./module3');