Skip to content

Instantly share code, notes, and snippets.

View MaddyGuthridge's full-sized avatar
🏳️‍⚧️
Trans rights

Maddy Guthridge MaddyGuthridge

🏳️‍⚧️
Trans rights
View GitHub Profile
@MaddyGuthridge
MaddyGuthridge / google_markdowned.mustache
Last active September 8, 2022 05:29
A docstring template based on Google's template, modified to read better with Markdown formatting
{{! Google Docstring Template }}
{{! Modified to be markdown-friendly}}
{{! Originally sourced from: https://github.com/NilsJPWerner/autoDocstring/blob/master/src/docstring/templates/google.mustache}}
{{summaryPlaceholder}}
{{extendedSummaryPlaceholder}}
{{#parametersExist}}
## Args:
@MaddyGuthridge
MaddyGuthridge / cs6771-docker-setup.md
Last active September 8, 2022 05:04
Setup instructions for using Docker in COMP6771 at UNSW

I've been informed that a new build system is in place for COMP6771 from 22T3 and onwards, so these instructions may not be accurate or up-to-date anymore.

1. Install Docker

Use this link.

If you're on Linux, you may need to install the engine separately to the desktop app. Have a look for your distro in the Server section of the page above and install that first.

2. Build the provided docker image, then start a container for it

@MaddyGuthridge
MaddyGuthridge / fl_plugin_params.py
Last active September 7, 2022 11:04
Print parameter list for a plugin in FL Studio
"""
fl_plugin_params.py
A simple script to print out every parameter name for a plugin.
To run this script:
1. Load the plugin into the first slot of the channel rack
2. From the view menu, open the script output
3. Copy and paste each line into the input field one by one, hitting enter between the lines
@MaddyGuthridge
MaddyGuthridge / unsw_shell_aliases.sh
Created February 18, 2023 07:26
Helpful aliases and functions for working locally at UNSW CSE
# Copy this into your .bashrc or .zshrc
# To make this even nicer, use `ssh-copy-id` so you don't need to use your password for everything
# UNSW zID
export ZID="z5312085"
# Environment variables pointing to CSE Servers
export CSE="${ZID}@login.cse.unsw.edu.au"
# Quick alias for SSH-ing into CSE
@MaddyGuthridge
MaddyGuthridge / gitignore.sh
Last active March 27, 2023 13:32
Gitignore grabber
# Simple function to grab a .gitignore file from GitHub
# Usage: gitignore [language name]
# Note that it's case-sensitive. This it GitHub's fault, not mine
gitignore ()
{
curl -s --fail "https://raw.githubusercontent.com/github/gitignore/main/$1.gitignore" -o .gitignore
if [ $? -eq 0 ]; then
return 0
else
echo "Lookup failed, maybe check capitalisation?"
@MaddyGuthridge
MaddyGuthridge / 1531-setup.md
Last active April 24, 2023 13:32
Getting set up for COMP1531

Getting set up for COMP1531

Here are the steps you should follow to get started working on your own computer in COMP1531.

On all platforms

  1. Install VS Code

On Windows

"""
A simple script to install everything
"""
from subprocess import Popen
from string import ascii_lowercase
MAX_LENGTH = 100
ALLOWED_CHARACTERS = ascii_lowercase + '-'
const { execSync } = require('node:child_process');
const MAX_LENGTH = 100;
// https://stackoverflow.com/a/44574128/6335363
const ALLOWED_CHARACTERS = [...Array(26).keys()].map((n) => String.fromCharCode(97 + n));
ALLOWED_CHARACTERS.push('-');
function installPackage(name) {
execSync(`npm install ${name}`, { stdio: 'inherit' });
@MaddyGuthridge
MaddyGuthridge / todo-tree-settings.json
Created May 29, 2023 13:11
My custom Todo Tree extension settings
{
"todo-tree.highlights.defaultHighlight": {
"foreground": "white",
"background": "#00000000"
},
"todo-tree.highlights.useColourScheme": false,
"todo-tree.general.tags": [
"BUG",
"FIXME",
"BROKEN",
@MaddyGuthridge
MaddyGuthridge / keybindings.json
Created May 19, 2024 13:18
My VS Code keybindings
// Place your key bindings in this file to override the defaults
[
// New file commands
// =============================================
// New file command in explorer by default
{
"key": "ctrl+n",
"command": "explorer.newFile"
},
// New directory in explorer: Ctrl+Shift+N