Skip to content

Instantly share code, notes, and snippets.

Avatar
🥀
technopagan is the term

gavin lazar suntop gvn

🥀
technopagan is the term
View GitHub Profile
@gvn
gvn / fatosxsort.md
Last active Dec 6, 2020
Sorting FAT disks via OSX
View fatosxsort.md
  1. brew install fatsort
  2. Run mount (note the /dev/MOUNTPOINT and /Volumes/DISKNAME)
  3. sudo umount /Volumes/DISKNAME
  4. sudo fatsort /dev/MOUNTPOINT
View space_feed
{
"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 Jul 15, 2017
Get the CPU & GPU temperature of a Raspberry Pi
View pi-temp.sh
#!/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 Apr 8, 2017
Upgrading Plex Media Server on Ubuntu Server
View ubuntu-pms.md

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 Mar 11, 2016
NPM for Front-end Libraries
View npm-front-end.md

NPM for Front-end Libraries

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

**Repro Steps:**
1. STEP
2. STEP
3. STEP
View radical.md

Radical

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

Code Libraries

Node.js

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