Skip to content

Instantly share code, notes, and snippets.

View gvn's full-sized avatar
🥀
technopagan is the term

Gavin Suntop gvn

🥀
technopagan is the term
View GitHub Profile
@gvn
gvn / fatosxsort.md
Last active December 6, 2020 04:39
Sorting FAT disks via OSX
  1. brew install fatsort
  2. Run mount (note the /dev/MOUNTPOINT and /Volumes/DISKNAME)
  3. sudo umount /Volumes/DISKNAME
  4. sudo fatsort /dev/MOUNTPOINT
{
"spocs": [
{
"domain_affinities": {
"abc.go.com": 1,
"abcnews.com": 1,
"abcnews.go.com": 1,
"adweek.com": 1,
"alltop.com": 1,
"alphastreet.com": 1,
@gvn
gvn / pi-temp.sh
Created July 15, 2017 22:30
Get the CPU & GPU temperature of a Raspberry Pi
#!/bin/bash
cpu=$(</sys/class/thermal/thermal_zone0/temp)
echo "$(hostname)"
echo "$(date)"
echo ""
echo "GPU: $(/opt/vc/bin/vcgencmd measure_temp | sed "s/'/°/g" | sed "s/temp=//g")"
echo "CPU: $((cpu/1000))°C"
@gvn
gvn / ubuntu-pms.md
Last active April 8, 2017 21:14
Upgrading Plex Media Server on Ubuntu Server

Manual

  1. In the Plex web client click Settings -> General.
  2. Copy target URL for "Please Install Manually".
  3. wget MANUAL_UPDATE_URL -O pms.deb
  4. sudo dpkg -i pms.deb
  5. rm pms.deb

Bash script

@gvn
gvn / npm-front-end.md
Created March 11, 2016 00:40
NPM for Front-end Libraries

NPM for Front-end Libraries

@gvn
gvn / ISSUE_TEMPLATE.md
Last active February 18, 2016 17:03
New Issue Template
*OS:* ALL
*Browser:* ALL
*Screenshot:*

**Repro Steps:**
1. STEP
2. STEP
3. STEP
@gvn
gvn / radical.md
Last active February 20, 2016 17:50
🤘

Radical

Stuff I think is pretty dang rad. Inspired by Awesome – but more personal.

Code Libraries

Node.js

@gvn
gvn / crontab
Last active December 14, 2015 02:08
Pretty Crontab
# WAT? –> http://crontab.guru
# ┌────────────────────────── minute
# | ┌───────────────────── hour
# | | ┌──────────────── day of month
# | | | ┌─────────── month
# | | | | ┌────── day of week
# | | | | |
# ▼ ▼ ▼ ▼ ▼ command