Skip to content

Instantly share code, notes, and snippets.

@devnoname120
devnoname120 / .zsh_plugins.txt
Last active November 26, 2024 08:15
Antidote — .zsh_plugins.txt
Aloxaf/fzf-tab
zsh-users/zsh-completions
zsh-users/zsh-autosuggestions
# Cache `autoload -Uz compinit` for faster speedup (IO installed it for that) + many zsh customizations
sorin-ionescu/prezto path:modules/completion
# Select text when shift + arrow keys is pressed. Works to delete a part of the current command, contrary to iTerm's selection
jirutka/zsh-shift-select
@devnoname120
devnoname120 / Calendar.getInstance.json
Last active April 28, 2024 22:09
XPrivacyLua hooks — Fake.DateTime
{
"script": [
{
"name": "Privacy.Calendar.getInstance",
"code": "function after(hook, param)\n local cal = param:getResult()\n cal:set(2024, 4, 27)\n param:setResult(cal)\n return true\nend\n"
}
],
"definition": [
{
"builtin": false,
@devnoname120
devnoname120 / Locale.getDefault.json
Last active March 14, 2024 21:50
XPrivacyLua Pro — Override system locale/language — java.util.Location.getDefault()
{
"script": [
{
"name": "Privacy.Locale.getDefault",
"code": "function after(hook, param)\n local myLocale = luajava.newInstance(\"java.util.Locale\", \"fr\", \"FR\")\n\tparam:setResult(myLocale)\n\treturn true\nend"
}
],
"definition": [
{
"builtin": false,
@devnoname120
devnoname120 / temp-mail-fake-loading-bypass.user.js
Last active February 23, 2024 12:08
Userscript — temp-mail.org fake loading bypass
// ==UserScript==
// @name temp-mail.org fake loading bypass
// @namespace devnoname120
// @version 2024-02-23
// @description Get rid of the fake 7s loading time that temp-mail.org puts on mailboxes
// @author devnoname120
// @match *://temp-mail.org/*
// @icon https://temp-mail.org/images/favicon.ico
// @run-at document-end
// @grant none
@devnoname120
devnoname120 / README.md
Last active January 9, 2024 14:30
Karabiner-Elements — Microsoft Teams — Don't quit when pressing cmd-w on main window

Note: you need to add /Library/Application Support/org.pqrs/Karabiner-Elements/bin/karabiner_console_user_server in System SettingsPrivacy & SecurityAccessibility+

@devnoname120
devnoname120 / powerpoint-force-reapply-note-master.vba
Last active February 13, 2025 20:29
PowerPoint — Force to reapply the Notes Master (i.e. the template with the design/layout/style of all notes) to the notes on each slide — It's useful if you change the Notes Master design but Powerpoint only applies it to new slide notes you create so you're stuck with having your old notes in the old style
Sub RestoreNotesPages()
Dim oSld As Slide
Dim oShp As Shape
Dim lIdx As Long
On Error Resume Next
With ActivePresentation
For Each oSld In .Slides
With oSld.NotesPage.Shapes
@devnoname120
devnoname120 / ruby_remove_accents.rb
Last active June 29, 2024 05:12
[Ruby] Remove accents from UTF-8 string
class String
# See https://www.unicode.org/versions/Unicode15.0.0/UnicodeStandard-15.0.pdf#page=355
COMBINING_DIACRITICS = [*0x1DC0..0x1DFF, *0x0300..0x036F, *0xFE20..0xFE2F].pack('U*')
def removeaccents
self
.unicode_normalize(:nfd) # Decompose characters
.tr(COMBINING_DIACRITICS, '')
.unicode_normalize(:nfc) # Recompose characters
end

💸 Pay bills

👉 Summary of bill types (p. 7)

  • QR-rechnungs → Need a Swiss bank account to pay those
  • Orange slipsDon't exist anymore.
    • ✝ Replaced by QR-rechnungs (Feb. 2023)
  • Red slipsDon't exist anymore.
    • ✝ Replaced by QR-rechnungs (Feb. 2023)
@devnoname120
devnoname120 / DV, HDV, MiniDV video capture and processing.md
Last active November 26, 2024 08:20
Mini DV cassette video capture

My overview

On-cassette formats:

  • DV:
    • video: lossy compression
      • 720x480i @ 60 Hz (PAL)
      • 720x576i @ 50 Hz (NTSC)
      • aspect ratio: 4:3 or 16:3 (different pixel aspect ratios!)
    • audio: uncompressed
  • 16-bit linear PCM stereo @ 48 kHz (768 kbit/s per channel, 1.5 Mbit/s stereo) (almost always used)