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 / UbuntuPostInstall.md
Last active March 27, 2021 09:20
Steps done Post-Install
@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 / 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 / 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 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 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 / do_snapcraft_notes.md
Created January 7, 2019 16:05
Setup Digitial Ocean droplets for class
@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 / build_electron_snap.sh
Last active November 2, 2018 13:57
Script to build an electron based app in lxd
#!/bin/bash
# Override that with the tag
# build-snap v1.16.2 # build specific tag
# Override with latest
# build-snap master # build git master
# Override with most recent release
# build-snap release # build latest stable release
# Set these variables
# Lower case name as it would appear in the store
@popey
popey / build-snap.sh
Created October 30, 2018 14:01
Script to automate cleanup and build of snap
#!/bin/bash
# Script to clean up and rebuild a snap locally
# Name of the snap as seen in the store
export snapname="SNAPNAME"
# If the command we run is namespaced, optionally add it here
#export commandname=".COMMANDNAME"
# If there are interfaces defined to connect, optionally list them here