Skip to content

Instantly share code, notes, and snippets.

View anonymouse64's full-sized avatar
🍎
Think Different

Ian Johnson anonymouse64

🍎
Think Different
View GitHub Profile
@anonymouse64
anonymouse64 / snap-debug-info.sh
Last active March 23, 2022 13:00
[DEPRECATED] Basic debugging information for snap devices
#!/bin/bash
##############################################################################
##############################################################################
#
# THIS IS DEPRECATED - PLEASE USE THE NEW HOME FOR THIS SCRIPT:
# https://github.com/snapcore/snapd/blob/master/debug-tools/snap-debug-info.sh
#
##############################################################################
##############################################################################
@merlijn-sebrechts
merlijn-sebrechts / get_reviews.py
Last active July 16, 2021 14:43
Get all reviews of a snap
#! /usr/bin/env python3
#
# Run this script to get all reviews of a single snap.
#
#%%
from datetime import datetime
import getpass
import hashlib
import json
import requests
@LorbusChris
LorbusChris / MatrixIRC.md
Last active December 30, 2022 19:27
Matrix libera.chat IRC Bridge Setup

Matrix libera.chat IRC Bridge Setup

Change libera.chat IRC Nick

This is optional, in case you prefer your nick to be shown as something other than <matrix_nick>[m] on IRC, e.g. just <matrix_nick> (without the [m] suffix) or <libera_nick>.

Open a private chat with @appservice:libera.chat:

!nick <new_libera_nick>

Note: This does not change your Matrix nick!

#!/bin/bash
set -e
if [[ -n "$D" ]]; then
set -x
fi
##HELP: Usage: repack-kernel <command> <opts>
##HELP:
@bboozzoo
bboozzoo / cloud-images.md
Last active March 19, 2024 13:10
Short guide to preparing VMs for local development

Trivial guide for setting up cloud images (incl. Ubuntu Core) for local development in VM.

It's assumed that the images are configured to run cloud-init.

Local cloud-init config

Example cloud configuration file:

@NickZ
NickZ / x-mono-stage-packages.py
Created December 5, 2019 23:06
How to stage packages from a third-party repository in snapcraft
import snapcraft
import os
import textwrap
# Just edit this to put in your repo.
# For examples sake, I've used the official mono repo
# Once edited, put this in your "snap/plugins" directory, create a part using this plugin, then stage your packages.
_BASE_TO_UBUNTU_RELEASE_MAP = {"core16": "xenial", "core18": "bionic"}
@jeremyxu2010
jeremyxu2010 / Dockerfile
Last active September 25, 2019 02:01
kong 1.3.0 arm64 Dockerfile
FROM arm64v8/ubuntu:16.04
ENV KONG_VERSION 1.3.0
ENV OPENRESTY_VERSION 1.15.8.1
ENV LUAROCKS_VERSION 3.1.3
ENV PCRE_VERSION 8.43
ENV OPENSSL_VERSION 1.1.1c
RUN apt-get update && apt-get install -y libreadline-dev libncurses5-dev \
build-essential libpcre3-dev perl curl libssl-dev zlib1g-dev \
#!/bin/bash -e
## Launch the latest daily Ubuntu in AWS, optionally with user-data
## provided in a file and tagged with a name
function usage() {
echo "$0: [-r region] [-V ubuntu_version] [-i instance_type] \\"
echo " [-u user_data_file] [-n instance_name] [-d disk_size] \\"
echo " [-D] to disable termination via the API"
echo " [-I] iam instance profile [-a AMI ID]"
echo " [-P profile] aws cli profile"