This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
if [ "$(basename "$PWD")" != "oph2025" ]; then | |
echo "You are not in oph2025" | |
exit 1 | |
fi | |
mkdir -p ~/.oph-tmp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt update | |
apt install ca-certificates curl | |
install -m 0755 -d /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | |
chmod a+r /etc/apt/keyrings/docker.asc | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null | |
apt update | |
apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def pkm(): | |
h = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'] | |
cur = input() # get input. e.g.: e4 | |
cur = list(cur) # split each character to list. e.g. [e, 4] | |
curInt = [h.index(cur[0].upper()) + 1, int(cur[1])] # change horizontal axis to int (+1 since index is 0 based) | |
allPossibleMove = [] | |
# two horizontal + one vertical | |
for i in [2, -2]: | |
x = curInt[0] + i # get horizontal axis move |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name cleanVlr | |
// @version 1.1 | |
// @grant none | |
// @match *://*.vlr.gg/* | |
// ==/UserScript== | |
const showBetting = false; | |
document.getElementById("float-left-300").remove() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function printScrooge() { | |
const sheet = SpreadsheetApp.openById('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx') | |
const res = sheet.getSheetByName('Res') | |
const slip = sheet.getSheetByName('Slip') | |
const all = res.getDataRange().getValues() | |
const payed = slip.getDataRange().getValues() | |
let c = 0 | |
let arr = [] | |
for (i=1; i < all.length; i++){ |