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
#!/bin/bash | |
alias kc=kubectl | |
alias bat=cat | |
alias hx=/root/squashfs-root/AppRun | |
wget https://github.com/helix-editor/helix/releases/download/24.07/helix-24.07-x86_64.AppImage | |
chmod +x helix-24.07-x86_64.AppImage | |
./helix-24.07-x86_64.AppImage --appimage-extract |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"gopkg.in/yaml.v3" | |
) | |
type Blocktype uint8 |
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
#!/bin/bash | |
# modified to work with Mac OS' Porting Kit's installation location to attempt multiplayer fix | |
set -ex | |
AOE4_DIR="/Users/$USER/Applications/Age of Empires 3 Definitive Ed.app/Contents/SharedSupport" | |
AOE4_WIN_DIR=$AOE4_DIR/prefix/drive_c/windows | |
AOE4_WIN_SYS32_DIR=$AOE4_WIN_DIR/system32 | |
AOE4_WIN_SYS64_DIR=$AOE4_WIN_DIR/syswow64 |
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
// This function will generate links to every file in the same folder as this one | |
// use <%tp.user.folder_links(tp.file.path(), tp.file.title)%> to generate the list. | |
// The main use of this is if the notes are organized "Wiki style", with a file in | |
// each folder that matches the folder name, i.e. | |
// notes/ | |
// ├─ notes.md | |
// ├─ stickynotes/ | |
// │ ├─ stickynotes.md |
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
//Tic-tac-toe playing AI. Exhaustive tree-search. WTFPL | |
//Matthew Steel 2009, www.www.repsilat.com | |
#include <stdio.h> | |
char gridChar(int i) { | |
switch(i) { | |
case -1: | |
return 'X'; | |
case 0: |