Skip to content

Instantly share code, notes, and snippets.

View popey's full-sized avatar
🏠
Working from home

Alan Pope popey

🏠
Working from home
View GitHub Profile
@popey
popey / move_dropbox.sh
Created December 13, 2018 11:24
Move Dropbox to a sparse file
# Location of the image which will contain the new ext4 partition
DROPBOXFILE="$HOME"/.dropbox.img
# Current location of my Dropbox folder
DROPBOXHOME="$HOME"/Dropbox
# Where we will copy the folder to. If you have little space, you could make this
# a folder on a USB drive
DROPBOXBACKUP="$HOME"/old_Dropbox
@popey
popey / do_snapcraft_notes.md
Created January 7, 2019 16:05
Setup Digitial Ocean droplets for class
@popey
popey / snapcraft.yaml
Created February 6, 2019 21:55
GeekBench snapcraft.yaml used during Snapcraft Live stream on 6th Feb 2019
name: geekbench
base: core18 # the base snap is the execution environment for this snap
version: '4.3.3' # just for humans, typically '1.2+git' or '1.3.2'
summary: GeekBench
description: |
Geekbench 4 measures your system's power and tells you whether your computer
is ready to roar.
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
@popey
popey / snapcraft.yaml
Created February 6, 2019 21:56
gotop snapcraft.yaml used during Snapcraft Live stream on 6th Feb 2019
name: gotop
base: core18 # the base snap is the execution environment for this snap
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: gotop
description: |
A terminal based graphical activity monitor inspired by gtop and vtop
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots
@popey
popey / snapcraft.yaml
Created April 3, 2019 20:17
Template snapcraft.yaml for Unity3D games.
name: unitygame
version: "1.0"
summary: Unity Game
description: |
A simple game made in Unity.
base: core18
confinement: strict
parts:
unity-game:
@popey
popey / snapcraft.yaml
Created April 3, 2019 20:17
Template snapcraft.yaml for Godot Engine games
name: godot-game
base: core18
version: '1.0'
summary: Godot Game
description: |
A simple game made in Godot
grade: stable
confinement: strict
@popey
popey / rebuildsnaps.sh
Created July 25, 2019 11:01
Script to rebuild a bunch of snaps using lxd or multipass
#!/bin/bash -x
DATESTAMP="$(date +%Y%m%d)-$(date +%H%M%S)"
SNAPCRAFT_CHANNEL="--candidate"
GHUSER=snapcrafters
LXDIMAGE="ubuntu:16.04"
TEMPDIR=$(pwd)/build-$DATESTAMP
RESULTSDIR="$TEMPDIR"/results
REPORT=$RESULTSDIR/report
mkdir -p $TEMPDIR/results
@popey
popey / UbuntuPostInstall.md
Last active March 27, 2021 09:20
Steps done Post-Install

Editing

After recording, each person drops their .flac file into a sub-directory called Dropbox/UbuntuPodcast/{S09E00}, where S09 is the season number, and E00 is the number of this episode.

  • Take a copy of the episode directory. Don't work inside the Dropbox directory because it annoys people when they get all your changes sync'd.
  • Use the ~/Dropbox/UbuntuPodcast/Audacity/audacity.sh script to launch audacity (it kills and re-enables pulseaudio for you)
  • Create a new project
  • Import all the FLAC files as seperate stereo tracks. They will be slightly different lengths and volumes, but should all start at the same point in time.

Mix down

#!/bin/bash
# Check for updates to a bunch of snaps
DATESTAMP=$(date +%Y-%m-%d)
TIMESTAMP=$(date +%H%M%S)
LOGFILE=./reports/$DATESTAMP-$TIMESTAMP.txt
SNAPSFILE="./snaps.csv"
USERNAME="popey"
TMPDIR=$(mktemp -d)