Skip to content

Instantly share code, notes, and snippets.

View oscardoudou's full-sized avatar
🐢

Niagara. O oscardoudou

🐢
View GitHub Profile
@oscardoudou
oscardoudou / ffmpeg.md
Created May 22, 2023 02:13 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@oscardoudou
oscardoudou / mac_utf8_insanity.md
Created May 17, 2023 02:35 — forked from JamesChevalier/mac_utf8_insanity.md
Unicode on Mac is insane. Mac OS X uses NFD while everything else uses NFC. This fixes that.

convmv manpage

Install convmv if you don't have it

sudo apt-get install convmv

Convert all files in a directory from NFD to NFC:

convmv -r -f utf8 -t utf8 --nfc --notest .

https://github.com/app-sre/qontract-reconcile.git 30af65af14a2dce962df923446afff24dd8f123e
https://github.com/app-sre/container-images.git c260deaf135fc0efaab365ea234a5b86b3ead404
https://github.com/app-sre/container-images.git c260deaf135fc0efaab365ea234a5b86b3ead404
https://github.com/app-sre/container-images.git c260deaf135fc0efaab365ea234a5b86b3ead404
https://github.com/app-sre/container-images.git c260deaf135fc0efaab365ea234a5b86b3ead404
https://github.com/appsre/container-images.git c260deaf135fc0efaab365ea234a5b86b3ead404
https://github.com/app-sre/container-images.git z260deaf135fc0efaab365ea234a5b86b3ead404
@oscardoudou
oscardoudou / README.md
Last active April 5, 2022 22:46
Fifa world cup 2022 ticket application progess checker (phase 2)

Fifa world cup 2022 ticket application progess checker

Turns out the script is not needed. As the progress is not increasing step by step, it might notify you click enter say at 20%. In my case, it stucks at 13% and then shows Enter page directly after god know some time. For those who don't want to check progress page regularly.

Check the progress from chrome log and notify the progess in mac notification center.

Not sure why mine is stuck at 13% for quite some time. Let me if this is normal.

image

@oscardoudou
oscardoudou / GM4_compatible.user.js
Created March 12, 2022 22:47
adopt GM.getValue GM.setValue and compatible with GM_getValue GM_setValue
// ==UserScript==
// @name adopt GM.getValue GM.setValue and compatible with GM_getValue GM_setValue
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author ychz
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @include *
// @grant GM.getValue
// @grant GM.setValue
@oscardoudou
oscardoudou / notify_vaccine_availability_mac.sh
Last active April 1, 2021 18:46
mac notify vaccine availability
#!/bin/bash
# mac vaccine availability notification with jq as only dependency
# you could also send notification to teams by providing your teams webhook url
# Thanks @https://twitter.com/nickblah for https://www.vaccinespotter.org/
# usage replace json url for your home state
# 1st param is your zipcode
# 2nd param is the distance you are willing to travel
# data wrangling should be much more elegant, but below is the first thing come to my mind
loc=${1:-27517}