Skip to content

Instantly share code, notes, and snippets.

View markbahnman's full-sized avatar

Mark Bahnman markbahnman

View GitHub Profile
@markbahnman
markbahnman / HES-Refactor.js
Created February 16, 2013 20:17
My initial refactor of the Hubski Enhancement Suite using jQuery and the module pattern.
// ==UserScript==
// @name Hubski Enhancement Suite
// @namespace http://joshparnham.com/
// @description Several feature additions to Hubski.com
// @copyright Josh Parnham 2013 (http://joshparnham.com/)
// @license LGPL
// @author joshparnham
// @include http://hubski.com/*
// @include https://hubski.com/*
// @version 0.2.1
@markbahnman
markbahnman / convert-to-mp4.sh
Last active April 20, 2016 17:35
Nice script to convert your mkvs to mp4s using ffmpeg
#!/bin/sh
LOG="$HOME/convert-to-mp4.log"
for arg; do
if [ -d "$arg" ]; then
echo "$arg is a directory\n"
find ${arg%/} -type f -name "*.mkv" -print0 | while IFS= read -r -d '' file; do
DIR=$(dirname "${file}")
BASE=$(basename "${file}" ".mkv")
cd "${DIR}"
MKV=$(find . -maxdepth 1 -name "${BASE}.mkv" -print0)

Keybase proof

I hereby claim:

  • I am markbahnman on github.
  • I am markbahnman (https://keybase.io/markbahnman) on keybase.
  • I have a public key ASCTbCJiz2-I0wpcjRr44O6c7F2i7f2Ff-IQdFpfm2gmHAo

To claim this, I am signing this object:

@markbahnman
markbahnman / Cargo.toml
Last active August 8, 2020 00:33
Testing out json rust parsing
[package]
name = "json_rust"
version = "0.1.0"
authors = ["mark"]
edition = "2018"
[dependencies]
serde = { version = "1.0.104", features = ["derive"] }
serde_derive = "1.0.104"
serde_json = "1.0.44"