Skip to content

Instantly share code, notes, and snippets.

View califool's full-sized avatar
💭
champagne wishes and caviar dreams

califool califool

💭
champagne wishes and caviar dreams
View GitHub Profile
@partrita
partrita / .wezterm.lua
Last active January 21, 2025 21:39
My wezterm config file for cross platform.
local wezterm = require("wezterm")
local config = wezterm.config_builder()
--local gpus = wezterm.gui.enumerate_gpus[0]
-- 렌더링 설정
--config.front_end = "Software"
--config.webgpu_preferred_adapter = gpus[0]
config.front_end = "WebGpu"
config.webgpu_power_preference = "HighPerformance"
@yunruse
yunruse / yt.py
Last active June 14, 2024 04:20
very basic YouTube-to-RSS extractor
#!/usr/bin/env python3
# pip install scrapetube
# for basic operation, use `python -m http.server --cgi`
# and access /cgi-bin/yt.py?c={CHANNEL_ID}
# Note that due to scrapetube limits, dates are fetched as eg "3 days ago"
# so the further in the past a video is, the less precise the date will be.
@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active April 16, 2025 18:06
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
#EXTM3U x-tvg-url="https://github.com/MPAndrew/EpgGratis/raw/master/guide.xml.gz"
#EXTM3U x-tvg-url="https://github.com/LITUATUI/M3UPT/raw/main/epg/epg-vodafone.xml.gz"
#EXTM3U x-tvg-url="https://www.tdtchannels.com/epg/TV.xml"
#EXTM3U x-tvg-url="https://raw.githubusercontent.com/vk496/IPTVspain/master/guide.xml"
#EXTM3U x-tvg-url="https://raw.githubusercontent.com/davidmuma/EPG_dobleM/master/guia.xml"
#EXTM3U x-tvg-url="https://github.com/MPAndrew/EpgGratis/blob/master/guide.xml.gz?raw=true"
#EXTM3U x-tvg-url="https://gist.githubusercontent.com/thais0909/2ebcad6ce9e6847df7754b343e13fb75/raw/9374d685fe74ebfc6ea6cefd659cc102f7a94784/guia.txt"
#EXTM3U x-tvg-url="https://gist.githubusercontent.com/micdouglas/486f35eefa2274fa8ec0ce2e3362ec8d/raw/4094cdba37830eacab50c531399aaec0f19ba29b/EPG%2520Tv%2520a%2520Cabo.xml"
@xkr47
xkr47 / libera.irssi
Last active January 25, 2025 18:48
How to add the libera.chat network to irssi
Replace all <....> parts with your specific details
/network add -nick <nick> libera
/server add -network libera -auto -ssl irc.libera.chat 6697
/connect libera
/query NickServ
register <password> <email>
<copypaste line from email>
/network add -autosendcmd "" -sasl_username <user> -sasl_password <pass> -sasl_mechanism PLAIN libera
/channel add -auto <channel> libera
@grok
grok / README.md
Last active December 3, 2024 02:19
Chrome DevTools / console.log Expand All / Collapse All

Hacking Chrome DevTools

You ever have a bunch of console.log instances you wish you could just expand or collapse at once? Well this will do that.

You of course need to open your DevTools Console, on a mac that shortcut is ⌘ (Command) + ⌥ (Shift) + J

Now hit ⌘ (Command) + ⌥ (Shift) + J again to open DevTools for your DevTools.

Then run the code below. If you run it once, it will collapse everything it can. If you run it again, it will expand.

@bitingsock
bitingsock / ytdl-preload.lua
Last active March 9, 2025 02:30
Precache the next entry in your playlist if it is a network source by downloading it to a temp file ahead of time. Change Line 20 to temp directory. It will delete the directory on exit.
----------------------
-- #example ytdl_preload.conf
-- # make sure lines do not have trailing whitespace
-- # ytdl_opt has no sanity check and should be formatted exactly how it would appear in yt-dlp CLI, they are split into a key/value pair on whitespace
-- # at least on Windows, do not escape '\' in temp, just us a single one for each divider
-- #temp=R:\ytdltest
-- #ytdl_opt1=-r 50k
-- #ytdl_opt2=-N 5
-- #ytdl_opt#=etc
@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active April 16, 2025 15:50
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.

@ahaywood
ahaywood / hyper.js
Created June 14, 2020 21:06
Hyper Configuration
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: "stable",
@luukvbaal
luukvbaal / cacheremove.hook
Last active March 8, 2025 19:37
yay paccache hooks
[Trigger]
Operation = Remove
Type = Package
Target = *
[Action]
Description = Clearing cache...
When = PostTransaction
Exec = /home/<user>/.local/bin/tools/removehook