Skip to content

Instantly share code, notes, and snippets.

View bycassius's full-sized avatar
🧃
*sip*

CASSIUS bycassius

🧃
*sip*
  • Melbourne
  • 05:49 (UTC +10:00)
View GitHub Profile
@fire1ce
fire1ce / oh-my-zsh on openwrt or lede-project.md
Last active April 26, 2024 05:00
Install oh-my-zsh on openwrt/lede-project

Install oh-my-zsh on OpenWrt

Install Requirements Packages

opkg update && opkg install ca-certificates zsh curl git-http

Install oh-my-zsh

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
@kouwei32
kouwei32 / macos-packet-spooling-fixes.md
Last active April 14, 2024 16:42
Fixes for Low-Latency Desktop Streaming stuttering on macOS (applies to Moonlight, Parsec, Stadia, Geforce Now, etc.)

macOS Yosemite and above utilize AWDL (Apple Wireless Direct Link) to handle data transfers to other AWDL-enabled devices (Macs, Macbooks, iPhones, etc.) over the Wifi Radio, without the need for a common underlying Access Point.

However, whenever AWDL is active (Bonjour discovery and any Airdrop, Airplay, and GameKit links and transfers), it will lock the Wifi radio for small intervals. For Bonjour discovery specifically, this comes to an effective packet spooling time of about 50-100ms, once per second (active transfers will be higher).

Obviously, this will create unacceptable latency spikes for low-latency desktop streaming apps. To disable the AWDL interface, use the following command in Applications > Utilities > Terminal (this requires you to be logged in as an Administrator and enter your password):

sudo ifconfig awdl0 down

@mollifier
mollifier / zshrc_useful.sh
Last active April 9, 2024 06:29
少し凝った zshrc
# 少し凝った zshrc
# License : MIT
# http://mollifier.mit-license.org/
########################################
# 環境変数
export LANG=ja_JP.UTF-8
# 色を使用出来るようにする
@legowerewolf
legowerewolf / readme.md
Last active April 7, 2024 02:13
Tailscale on Steam Deck
@Maigre
Maigre / tailscale-glinet.sh
Created April 8, 2022 08:32
Install Tailscale on GL.iNET router, using microSD/USB storage.
#!/bin/bash
#
# Tailscale install script on GL.iNet devices
# Tested on BERYL (MT1300), should work on MANGO (GL-MT300N)
# and probably other mipsel devices, as long as external storage (microSD/USB)
# is available.
#
# Written by Thomas BOHL for Hemisphere-Project - 2022
# Free to use - No warranty provided
@huaminghuangtw
huaminghuangtw / .gitconfig
Last active March 10, 2024 16:22
My Git Configuration
[user]
name = Hua-Ming Huang
email = huaming.huang.tw@gmai.com
[github]
user = huaminghuangtw
tokentype = ssh
[include]
path = ~/.git-sendemail
@veggiemonk
veggiemonk / .gitconfig
Last active February 19, 2024 16:49
simple zshrc config file with Oh-My-ZSH
[user]
name = Julien Bisconti
email = ******
[core]
excludesfile = ~/.gitignore
pager = diff-so-fancy | less --tabs=1,5 -R
editor = /usr/bin/vim
[alias]
wow = log --all --graph --decorate --oneline --simplify-by-decoration
@danott
danott / create_staging_branch.sh
Last active February 15, 2024 10:18
Create a fresh staging branch from the latest deployed master.
#!/bin/bash
#
# Assumptions:
# - Clean working tree.
# - Tags are used exclusively to tag deploys
git checkout master
git branch -D staging # Delete staging branch locally.
git push origin :staging # Delete staging branch from GitHub.
git checkout -b staging `git describe --abbrev=0 --tags` # create staging from the latest deployed tag.
@DanHerbert
DanHerbert / fix-homebrew-npm.md
Last active February 12, 2024 17:18
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

OBSOLETE

This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.

I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.