Skip to content

Instantly share code, notes, and snippets.

@oooh-name
oooh-name / readme.md
Created March 29, 2023 15:48 — forked from CodeMichael/readme.md
Tailscale on Steam Deck

Tailscale on the Steam Deck

This process is derived from the [official guide][official-guide], but lightly tweaked to make the process smoother and produce an installation that both (1) comes up automatically on boot and (2) survives system updates.

Installing Tailscale

  1. Download the attached tailscale.sh to your Deck.
  2. Run tailscale.sh
@oooh-name
oooh-name / readme.md
Created March 29, 2023 15:48 — forked from legowerewolf/readme.md
Tailscale on Steam Deck

Tailscale on the Steam Deck

This process is derived from the [official guide][official-guide], but lightly tweaked to make the process smoother and produce an installation that comes up automatically on boot (no need to enter desktop mode) and survives system updates.

Installing Tailscale

⚠️ This process will probably fail if you are accessing the terminal over Tailscale

@oooh-name
oooh-name / merge_mijia.py
Created February 22, 2023 05:59 — forked from secsilm/merge_mijia.py
合并米家摄像头监控视频,生成以天为单位的视频文件。
import argparse
import subprocess
from pathlib import Path
from loguru import logger
parser = argparse.ArgumentParser(description='合并米家摄像头视频,以天为单位。')
parser.add_argument('indir', help='原米家摄像头视频目录。')
parser.add_argument('--outdir', default='./', help='合并后视频存放目录,目录不存在会被创建。默认当前目录。')
args = parser.parse_args()
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@oooh-name
oooh-name / README.md
Created July 12, 2021 03:38 — forked from chuyik/README.md
macOS 给 Git(Github) 设置代理(HTTP/SSH)
@oooh-name
oooh-name / 1_createRootCA.sh
Created June 1, 2021 08:50 — forked from AlexZeitler/1_createRootCA.sh
create selfsigned certificate with subject alternative name
#!/usr/bin/env bash
mkdir ~/ssl/
openssl genrsa -des3 -out ~/ssl/rootCA.key 2048
openssl req -x509 -new -nodes -key ~/ssl/rootCA.key -sha256 -days 1024 -out ~/ssl/rootCA.pem
@oooh-name
oooh-name / .bash_aliases
Created March 30, 2021 09:34 — forked from vratiu/.bash_aliases
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@oooh-name
oooh-name / python-colours.md
Created March 30, 2021 09:34 — forked from dideler/python-colours.md
Formatted output in the terminal (using Python)

Most (or all) of these methods make use of ANSI escape sequences.

Straight-up

For example, using a dictionary:

ansi = {'underline': '\033[4m', 'bold': '\033[1m', 'end':'\033[0m'}
print '{[bold]}Hello World{[end]}'.format(ansi, ansi)