Skip to content

Instantly share code, notes, and snippets.

View kevindb's full-sized avatar

Kevin Morris kevindb

View GitHub Profile
@thexa4
thexa4 / showbest.js
Last active May 16, 2017 13:07
For use with spaceplan
// Paste in console
var clickBestThing = function(){
var things = [...document.querySelectorAll("#manufacture__container > div")].map(function(e){
var res = {e};
[...e.getElementsByTagName("span")].map(function(s){
res[s.id] = +s.innerText.replace(/[^0-9]/g, '')
})
if(e.id === "item__spudGun" || e.id === "item__potatoLauncher") res.powerGain *= 1000;
res.score = res.cost * (powerGain + res.powerGain)/res.powerGain;
@Andrewpk
Andrewpk / OSX-junos_pulse_listenToMe.sh
Last active July 11, 2024 20:22
wtf juniper.Anyone else find it irritating that junos pulse services and pulse tray must always running in OS X regardless of whether or not you're currently connected?Yeah, me too.I added the following as aliases to my shell to fix this problem.Be sure to change your /Library/LaunchAgents/net.juniper.pulsetray.plist file to reflect the `KeepAli…
#################################################################################
# start and stop the vpn from the command line from now on with these two commands
#################################################################################
startvpn() {
sudo launchctl load -w /Library/LaunchDaemons/net.pulsesecure.AccessService.plist
launchctl load -w /Library/LaunchAgents/net.pulsesecure.pulsetray.plist
}
quitvpn() {
launchctl unload -w /Library/LaunchAgents/net.pulsesecure.pulsetray.plist
sudo launchctl unload -w /Library/LaunchDaemons/net.pulsesecure.AccessService.plist
@awayken
awayken / jquery.PLUGIN.js
Created April 30, 2012 02:26
A blank template for creating a new jQuery plugin, modified from http://starter.pixelgraphics.us/
/******************
jQuery Plugin
Name: PLUGIN
Author: Miles Rausch (http://awayken.com)
Version: VER
******************/
(function($){
$.PLUGIN = function(el, PARAM, options){
// To avoid scope issues, use 'base' instead of 'this'
// to reference this class from internal events and functions.