Skip to content

Instantly share code, notes, and snippets.

View joeygravlin's full-sized avatar

Joey Gravlin joeygravlin

View GitHub Profile
@joeygravlin
joeygravlin / README.md
Created October 24, 2020 02:26
RTJ4 - Free Album.cue

RTJ4 Cue

Idk if the timings on this are quite right yet. I just summed up the tracklengths from Wikipedia's track listing

mp3splt -f -c RTJ4\ -\ Free\ Album.cue RTJ4\ -\ Free\ Album.mp3
@joeygravlin
joeygravlin / sp-111.js
Last active August 21, 2020 15:52
Counts the min/max number of switches for SP-111 https://geekhack.org/index.php?topic=103449.0
//#!/usr/bin/env node
// Counts the min/max number of switches for SP-111
// https://geekhack.org/index.php?topic=103449.0
//
// left and right arrays go from top-to-bottom rows
// except the last element on right, for the arrow keys
const sp111 = {
switches: {
max: {

Android - Enable ADB from recovery

Credits to @TheOnlyAnil-@Firelord[^stackoverflow]

  • Requirements: a) stock recovery + rooted phone b) custom recovery

  • Files changed:

@joeygravlin
joeygravlin / example-subtree-usage.md
Created April 11, 2018 00:46 — forked from kvnsmth/example-subtree-usage.md
A real world usage for git subtrees.

Let's say you have an iOS project, and you want to use some external library, like AFNetworking. How do you integrate it?

With submodules

Add the project to your repo:

git submodule add git@github.com:AFNetworking/AFNetworking.git Vendor/AFNetworking

or something to that effect.

@joeygravlin
joeygravlin / keybase.md
Created April 8, 2018 20:30
#keybase proof

Keybase proof

I hereby claim:

  • I am joeygravlin on github.
  • I am gravdev (https://keybase.io/gravdev) on keybase.
  • I have a public key ASAES0pqHsZU9ZNsfcqaSGue8DVY6-JnkXBnb8zvCRZqMAo

To claim this, I am signing this object:

@joeygravlin
joeygravlin / how-to-squash-commits-in-git.md
Last active March 19, 2018 01:20 — forked from patik/how-to-squash-commits-in-git.md
How to squash commits in git

Squashing Git Commits

The easy and flexible way

This method avoids merge conflicts if you have periodically pulled master into your branch. It also gives you the opportunity to squash into more than 1 commit, or to re-arrange your code into completely different commits (e.g. if you ended up working on three different features but the commits were not consecutive).

Note: You cannot use this method if you intend to open a pull request to merge your feature branch. This method requires committing directly to master.

Switch to the master branch and make sure you are up to date:

@joeygravlin
joeygravlin / myweechat.md
Created August 28, 2017 19:14 — forked from pascalpoitras/1.md
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

Enable mouse support

/mouse enable

Encrypted password in sec.conf

@joeygravlin
joeygravlin / Vagrantfile
Created February 27, 2017 21:01
Vagrantfile I'm using for my CIS457 projects. Sets up basic development stuff + Mininet, based on ubuntu/trusty64.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
let webpack = require('webpack');
let path = require('path');
module.exports = {
entry: {
app: './resources/assets/js/app.js',
vendor: ['vue', 'axios']
},
output: {
@joeygravlin
joeygravlin / vanilla-js-cheatsheet.md
Created December 12, 2016 17:34 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet