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
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
Stupid Shit
// Matthew McMillan
// @matthewmcmillan
// http://matthewcmcmillan.blogspot.com
//
// Digital speedometer
//
// VSS on car connects to pin 5
// CLK on display to Analog pin 5
// DAT on display to Analog pin 4
//
@tapickell
tapickell / gist:a62a6c36b1f3026b4bec
Last active August 25, 2015 20:00 — forked from pjobson/remove_mcafee.md
OSX McAfee Removal
launchctl stop com.mcafee.menulet
launchctl stop com.mcafee.reporter
launchctl remove com.mcafee.menulet
launchctl remove com.mcafee.reporter
sudo su -
launchctl stop com.mcafee.virusscan.fmpd
launchctl stop com.mcafee.ssm.ScanManager
@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 / 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
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>>)
@tapickell
tapickell / TurnipPrices.cpp
Created May 11, 2020 18:19 — forked from Treeki/TurnipPrices.cpp
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{