Skip to content

Instantly share code, notes, and snippets.

View TacoDelPaco's full-sized avatar

Joshua 'Taco' Salles TacoDelPaco

View GitHub Profile
@cgsdev0
cgsdev0 / twitch_chat.sh
Created January 26, 2022 09:30
Display live twitch chat directly in your terminal
#!/bin/zsh
# depends on 'websocat' https://github.com/vi/websocat
#
# twitch_chat {channel} - opens a websocket for reading chat
twitch_chat () {
rm -f /tmp/twitch_tunnel;
mkfifo /tmp/twitch_tunnel;
clear;
@rufoa
rufoa / patch.sh
Last active June 28, 2024 21:26
sublime merge 2 build 2068 linux
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
target="${1:-/opt/sublime_merge/sublime_merge}"
check_sha() {
local sha_valid
NVM_NODEJS_ORG_MIRROR=https://unofficial-builds.nodejs.org/download/release nvm install
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<boolean name="is_service_running" value="true" />
<string name="app_mode">WARP</string>
<string name="warp_token">fd88819b-7d1b-21ec-3334-22cccd441fb7</string>
<string name="warp_public_key">7dWdEk/ocN1YuUSDtnnkr1YAFQKkMHikQgyV9RbQvww=</string>
<string name="warp_private_key">M5B//9eKFF8yEE1VLKDr666X7/sgBk/NxXoqQgsJPT1=</string>
<boolean name="onboardingstatus" value="true" />
<string name="warp_registration_id">f2301r2a-303a-153c-d145-76ccb9sb74bg</string>
<string name="terms_acceptance_date">2020-01-19T01:48:45.789+08:00</string>
@shinyquagsire23
shinyquagsire23 / gist:291a16f1b5fa3b555f8a9da7692b72ce
Last active December 27, 2022 02:32
Surface Go ChromeOS - Jan 2020
Based somewhat on http://www.nicholasmelnick.com/2019/02/installing-chromeos-on-surface-go/
EDIT April 11, 2020: Happy to report that a lot of this isn't necessary any more! https://github.com/sebanc/brunch seems to work
perfectly with the Surface Go using the dual boot option and rEFInd, no adjustments needed. Even fixes autorotation, which I hadn't
gotten working.
# Get chromefy stuff
git clone https://github.com/imperador/chromefy.git
cd chromefy
@rossixolit
rossixolit / gist:699d662b036f70f687d033f099b5bb85
Created October 16, 2019 11:45
ffmpeg -copyts and -muxrate combination
I want to transcode individual mpegts (h264/aac) chunks, and two things are very important:
1) A constant, predictable output bitrate
2) Keeping the original pts information.
For this minimal example I'm using this public accessible mpegts chunk and the least amount of arguments needed to reproduce:
https://bitdash-a.akamaihd.net/content/sintel/hls/1500kbit/seq-38.ts
Let's say I want 300k output bitrate:
Original Chunk:
Duration: 00:00:02.00, start: 76.083333, bitrate: 919 kb/s

Connecting to Cloudflare WARP with WireGuard

Cloudflare's WARP VPN uses a slightly modified version of the WireGuard protocol, but it remains backwards compatible with the normal WireGuard client software. This means you can connect to it on platforms which don't yet have an official WARP client, e.g. your computer or EdgeOS-based router.

Step 1

Generate a WireGuard keypair, as usual:

wg genkey | tee private.key | wg pubkey > public.key

@JerryLokjianming
JerryLokjianming / Crack Sublime Text Windows and Linux.md
Last active July 20, 2024 18:39
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/
  3. Open file select sublime_text.exe
  4. Offset 0x8545: Original 84 -> 85
  5. Offset 0x08FF19: Original 75 -> EB
  6. Offset 0x1932C7: Original 75 -> 74 (remove UNREGISTERED in title bar, so no need to use a license)
@ObserverOfTime
ObserverOfTime / BDLinux.md
Last active July 22, 2024 15:05
Install BetterDiscord on Linux

Install BetterDiscord on Linux

This Gist contains simple instructions on how to install, update, and uninstall BetterDiscord on Linux.

For more thorough documentation, take a look at betterdiscordctl's README.

Do NOT submit issues here as I don't check the comments. You should submit them here instead.

@voluntas
voluntas / sysctl.conf
Created October 14, 2017 13:07 — forked from techgaun/sysctl.conf
Sysctl configuration for high performance
### KERNEL TUNING ###
# Increase size of file handles and inode cache
fs.file-max = 2097152
# Do less swapping
vm.swappiness = 10
vm.dirty_ratio = 60
vm.dirty_background_ratio = 2