This file contains 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
# typescript code generator for my cringe university assignments | |
_example_input = \ | |
"""class Product { | |
code: string; | |
name: string; | |
category: string; | |
price: number; | |
} | |
""" |
This file contains 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
export LS_COLORS='di=36:ln=34:so=35:pi=1;32;47:ex=32:bd=1;30;47:cd=1;31;47:su=30;41:sg=1;30;45:tw=1;30;46:ow=1;31' |
This file contains 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
from functools import cache | |
from typing import List, Tuple | |
from string import ascii_uppercase | |
def generate_sub(start: str = 'Z') -> Tuple[str]: | |
_l: List[str] = list(ascii_uppercase) | |
start_index: int = _l.index(start) | |
_o_list: List[str] = list(_l) |
This file contains 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 python3 | |
from string import ( | |
ascii_lowercase, | |
ascii_uppercase, | |
digits, | |
punctuation | |
) | |
from secrets import choice | |
This file contains 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
# ls colors on mac | |
export CLICOLOR=1 | |
export LSCOLORS=gxexfxChcxAhBhabAfAgBx |
This file contains 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
curl -fsSL "https://repo.archlinuxcn.org/x86_64/glibc-linux4-2.33-4-x86_64.pkg.tar.zst" | bsdtar -C / -xvf - |
This file contains 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 | |
#hamachi installer script | |
#armhf=32 bit ARM | |
#tested on Ubuntu 20.04 | |
INSTALLER_PACKAGE=logmein-hamachi_2.1.0.203-1_armhf.deb | |
if [ ! -f "${INSTALLER_PACKAGE}" ]; then | |
wget https://www.vpn.net/installers/${INSTALLER_PACKAGE} | |
fi |
This file contains 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
# curl -L tinyurl.com/recoverymodehelp | |
csrutil | |
csrutil disable | |
csrutil enable |
This file contains 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 | |
# first install noip2: https://www.noip.com/support/knowledgebase/installing-the-linux-dynamic-update-client/ | |
# then, run this as root (su) | |
wget https://gist.githubusercontent.com/NathanGiesbrecht/da6560f21e55178bcea7fdd9ca2e39b5/raw/b5594a39e908548f4319294553497d2db3053e0a/noip2.service | |
mv noip2.service /etc/systemd/system/ | |
sudo systemctl daemon-reload | |
sudo systemctl enable noip2 | |
sudo systemctl start noip2 |
This file contains 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
https://www.youtube.com/playlist?list=PLn3ukorJv4vs_eSJUQPxBRaDS8PrVmIri | |
https://www.youtube.com/playlist?list=PLGKIkAXk1OeSRZ7_xhz_TvUgudrL8_yJt | |
https://www.youtube.com/playlist?list=PLaGRTLvEbVzybijtYZRy4EoGrx6Bq_xOG | |
NewerOlder