Skip to content

Instantly share code, notes, and snippets.


Jason S. jeregrine

  • RokkinCat
  • Milwaukee, WI
View GitHub Profile
jeregrine / fakespot.js
Last active Feb 2, 2021
Fakespot Amazon Grease Monkey
View fakespot.js
// ==UserScript==
// @name FakeSpot Amazon
// @version 1
// @match https://**
// ==/UserScript==
const url = ""+ encodeURIComponent(window.location)
window.addEventListener('load', () => {
let ratings = document.getElementById("averageCustomerReviews_feature_div");
jeregrine /
Last active Nov 19, 2018
RokkinCat is Hiring

Date Posted: 11/19/2018

Full Time Web Developer

Description: Developer who is familar with front end web development technologies, including but not limited to:

  • JavaScript
  • Comfortable with at least one major modern JavaScript framework and comfortable moving frameworks as client needs change.

The ideal candidate is someone who is:

jeregrine / wine.rb
Last active Jun 27, 2016 — forked from searls/wine.rb
Install wine via homebrew with directx patch for Stardew Valley
View wine.rb
# NOTE: When updating Wine, please check Wine-Gecko and Wine-Mono for updates
# too:
# -
# -
class Wine < Formula
desc "Wine Is Not an Emulator"
homepage ""
head "git://"
stable do
View gist:65bb0238b38d8a2dfa3a5b75c0c9d14e
$ brew install cmake
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Downloading
Already downloaded: /Users/jasonstiebs/Library/Caches/Homebrew/cmake-3.5.2.tar.gz
==> ./bootstrap --prefix=/usr/local/Cellar/cmake/3.5.2 --no-system-libs --parallel=4 --datadir=/share/cmake --docdir=/share/doc/cmake --mandir=/share/man --sys
Last 15 lines from /Users/jasonstiebs/Library/Logs/Homebrew/cmake/01.bootstrap:
View gist:10b131186d9586c9d739
### Keybase proof
I hereby claim:
* I am jeregrine on github.
* I am peregrine ( on keybase.
* I have a public key ASCxv5_catIscgkxbyUrDSk52s9QabLO7S4Yhe2Qqs_eYQo
To claim this, I am signing this object:
View gist:bbdf6e6ab756b9b7df21
===> Failed to fetch and copy dep: {git,"git://",
jeregrine /
Last active Aug 29, 2015 — forked from chrismccord/
Phoenix upgrade instructions 0.14.x to 0.15.0

Sockets and Channels

A new socket behaviour has been introduced to handle socket authentication in a single place, wire up default channel assigns, and disconnect a user's multiplex connection as needed.

First things first, create a UserSocket module in web/channels/user_socket.ex and move all your channel routes from web/route.ex to the user socket: (replace MyApp with your application module)

0.14.x - web/router.ex:

defmodule MyApp.Router do
View config.exs
config :hackney,
mod_metrics: MyApp.Util.HackneyLibratoMetrics
jeregrine / hackney_librarto.ex
Created Jun 5, 2015
Hackney Librato Metrics
View hackney_librarto.ex
defmodule MyApp.Util.HackneyLibratoMetrics do
require Logger
def new(_, _) do
def delete(_name) do
jeregrine / repo.ex
Created Jun 5, 2015
ecto repo logging
View repo.ex
defmodule MyApp.Repo do
use Ecto.Repo, otp_app: :my_app
def log(entry) do ->
[log_time("measure#database.query", entry.query_time, true), log_time("measure#database.queue", entry.queue_time, false)]