Skip to content

Instantly share code, notes, and snippets.

View fabiwlf's full-sized avatar
🐕
Trading

Fabian Wolf fabiwlf

🐕
Trading
  • Wiesbaden, Germany
View GitHub Profile
@hegerdes
hegerdes / cloud-init-default.yml
Last active March 5, 2026 14:09
Hetzner Packer
#cloud-config
ssh_pwauth: false
disable_root_opts: no-port-forwarding,no-agent-forwarding,no-X11-forwarding
# Install base packages
package_update: true
package_upgrade: true
packages:
- gnupg
@Fhrozen
Fhrozen / convert_tts2onnx.py
Last active September 9, 2024 07:35
Routine to generate an ONNX model for ESPnet 2 - Text2Speech model
#!/usr/bin/env python3
"""Convert TTS to ONNX
Using ESPnet.
Test command:
python convert_tts2onnx.py --tts-tag espnet/kan-bayashi_ljspeech_vits
"""
import argparse
import logging
@GetVladimir
GetVladimir / Force-RGB-Color-on-M1-Mac.md
Last active March 7, 2026 06:28
Force RGB Color on M1 Mac

Force RGB Color on M1 Mac

How to Force RGB Color Output instead of YPbPr on your M1 Apple Silicon Mac for an External Monitor.

This step-by-step video tutorial will guide you through the procedure of forcing RGB color output on your M1 Mac.

Force RGB Color on M1 Mac

Here is the direct link to the video tutorial: https://www.youtube.com/watch?v=Z1EqH3fd0V4

The video also has Closed Captions (Subtitles) that you can enable, to make it easier to follow if needed.

@akihikodaki
akihikodaki / README.en.md
Last active March 11, 2026 03:20
Linux Desktop on Apple Silicon in Practice

Linux Desktop on Apple Silicon in Practice

NOTE: Time flies, and it's been almost five years(!) since I wrote this. Beaware the text below is now outdated (e.g., now Asahi Linux has graphics acceleration even better than this). The commands listed are up-to-date.

I bought M1 MacBook Air. It is the fastest computer I have, and I have been a GNOME/GNU/Linux user for long time. It is obvious conclusion that I need practical Linux desktop environment on Apple Silicon.

@whoizit
whoizit / ss+v2ray+cf-wss+ubuntu.sh
Last active October 25, 2025 04:32
shadowsocks v2ray-plugin cloudflare-wss ubuntu.sh
#!/bin/sh -e
# For Ubuntu 18.04
# How to launch:
# $ curl https://gist.githubusercontent.com/whoizit/5d29de6161270c7eb20c079add6019d2/raw/ss+v2ray+cf-wss+ubuntu.sh
# $ sh ss+v2ray+cf-wss+ubuntu.sh
[ ${EUID:-$(id -u)} -eq 0 ] && {
echo "This script must NOT be run as root"
exit
}
@johanlef
johanlef / README.md
Last active September 6, 2024 10:03
Use CSS custom properties (--var) with bootstrap 4 (SCSS)

The file _functions-override.scss contains the custom functions to handle color conversions within sass and bootstrap.

Bootstrap does not like its sass variables set to css custom properties, e.g. var(--primary). If you use the code snippets below, you can do so, under some conditions.

In the most basic case, you should provide your color variables using the hsl format.

If you insert this using javascript, you can use the script apply-colors.jsx to let js handle the conversion from hex or rgb to hsl.

Reference the main.scss file to import the files in the correct order.

@DickyT
DickyT / icloud.js
Created December 6, 2019 12:30
Trigger Find My iPhone Alarm with Puppeteer
const puppeteer = require('puppeteer');
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
const playSoundOnDevice = async (username, password, deviceName) => {
const browser = await puppeteer.launch({
args: [
'--disable-features=site-per-process',
@Jabarabo
Jabarabo / githubpull.md
Last active March 14, 2026 12:43
Gist of a stolen gist
@virtual
virtual / footer-alert.xsl
Created February 12, 2019 00:38
ASPX Last modified time of file for emergency alert .xsl
@erogol
erogol / tts_example.ipynb
Last active July 19, 2025 20:07
TTS_example.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.