Skip to content

Instantly share code, notes, and snippets.

View tapickell's full-sized avatar
🌴
Just happy to be here

Todd Pickell tapickell

🌴
Just happy to be here
View GitHub Profile
@tapickell
tapickell / code.js
Last active August 26, 2015 02:44 — forked from maxkfranz/code.js
Visual style
$(function(){ // on dom ready
$('#cy').cytoscape({
layout: {
name: 'cose',
padding: 10
},
style: cytoscape.stylesheet()
.selector('node')
@tapickell
tapickell / gtav_stocks.rb
Last active September 19, 2015 04:17 — forked from edwardloveall/gtav_stocks.rb
Get stocks for the GTA V BAWSAQ
require 'net/http'
require 'json'
def request
Net::HTTP.get(URI('http://socialclub.rockstargames.com/games/gtav/ps4/bawsaq'))
uri = URI('http://socialclub.rockstargames.com/games/gtav/ajax/stockdetail')
http = Net::HTTP.new(uri.host, uri.port)
req = Net::HTTP::Get.new(uri)
@tapickell
tapickell / Gulpfile.js
Created February 16, 2016 01:46 — forked from Eunoia/Gulpfile.js
Deploy your wintersmith generated static site to amazon S3
var fs = require('fs');
var gulp = require('gulp');
var runWintersmith = require('run-wintersmith');
var s3 = require("gulp-s3");
var options = { headers: {'Cache-Control': 'public'} }
gulp.task('default', function() {
console.log('`gulp deploy` to deploy')
});
@tapickell
tapickell / sandi_meter_spec.rb
Last active May 12, 2016 14:12
An example of using the Sandi Metz Meter Gem in a test suite.
require "rails_helper"
RSpec.describe 'Sandi Meter Results' do
before :all do
results = %x{ sandi_meter }
@classes,@methods,@parameters,@controllers = results.scan(/(...)[%]/).flatten.map{ |s| s.to_i }
end
it '100% of classes are under 100 lines' do
expect(@classes).to eq(100)
@tapickell
tapickell / dropkick.sh
Created August 17, 2016 15:33
Turn off spy cams in airbnb rentals
#!/bin/bash
#
# DROPKICK.SH
#
# Detect and Disconnect the DropCam and Withings devices some people are using to
# spy on guests in their home, especially in AirBnB rentals. Based on Glasshole.sh:
#
# http://julianoliver.com/output/log_2014-05-30_20-52
#
# This script was named by Adam Harvey (http://ahprojects.com), who also

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@tapickell
tapickell / sep
Created December 2, 2016 19:25
Mcafee Endpoint Killer
#!/bin/bash
# relaunch with sudo if we aren't root
if [[ $EUID -ne 0 ]]; then
echo "$0: relaunching as sudo $0 $1 $USER"
sudo "$0" $1 $USER
exit $?
fi
real_user=$USER
@tapickell
tapickell / .spacemacs
Created December 17, 2016 14:55
Spacemacs config
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
defmodule A do
def err(_, <<length, data :: binary>>) do
case {length, data} do
{0, _} -> data
{4, <<rest :: binary>>} -> rest
end
end
end
<<0>> = A.err(0, <<0>>)
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
require("awful.autofocus")
-- Widget and layout libraries
local wibox = require("wibox")
local vicious = require("vicious")
local redflat = require("redflat")
-- Theme handling library