Skip to content

Instantly share code, notes, and snippets.

siraben /
Last active Feb 9, 2021
macOS script to collect and dedup MAC addresses from a network
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2018 Ben Siraphob <>
command -v gshuf >/dev/null 2>&1 || { echo >&2 "gshuf is required but is not installed. Run \"brew install coreutils\"."; control_c; }
command -v spoof-mac >/dev/null 2>&1 || { echo >&2 "spoof-mac is required but is not installed. Run \"brew install spoof-mac\"."; control_c; }
# Colors
bertoort /
Created Apr 30, 2020
What makes a senior software engineer?

| Standard | Junior | Mid | Senior

devonzuegel / close-zoom-tab-on-success.js
Last active May 24, 2020
Close Zoom tab on success — TamperMonkey
View close-zoom-tab-on-success.js
/* This has moved to:
cmod /
Last active Feb 25, 2021 — forked from eddiewebb/
Fast, instant client side search for Hugo static site generator

Super fast, keyboard-optimized, client side Hugo search

This is a fork of and builds upon the work of Eddie Webb's search and Matthew Daly's search explorations.

It's built for the Hugo static site generator, but could be adopted to function with any json index compatible with Fuse fuzzy search library.

To see it in action, go to and press CMD-/ and start typing.

Fast Search

fernandoaleman /
Last active Feb 12, 2021
Install mysql2 on MacOS Mojave

For MacOS Catalina, visit Install mysql2 on MacOS Catalina


Installing mysql2 gem errors on MacOS Mojave.


Make sure openssl is installed on Mac via Homebrew.

bcnzer / postman-pre-request.js
Last active Mar 9, 2021
Postman pre-request script to automatically get a bearer token from Auth0 and save it for reuse
View postman-pre-request.js
const echoPostRequest = {
url: 'https://<my url>',
method: 'POST',
header: 'Content-Type:application/json',
body: {
mode: 'application/json',
raw: JSON.stringify(
client_id:'<your client ID>',
client_secret:'<your client secret>',
BryanSchuetz / cachebust.rb
Created Feb 17, 2018
CSS Cache Bust Jekyll Plugin
View cachebust.rb
module Jekyll
module CacheBust
class CacheDigester
require 'digest/md5'
attr_accessor :file_name, :directory
def initialize(file_name:, directory: nil)
self.file_name = file_name = directory
levelsio / btc-eth-dca-buy.php
Last active Mar 8, 2021
This script runs daily and "Dollar Cost Average"-buys $40 BTC and $10 ETH per day
View btc-eth-dca-buy.php
// by @levelsio
// 2017-08-23
// 1) buy $40/day BTC
// 2) buy $10/day ETH
NicholasJacques / rails_setup.markdown
Last active Mar 3, 2021
Getting Started with RSpec and Rails:
View rails_setup.markdown

Getting Started with RSpec and Rails:

Setting up a new Ruby on Rails project using RSpec, Cabybara, FactoryGirl and DatabaseCleaner

What will this tutorial do you for you?

This tutorial will help guide you through the process of setting up a new Ruby on Rails project with robust testing capabilities. This tutorial makes a couple of assumptions:

  • You have installed Ruby on Rails and have a rudimentary understanding of how to use it.
  • You have installed bundler
kristopolous / hn_seach.js
Last active Mar 3, 2021
hn job query search
View hn_seach.js
function query() {
// HN is done with very unsemantic classes.
job_list ='.c5a,.cae,.c00,.c9c,.cdd,.c73,.c88')),
query_list =,
shown = 0, total = job_list.length;
// Traverses up the dom stack trying to find a match of a specific class
function up_to(node, klass) {
if (node.classList.contains(klass)) {