Skip to content

Instantly share code, notes, and snippets.

@jdoconnor
jdoconnor / safeway_just_for_u.js
Created February 24, 2023 18:16
Safeway Just For U coupon clicker userscript
// ==UserScript==
// @name Just For U Coupon Clipper
// @version 1
// @grant GM_notification
// @match https://www.safeway.com/foru/coupons-deals.html*
// @description Clip all the coupons on the current (as of 5/21/2020) Safeway Just For U coupon system.
// @namespace https://greasyfork.org/users/22981
// ==/UserScript==
/// While the load more button exists, load more
@jdoconnor
jdoconnor / just_for_u.js
Created May 27, 2022 14:16
just for u coupon clipper
// ==UserScript==
// @name Just For U Coupon Clipper
// @version 1
// @grant none
// @match https://www.safeway.com/foru/coupons-deals.html*
// @description Clip all the coupons on the current (as of 5/21/2020) Safeway Just For U coupon system.
// @namespace https://greasyfork.org/users/22981
// ==/UserScript==
// forked from the original version (created by https://greasyfork.org/users/22981)
@jdoconnor
jdoconnor / gist:32ef0314cecb80157c4e
Created September 26, 2014 21:38
Update mtimes based off commit time
#!/bin/bash -e
####
# based on https://gist.github.com/jeffery/1115504
# Helper script to update the Last modified timestamp of files in a Git SCM
# Projects working Copy
#
# When you clone a Git repository, it sets the timestamp of all the files to the
# time when you cloned the repository.
#
# This becomes a problem when you want the cloned repository, which is part of a
@jdoconnor
jdoconnor / gist:b6adf24dd0df0a4e66ed
Created September 26, 2014 14:23
Tiny hack to git data changing
# touch the directory. This is not efficient, as the directory will be touched for every file
touch -d "${FILE_MODIFIED_TIME}" `dirname $2`
@jdoconnor
jdoconnor / gist:9628b6340a6fa1bbc6f2
Created July 1, 2014 15:03
pivotal to markdown
# gem install pivotal-tracker
require 'pivotal-tracker'
PivotalTracker::Client.token = 'YOUR API TOKEN' # Manually set API Token
a_project = PivotalTracker::Project.find(YOUR PROJECT NUMBER)
iterations = PivotalTracker::Iteration.current_backlog(a_project)
stories = iterations.collect{ |i| i.stories }.flatten
output = ""
stories.each do |story|
@jdoconnor
jdoconnor / gist:f3dc50bd12aa4ad6f839
Last active August 29, 2015 14:00
getting started
# please pay attention to the terminal. These installations have a lot of feedback on the commandline to view.
# rvmrc
\curl -sSL https://get.rvm.io | bash -s stable
rvm install 2.0.0
# install command line tools for building.
xcode-select --install
# install homebrew
### Keybase proof
I hereby claim:
* I am jdoconnor on github.
* I am jdoconnor (https://keybase.io/jdoconnor) on keybase.
* I have a public key whose fingerprint is 6AE2 3AB0 F9CA A4B6 D5C2 0E6B 019F E4F2 D1AA CA9B
To claim this, I am signing this object:
@jdoconnor
jdoconnor / Gemfile
Last active August 29, 2015 13:57
RPC with bunny
source 'https://rubygems.org'
gem 'bunny'
gem 'hashie'
gem 'pry'
gem 'json'
@jdoconnor
jdoconnor / gist:6876052
Last active March 23, 2020 15:21
loop through tmux windows, control c and exit
tmux list-window | awk -F":" '{system("tmux select-window -t "$1"; tmux send-keys C-c; tmux send-keys \"exit\"; tmux send-keys Enter")}'; tmux attach