- Get PAT (personal access token)
Personal Settings > Developer settings > Personal access tokens
- ghcr login test
| def calculate_cpa_both_modes(data_string): | |
| grade_points = { | |
| 'A+': 4.0, | |
| 'A': 4.0, | |
| 'B+': 3.5, | |
| 'B': 3.0, | |
| 'C+': 2.5, | |
| 'C': 2.0, | |
| 'D+': 1.5, | |
| 'D': 1.0, |
| #!/bin/bash | |
| # Usage: curl -sSL https://a.xn--c-kia488t.vn/clone | sudo bash -s -- pc1 | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "Please run as root (e.g., sudo bash script.sh)" | |
| exit 1 | |
| fi | |
| NEW_HOSTNAME=$1 |
| tlmgr update --self | |
| tlmgr install koma-script vntex geometry tabularx graphics fancybox was amscls amsmath amsfonts psnfss tools enumitem subfiles import titlesec chngcntr pdflscape afterpage algorithm2e ifoddpage relsize capt-of multirow fancyhdr appendix xcolor listings caption float booktabs subcaption xurl url glossaries glossaries-extra xkeyval mfirstuc xfor datatool tracklang supertabular setspace parskip blindtext biblatex biber hyperref oberdiek logreq etoolbox graphics-cfg graphics-def iftex | |
| tlmgr install outlines |
| #!/bin/bash | |
| declare -A TOOLS=( | |
| ["EvtxECmd"]=true | |
| ["AmcacheParser"]=true | |
| ["AppCompatCacheParser"]=true | |
| ["JLECmd"]=true | |
| ["LECmd"]=true | |
| ["MFTECmd"]=true | |
| ["PECmd"]=true |
| #!/bin/bash | |
| #=============================================================================== | |
| # mirror-repo.sh | |
| # | |
| # Clones a source repository and mirrors it to a new private repository on | |
| # your GitHub account. | |
| # | |
| # Usage: | |
| # ./mirror-repo.sh <source_repository_url> |
| ## install uv on OS | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| ## create new project | |
| uv init myproj | |
| ## install packages | |
| uv add django requests "pandas>=2.3" | |
| ## remove package |
Personal Settings > Developer settings > Personal access tokens
| tr -dc A-Za-z0-9 </dev/urandom | head -c 32 ; echo |
| # remote | |
| ./cloudflared --url tcp://127.0.0.1:3389 | |
| # local | |
| ./cloudflared access tcp --hostname uncertainty-saints-newark-martin.trycloudflare.com --url 127.0.0.1:3388 | |
| # rdp to 127.0.0.1:3388 |