Skip to content

Instantly share code, notes, and snippets.

View HotelCalifornia's full-sized avatar
🏩
🏳️‍🌈🏳️‍⚧️

Hannah Brooke HotelCalifornia

🏩
🏳️‍🌈🏳️‍⚧️
View GitHub Profile
@HotelCalifornia
HotelCalifornia / git-switch-issue
Created November 16, 2022 17:16
create a new branch or switch to an existing branch (either local or remote) by JIRA issue reference
#!/usr/bin/env python3
import os
import sys
from git import Head, RemoteReference, Repo
from subprocess import check_output
def checkout_branch(r, b):
2x Politoed - DP Legends Awakened (12/146)
4x Poliwrath - SM Unbroken Bonds (39/214)
4x Poliwhirl - SM Unbroken Bonds (38/214)
4x Poliwag - SM Unbroken Bonds (37/214)
4x Dive Ball - XY Primal Clash (125/160)
4x Repeat Ball - XY Primal Clash (136/160)
4x Level Ball - XY Ancient Origins (76/98)
4x Super Rod - XY BREAKthrough (149/162)
4x Ordinary Rod - SwSh Base (171/202)
4x Evosoda - XY Base (116/146)
@HotelCalifornia
HotelCalifornia / malloc.c
Created June 16, 2021 22:16
CS 252 malloc implementation
#include <errno.h>
#include <pthread.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "myMalloc.h"
#include "printing.h"
@HotelCalifornia
HotelCalifornia / register-arm-toolchains.sh
Created September 15, 2020 04:25
add multiple versions of arm-none-eabi toolchain to update-alternatives
#!/usr/bin/env bash
set -e
TOOLCHAIN_FILE="./toolchains.dat"
PRIORITIES_FILE="./priorities.dat"
rm -f $TOOLCHAIN_FILE $PRIORITIES_FILE
TARGET_TRIPLE="arm-none-eabi"
@HotelCalifornia
HotelCalifornia / circles.cpp
Created March 15, 2020 03:06
in lieu of doing anything remotely useful, i decided to do this
#include <array>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <utility>
namespace circles {
namespace {
template <std::size_t radius, std::size_t cx, std::size_t cy, std::size_t N, std::size_t... I>
@HotelCalifornia
HotelCalifornia / cursed_runner.c
Created February 5, 2020 19:31
automate xinu console tools for great workflow good
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#define READ 0
#define WRITE 1
{
"py/object": "pros.conductor.conductor.Conductor",
"py/state": {
"default_libraries": {
"cortex": [],
"v5": [
"okapilib"
]
},
"default_target": "v5",
@HotelCalifornia
HotelCalifornia / better-discord.css
Last active June 10, 2019 09:26 — forked from Mijyuoon/better-discord.css
Custom discord theme
/* -- Hide "Blocked Messages" frames -- */
.messageGroupBlocked-3wrQQX {
display: none !important;
}
/* -- Reduce message input box margins -- */
/* .chat-3bRxxu form {
margin: 0px 10px !important;
@HotelCalifornia
HotelCalifornia / test_cad_engine.kts
Created April 6, 2019 04:41 — forked from Octogonapus/test_cad_engine.kts
testing using the CadEngine from a kotlin script
/*
* This file is part of BowlerBuilder.
*
* BowlerBuilder is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* BowlerBuilder is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@HotelCalifornia
HotelCalifornia / cbg
Last active February 16, 2018 04:52
quick way to change background image in hyper terminal
#!/usr/bin/env bash
# change hyper background image given a file
python3 $HOME/change_bg.py $1
# change this to your own hyper config
cp $HOME/.hyper.js /path/to/windows/.hyper.js