Skip to content

Instantly share code, notes, and snippets.

@Pickysaurus
Pickysaurus / index.js
Created June 20, 2023 14:33
Genshin Impact Vortex Extension source
const path = require('path');
const { fs, util, log } = require('vortex-api');
const winapi = require('winapi-bindings');
const GAME_ID = 'genshinimpact';
const EPIC_ID = '41869934302e4b8cafac2d3c0e7c293d';
const tools = [
{
id: 'gimi',
@ole
ole / swift-has-feature.sh
Last active June 21, 2025 10:37
swift-list-features: List Swift compiler upcoming and experimental feature flags. · swift-has-feature: Check if a given compiler knows a specific feature flag, and whether it's an upcoming or experimental flag.
#!/bin/zsh
# Test if the Swift compiler knows about a particular language feature.
#
# Usage:
#
# swift-has-feature [--swift SWIFT_PATH] [--language-version LANGUAGE_VERSION] FEATURE
#
# The feature should be an upcoming or experimental language feature,
# such as `"StrictConcurrency"` or `"ExistentialAny"`.
@harubaru
harubaru / wd1-3-release.md
Last active June 21, 2025 10:36
Official Release Notes for Waifu Diffusion 1.3
[
{
"version": "1.2",
"version_title": "白亜と黒龍",
"date": {
"start": "2020-12-23",
"end": "2021-02-03"
},
"image_name": "genshin_impact_bg_2020-12-23.png"
},
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active June 21, 2025 10:33
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for non-video, non-activity quests! For stream/play quests use the desktop app!

Note

When doing stream quests, you need at least 1 other account in the vc!

How to use this script:

  1. Accept a quest under Discover -> Quests
@denji
denji / nginx-tuning.md
Last active June 21, 2025 10:30
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@sovajri7
sovajri7 / Plex_Hetzner_Wireguard.md
Created November 4, 2023 18:26
Using Plex on Hetzner with Wireguard VPN (Docker).

Using Plex on Hetzner with Wireguard VPN (Docker). First, thanks to ShipkaChalk (https://gist.github.com/ShipkaChalk/629fdc42dad781776d2007fc502188f3) and his original tutorial that helped me a lot to get the client part. With this tutorial, you can route all Plex traffic via Wireguard out of another VPS (2$ IONOS Ubuntu VPS), this can be used for any container but here to bypass the Hetzner block by Plex.

  1. Get yourself a Linux VPS (ex : Ubuntu 22.04)

  2. Make all updates :

sudo apt update

@choco-bot
choco-bot / Install.txt
Created June 21, 2025 10:27
fastresolver.portable v1.26 - Passed - Package Tests Results
2025-06-21 09:57:10,028 2392 [DEBUG] - XmlConfiguration is now operational
2025-06-21 09:57:22,559 2392 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-06-21 09:57:22,640 2392 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-06-21 09:57:22,723 2392 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-06-21 09:57:22,876 2392 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-06-21 09:57:23,130 2392 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-06-21 09:57:23,443 2392 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-06-21 09:57:24,002 2392 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-06-21 09:57:24,096 2392 [DEBUG] - Adding new typ
@Jiab77
Jiab77 / setup-nut-and-netdata-on-ubuntu.md
Last active June 21, 2025 10:26
In this document, I will explain how to setup nut (Network UPS Tools) on Ubuntu 18.04 and 20.04.

Setup nut and netdata on Ubuntu

In this document, I will explain how to setup nut (Network UPS Tools) on Ubuntu 18.04 and 20.04.

It is basically the next chapter of my previous gist, Upgrade nut on Ubuntu 18.04.

I'll only document USB connected UPS and not the other supported connection modes.

Install required dependencies

@antonkratz
antonkratz / redact.md
Last active June 21, 2025 10:25
readact, flatten, PDF, Ubuntu

There is a sensitive document. Credit card statements. Reimbursement.

I want to redact (hide) parts of the document.

  1. Create a pitch black highlighter pen in Okular. Highlight the relevant text in black.
  2. The text is still there and can easily be seen, for example by highlighting (in the sense of Ctrl-A) the entire document.
  3. To flatten = actually remove the text beneath the black highlights:

pdf2ps in.pdf - | ps2pdf - out.pdf