Skip to content

Instantly share code, notes, and snippets.

Alan Pope popey

Block or report user

Report or block popey

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
@popey
popey / rebuildsnaps.sh
Created Jul 25, 2019
Script to rebuild a bunch of snaps using lxd or multipass
View rebuildsnaps.sh
#!/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 Apr 3, 2019
Template snapcraft.yaml for Godot Engine games
View snapcraft.yaml
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 Apr 3, 2019
Template snapcraft.yaml for Unity3D games.
View snapcraft.yaml
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 Feb 6, 2019
gotop snapcraft.yaml used during Snapcraft Live stream on 6th Feb 2019
View snapcraft.yaml
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 Feb 6, 2019
GeekBench snapcraft.yaml used during Snapcraft Live stream on 6th Feb 2019
View snapcraft.yaml
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 Jan 7, 2019
Setup Digitial Ocean droplets for class
View do_snapcraft_notes.md
@popey
popey / move_dropbox.sh
Created Dec 13, 2018
Move Dropbox to a sparse file
View move_dropbox.sh
# 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 Nov 2, 2018
Script to build an electron based app in lxd
View build_electron_snap.sh
#!/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 Oct 30, 2018
Script to automate cleanup and build of snap
View build-snap.sh
#!/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
@popey
popey / setup_easy-openvpn_ubuntu-core.md
Last active Jan 6, 2019
Steps to setup easy-openvpn on Ubuntu Core
View setup_easy-openvpn_ubuntu-core.md

Steps to setup easy-openvpn on Ubuntu Core

This gist is to accompany a more wordy blog post which covers everything in much more detail. These are the easily copy/pastable steps.

For this you will need:-

  • Raspberry Pi 2 or 3, PSU, keyboard, LAN connection, HDMI cable and display
  • Laptop/desktop computer - mine is running Ubuntu 18.04 but anything with SSH will do
  • Micro SD card and adapter to attach to the computer
You can’t perform that action at this time.