Skip to content

Instantly share code, notes, and snippets.

Jesse Riddle bitmvr

Block or report user

Report or block bitmvr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View example--parse-semver-with-bash.sh
#!/usr/bin/env bash
VERSION="$1"
VERSION="${VERSION#[vV]}"
VERSION_MAJOR="${VERSION%%\.*}"
VERSION_MINOR="${VERSION#*.}"
VERSION_MINOR="${VERSION_MINOR%.*}"
VERSION_PATCH="${VERSION##*.}"
echo "Version: ${VERSION}"
@bitmvr
bitmvr / the-feed-qr-codes.md
Last active Nov 30, 2019
The Feed - QR Codes
View the-feed-qr-codes.md
@bitmvr
bitmvr / hosts.ps1
Created Nov 14, 2019
Powershell script for adding/removing/viewing entries to the hosts file. [ MIRROR for https://gist.github.com/markembling/173887 ]
View hosts.ps1
#
# Powershell script for adding/removing/showing entries to the hosts file.
#
# Known limitations:
# - does not handle entries with comments afterwards ("<ip> <host> # comment")
#
$file = "C:\Windows\System32\drivers\etc\hosts"
function add-host([string]$filename, [string]$ip, [string]$hostname) {
@bitmvr
bitmvr / automation_hacks_for_Win_10.ps1
Created Nov 6, 2019
Automation Hacks for Windows 10
View automation_hacks_for_Win_10.ps1
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...
@bitmvr
bitmvr / keyboard_shortcuts__bash.md
Last active Oct 25, 2019
Keyboard Shortcuts - Bash
View keyboard_shortcuts__bash.md

Keyboard Shortcuts - Bash

Command Editing Shortcuts

  • Ctrl + a – go to the start of the command line
  • Ctrl + e – go to the end of the command line
  • Ctrl + k – delete from cursor to the end of the command line
  • Ctrl + u – delete from cursor to the start of the command line
  • Ctrl + w – delete from cursor to start of word (i.e. delete backwards one word)
  • Ctrl + y – paste word or text that was cut using one of the deletion shortcuts (such as the one above) after the cursor
@bitmvr
bitmvr / default_writes.md
Last active Oct 24, 2019
Default Writes for MacOS
View default_writes.md

Default Writes

Screenshot.app

Default Location

defaults write com.apple.screencapture location "~/path/to/desired/directory"
@bitmvr
bitmvr / guitar-maintenance.md
Last active Oct 15, 2019
Guitar Maintenance
View guitar-maintenance.md

Guitar Maintenance

Remove Guitar Strings

Turn the string's tuner until the tension on the string is completely removed. Next, use wire cutters to cut the strings and remove them from the bridge and the tuning peg.

Cleaning

To clean your guitar's fretboard , you will want to remove the strings from the guitar itself. Please see the Removing Strings section to learn how remove the strings from your guitar.

@bitmvr
bitmvr / irv-hal-count.js
Last active Jul 25, 2019
Irvington Halloween Counter
View irv-hal-count.js
#!/usr/bin/env node
const puppeteer = require('puppeteer');
const submissions = {
one: "https://www.facebook.com/irvhalloween/photos/pcb.10157648652552160/10157648601497160/?type=3&theater",
two: "https://www.facebook.com/irvhalloween/photos/pcb.10157648652552160/10157648601502160/?type=3&theater",
mark : "https://www.facebook.com/irvhalloween/photos/a.451834352159/10157648601317160/?type=3&theater",
four: "https://www.facebook.com/irvhalloween/photos/pcb.10157648652552160/10157648602242160/?type=3&theater",
five: "https://www.facebook.com/irvhalloween/photos/pcb.10157648652552160/10157648602677160/?type=3&theater",
@bitmvr
bitmvr / got_episode_durations.sh
Created Jun 19, 2019
Get the duration for all GOT episodes.
View got_episode_durations.sh
#!/usr/bin/env bash
WIKIPEDIA_ENDPOINT='https://en.wikipedia.org/'
getEpisodes(){
local route='/wiki/List_of_Game_of_Thrones_episodes'
curl -sL "${WIKIPEDIA_ENDPOINT}${route}" | pup '.wikiepisodetable tr > td:nth-of-type(2) a attr{href}'
}
getRuntime(){
@bitmvr
bitmvr / S4M.md
Last active Oct 26, 2019
S4M - My default system configuration
View S4M.md

S4M

S4M is a numeronym for SYSTEM. S4M is my default system configuration for *NIX based workstations.

Operating System Agnostic

Dot Files

.bash_profile

You can’t perform that action at this time.