Skip to content

Instantly share code, notes, and snippets.

View jeremysells's full-sized avatar

Jeremy Sells jeremysells

View GitHub Profile
@jeremysells
jeremysells / Xbuntu-18.04-Install.md
Last active April 9, 2019 16:18
Xbuntu (18.04) (Ubuntu + Xfce)
@jeremysells
jeremysells / dated_folder_backup.sh
Last active September 2, 2018 19:36
Dated Folder Backup
#!/usr/bin/env bash
set -e
# MIT licensed
# This script is AS-IS where is (no warrenty, liability etc - see the license for full)
# see: https://opensource.org/licenses/MIT and/or https://en.wikipedia.org/wiki/MIT_License
# Note: This script should just be used as an example. Use at your own risk!
@jeremysells
jeremysells / .env
Last active November 5, 2022 00:56
Jenkins Example
REGISTRY_URI=registry.example.com
APPLICATION_DOCKER_FROM_IMAGE=ubuntu:18.04
APPLICATION_PHP_VERSION=7.2
APPLICATION_CODE=some-thing
APPLICATION_NAME=Some\ Thing
APPLICATION_DESCRIPTION=Some\ Thing\ Else
APPLICATION_VENDOR_NAME=Your\ Name
DATA_DIR=../some-thing-data
# Dev only.
@jeremysells
jeremysells / make-untangle-open-vpn-client.sh
Last active May 6, 2021 12:33
Creates an Untangle compatible OpenVPN client from an inline OpenVPN config
#!/usr/bin/env bash
set -e
# MIT licensed
# This script is AS-IS where is (no warrenty, liability etc - see the license for full details)
# see: https://opensource.org/licenses/MIT and/or https://en.wikipedia.org/wiki/MIT_License
# About:
# This file converts a single file (client.conf) with inline certs into an Untangle compatible client (to be imported)
@jeremysells
jeremysells / composer.sh
Last active October 19, 2018 06:16
bin/composer.sh
#!/usr/bin/env bash
set -e
# MIT licensed
# This script is AS-IS where is (no warranty, liability etc - see the license for full details)
# https://opensource.org/licenses/MIT and/or https://en.wikipedia.org/wiki/MIT_License
# Notes:
# * This script is meant to be loaded from the root of the git repo, which can contain a .env file (with project settings)
@jeremysells
jeremysells / ubuntu-ics-notes.md
Created October 12, 2018 16:19
ubuntu-ics notes

Notes on ICS from a VM

Some notes when I was working with ubuntu-ics. These might not be complete and are probably missing things

Hints

  • remove/disable apparmor might help
  • logs are in syslog (cat /var/log/syslog)

Config

  • OS = Xubuntu (Ubuntu 18.04.1 LTS)
@jeremysells
jeremysells / Jenkinsfile
Last active March 6, 2019 15:41
Jenkinsfile Docker Composer PHP example
// This was a test for Jenkins running Docker containers
stage('Build') {
agent {
docker {
image 'composer:latest'
// If you use SSH cloning you need this. TODO - look at tokens for private repos and http clone
args '-v /etc/passwd:/etc/passwd:ro'
// args '-e HOME -v $HOME/.ssh:$HOME/.ssh:ro -v /etc/passwd:/etc/passwd:ro -v /etc/group:/etc/group:ro'
}
@jeremysells
jeremysells / Terraform-DigitalOcean-Kubernetes-Helm-Dashboard.tf
Last active June 8, 2023 12:43
Terraform-DigitalOcean-Kubernetes-Helm-Dashboard.tf
# This was a test, use as is where is (MIT License)
# Test of Terraforming a Kubernetes cluster on Digital Ocean with Helm and a basic setup (dashboard and ingress)
# I was also push a container in via local Helm that had an image stored in Gitlabs Docker Registry
# You need to have the following tools installed (Terraform, Helm, Kubectl)
# run `terraform init`, then `terraform apply`
# Goto the Digital Ocean dashboard and download the kubeconfig to `/.kube/config`
# To access the proxy run `kubectl proxy` and then goto
# `http://localhost:8001/api/v1/namespaces/kube-system/services/https:dashboard-kubernetes-dashboard:https/proxy/
#
# To get the token, use something like:
@jeremysells
jeremysells / XFCE_date_format.md
Created August 2, 2019 22:29
XFCE date format
@jeremysells
jeremysells / bluetooth-audio-fix.sh
Created September 21, 2019 18:19
Xubuntu a2dp/audio sink wont connect blueman.bluez.errors.DBusFailedError: Protocol not available
# Some commands I use to fix bluetooth audio issues.
# As is where is
sudo killall pulseaudio
sleep 10
pulseaudio --start