Skip to content

Instantly share code, notes, and snippets.

View Jolg42's full-sized avatar
👋
Hello! Nice to see you here!

Joël Galeran Jolg42

👋
Hello! Nice to see you here!
View GitHub Profile
@KevinNitroG
KevinNitroG / cleanup-old-catppuccin.js
Last active March 8, 2026 06:03
Delete all stylus styles
// Helper to pause execution
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
function getNextOldCatppuccinStyle() {
// Grab ALL entries on the page
const entries = document.querySelectorAll(".entry");
for (const entry of entries) {
const nameLink = entry.querySelector(".style-name-link");
const styleInfo = entry.querySelector(".style-info");
@SanariSan
SanariSan / Shadowsocks-client.sh
Last active March 4, 2026 11:00
Shadowsocks+V2Ray | client+server (autodeploy) setup (bash)
############
# HOW TO CONNECT FROM LINUX?
# HERE IS THE SCRIPT TO SETUP YOUR PC
############
#
sudo apt install -y shadowsocks-libev wget
sudo wget -O- "https://github.com/shadowsocks/v2ray-plugin/releases/download/v1.3.1/v2ray-plugin-linux-amd64-v1.3.1.tar.gz" | tar -zxv
@dhh
dhh / Gemfile
Created June 24, 2020 22:23
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
@jakub-g
jakub-g / safari-release-notes-history+stable-technical-preview-mapping.md
Last active December 11, 2025 11:38
Mapping Safari releases to Safari TP versions
@dvf
dvf / change-codec.md
Last active March 4, 2026 11:57
Enable High Quality mode on your headphones (Updated for macOS Catalina)

If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.

Find out what codec you're using

  1. Play a song on your headphones
  2. Option (⌥) click the Bluetooth button at the top of your screen Inspect the Bluetooth Coded
  3. If you're using AAC or aptX, you can stop here—those are the highest quality codecs.

Change your codec to AAC or aptX

@stungeye
stungeye / 01_flickr_to_google_with_exiftool.md
Last active November 28, 2024 14:32
Export Flickr Photos To Google Photos Using Exiftool CLI

Backing Up All Photos from Flickr to Google Photos

  • Request an archive of your photos and metadata (json) from the "Your Flickr Data" section of your Flickr user account page.

  • Extract all provided zip files to a single folder with the JSON files unzip to a json subfolder.

  • Install exiftool, a command-line application for reading, writing and editing meta information in a wide variety of files..

  • Sort your Flickr photos into yearly folders by EXIF timestamp and set file-system timestamps from the command line:

@anthrotype
anthrotype / ttdiff.sh
Last active July 18, 2018 10:03
Compare fonts with fonttools ttx
# compare fonts with ttx
ttdiff () {
if [ "$#" -lt 2 ]
then
echo "Usage: ttdiff FONT1.ttf FONT2.ttf [tables ...]"
return 1
fi
first="$1"
if [ ! -f "$first" ]; then
echo "File $first not found"
@DeeDeeG
DeeDeeG / Color-Font-Support_Ubuntu-Bionic_Browsers.md
Last active January 10, 2018 13:59
Shows browser support for the various formats of color fonts. (Most of these formats are of popular interest for emojis only at the moment. All could be used for other kinds of fonts, though.)

Chrome:

Version: 62.0.3202.94 (Official Build) (64-bit) User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

chrome_screenshot


Firefox:

Version: 57.0

@zehfernandes
zehfernandes / pliim-turnOff.scpt
Last active September 16, 2024 06:39
One click and be ready to go up on stage and shine! - https://zehfernandes.github.io/pliim/
# Turn on Notifications
do shell script "defaults -currentHost write com.apple.notificationcenterui doNotDisturb -bool FALSE; defaults -currentHost delete com.apple.notificationcenterui doNotDisturbDate; osascript -e 'quit application \"NotificationCenter\" ' && killall usernoted" -- this set 'Do not disturb' to false in the pref
# Show Desktop
do shell script "defaults write com.apple.finder CreateDesktop -bool true; killall Finder"
# Show all windows
tell application "System Events"
set visible of (every process) to true
end tell