Skip to content

Instantly share code, notes, and snippets.

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

CASSIUS bycassius

🧃
*sip*
  • CASSIUS
  • Melbourne
  • 08:24 (UTC +10:00)
View GitHub Profile
@legowerewolf
legowerewolf / readme.md
Last active April 7, 2024 02:13
Tailscale on Steam Deck

Archiving Websites

Every so often, you may find yourself needing to preserve a website in its current state. Whether this is in advance of a significant website change, general documentation, or the possibility that the site needs to be taken offline, it is a good idea to archive the site so that it is navigable locally and without the need for a server.

Introducing HTTrack HTTrack Website Copier will do just that, download a website to a local directory, build all the directories, get HTML, images, and other files from the server to your computer.

HTTrack has a GUI for Windows that works really well: http://www.httrack.com . You can also use this tool from the command line. See the following steps to archive websites using the HTTrack command line tools.

MacOS Installation: First, you will need to install HTTrack locally. On macOS, https://brew.sh/ is the package manager of choice (as opposed to MacPorts). Homebrew is simpler to set up but does require you

@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

@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
@Belphemur
Belphemur / 10-nextdns-catchall.sh
Created March 11, 2021 14:55
NextDNS catch all UDM
#!/bin/sh
SERVICE_FILE=nextdns-catchall.service
SOURCE_FILE_PATH=/data/${SERVICE_FILE}
SYSTEMD_FILE_PATH=/etc/systemd/system/${SERVICE_FILE}
if [ ! -f $SOURCE_FILE_PATH ];
then
echo "Can't find service file"
exit 1
fi
@bycassius
bycassius / GTWalsheimPro.md
Created September 24, 2020 14:21 — forked from mfd/GTWalsheimPro.css
GT Walsheim Pro

https://cdn.rawgit.com/mfd/7c7a915eb31474cc8c6a65066a4c4dc3/raw/f0f2fb94c21dea904812a53e0eb6cf0bc87f3754/GTWalsheimPro.css

<link rel="https://cdn.rawgit.com/mfd/7c7a915eb31474cc8c6a65066a4c4dc3/raw/f0f2fb94c21dea904812a53e0eb6cf0bc87f3754/GTWalsheimPro.css">

@kshwetabh
kshwetabh / textToSpeech.py
Created March 2, 2020 10:00
This script speaks and converts text-to-speech (mp3) using python's pyttsx3 library. This code has been tested on Windows 10 system and requires pywin32 and pyttsx3 python packages to be installed.
import pyttsx3
text = "When you invest for five years or above, you can expect gains that comfortably beat the inflation rate and are also higher than fixed income options. But be prepared for ups and downs in your investment value along the way. Aggressive"\
" hybrid funds invest 65-80% of your money in equity shares and the rest in bonds and commodities. Their returns are slightly lower than pure equity funds which"
engine = pyttsx3.init();
engine.setProperty('volume', 1)
engine.setProperty('rate', 160)
engine.say(text)
@carlodaniele
carlodaniele / frammenti.php
Last active March 16, 2021 10:34
This is an example plugin showing how to register custom post types and custom taxonomies
<?php
/**
* @package frammenti
* @version 1.0
*
* Plugin Name: Frammenti
* Plugin URI: http://wordpress.org/extend/plugins/#
* Description: This is a development plugin
* Author: Carlo Daniele
* Version: 1.0
@AmatsuZero
AmatsuZero / .gitconfig
Last active June 27, 2023 09:49
My Zsh Config
[alias]
a = add
amend = commit --amend
c = commit
ca = commit --amend
ci = commit -a
co = checkout
d = diff
dc = diff --changed
ds = diff --staged