Skip to content

Instantly share code, notes, and snippets.

View paulchabotca's full-sized avatar
🤓
Javascript, PHP, Python, Bash, Regex

Paul Chabot paulchabotca

🤓
Javascript, PHP, Python, Bash, Regex
View GitHub Profile
@samsheffield
samsheffield / UnityCodingCheatSheet.txt
Last active January 20, 2026 22:49
Unity C# Cheat Sheet
// Unity C# Cheat Sheet
// I made these examples for students with prior exerience working with C# and Unity.
// Too much? Try Unity's very good tutorials to get up to speed: https://unity3d.com/learn/tutorials/topics/scripting
@sheharyarn
sheharyarn / bash-boilerplate.sh
Created October 29, 2016 21:51
Bash Script Boilerplate code
#!/usr/bin/env bash
# Bash3 Boilerplate. Copyright (c) 2014, kvz.io
set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace
# Set magic variables for current file & dir
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@lazyfrosch
lazyfrosch / docker-cleanup.sh
Created March 6, 2018 07:32
Docker Cleanup for dangling images and volumes, but keep named volumes
#!/bin/bash
RC=0
IMAGES=($(docker images -q -f dangling=true))
VOLUMES=($(docker volume ls -q -f dangling=true))
if [ "${#IMAGES[@]}" -ne 0 ]; then
for image in "${IMAGES[@]}"
do
@mattbell87
mattbell87 / create-mysql.bash
Last active May 7, 2024 01:07 — forked from omeinusch/create-mysql.bash
Simple bash script to create mysql db, user with generated password
#!/bin/bash
echo "Creating MySQL user and database"
PASS=$2
if [ -z "$2" ]; then
PASS=`openssl rand -base64 8`
fi
mysql -u root <<MYSQL_SCRIPT
CREATE DATABASE $1;
CREATE USER '$1'@'localhost' IDENTIFIED BY '$PASS';