Skip to content

Instantly share code, notes, and snippets.

<div id='product-component-46a813aa036'></div>
<script type="text/javascript">
/*<![CDATA[*/
(function () {
var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
if (window.ShopifyBuy) {
if (window.ShopifyBuy.UI) {
ShopifyBuyInit();
} else {
<div id='product-component-46a813aa036'></div>
<script type="text/javascript">
/*<![CDATA[*/
(function () {
var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
if (window.ShopifyBuy) {
if (window.ShopifyBuy.UI) {
ShopifyBuyInit();
} else {
@benaubin
benaubin / keybase.md
Created March 4, 2017 19:35
Proof of my new username

Keybase proof

I hereby claim:

  • I am benaubin on github.
  • I am penne (https://keybase.io/penne) on keybase.
  • I have a public key whose fingerprint is F388 F64C EDFB 1A4E 5858 EBDF B659 E9A8 F31B D679

To claim this, I am signing this object:

Hey! I changed my username from @penne12 on GitHub to @benaubin.

This is just proof - I'm still the same person :D


If you've cloned an old repo of mine, make sure to change the remote to reflect this change. Instructions

@benaubin
benaubin / fix-a-bio-for-twitter.js
Last active December 6, 2016 00:15
Allows you to fix twitter bios.
$(".ProfileHeaderCard-bio").attr('contentEditable', true)
(function(){
var homepage = {
aboutUsLink: jQuery("a[href*='/about']").css({'background-color': 'red'})[0].href
};
if(homepage.aboutUsLink){
var aboutUsPage = jQuery('<iframe>').attr('src', homepage.aboutUs).css({'visibility': 'hidden'}).appendTo('body');
aboutUsPage[0].contentWindow.jQuery((function(){}).bind(aboutUsPage[0].contentWindow))
}
var hoaxHash = {homepage: homepage, aboutUsPage: aboutUsPage};
return hoaxHash;
@benaubin
benaubin / index.html
Last active November 3, 2016 02:11
Hide a secret
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex, nofollow">
@benaubin
benaubin / Readme.md
Last active February 11, 2024 18:47
Click To Call Bookmarklet

Click to Call Bookmarklet

This bookmarklet calls the phone number in the next element clicked. If a phone number does not exist or is not valid, the user is then prompted to enter a valid phone number. This continues until the user enters a valid phone number, or cancels a prompt.

To install the bookmarklet, type this into your browser's address bar (note the javascript: part):

javascript:var%20script=document.createElement('script');script.src="https://cdn.rawgit.com/penne12/246dc4ca0d4db595fcfb07fd441ab513/raw/e2d6e480556d54f305c1619b177568dc488fc376/install-bookmarklet.js";script.type="text/javascript";document.body.appendChild(script);
@benaubin
benaubin / spy.js
Last active April 28, 2016 22:38
spy.js - Need to watch calls to your functions? Or calls to THEIR functions? Spy on them.
(function () {
(function () {
var Spy;
Spy = function () {
function Spy(original, callback1) {
var s;
this.original = original;
this.callback = callback1;
s = this;
this.callback || (this.callback = function (_this) {
@benaubin
benaubin / mysql-god.rb
Last active March 6, 2016 04:40 — forked from traviskroberts/mysql.rb
a nice way of auto restarting mysql
# run in non-daemonized mode (so you can monitor it) with `god -c /path/to/mysql.god -D`
# run normally with `god -c /path/to/mysql.god`
God.watch do |w|
# you can name this whatever you want
w.name = "mySQL"
# polling interval
w.interval = 30.seconds