Skip to content

Instantly share code, notes, and snippets.


Julien AnnoyingTechnology

View GitHub Profile
AnnoyingTechnology / CanoniPF770.ppd
Created Sep 28, 2020
CanoniPF770.ppd (since Canon doesn't fucking provides it and it's hidden inside a pkg which is itself inside dmg. Or inside a .exe)... f* you canon.
View CanoniPF770.ppd
*PPD-Adobe: "4.3"
*%Copyright CANON INC. 2019
*%PPD file for GARO's CUPS.
*FormatVersion: "4.3"
*FileVersion: "5.26"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "CNi770.ppd"
*Manufacturer: "CANON"
*Product: "(iPF770)"
AnnoyingTechnology /
Last active Apr 15, 2019
Linux server basic tools installation
apt install -y apt install rsync nload htop iotop lynx curl
lm-sensors screen ncdu jq lbzip2 pigz unzip s-tui ethtool build-essential
smartmontool hddtemp lmsensor
# for stretch
# python-pip
# pip install s-tui
View Apple's SuperDrive tweak for use with

I was ready to throw it away, I opened it up and didn't find anything wrong with it. After a quick Google Search, turns out Apple fucked up their users (again) and locked this drive to only one laptop : the MacBook Air (that I happen to own a few years back).

Bellow is the tweak (found online) to make it usable on Linux

# Linux SCSI generic driver 
apt install sg3-utils

# tell the external DVD player/burner to turn on
AnnoyingTechnology /
Created Dec 7, 2018
Secure Connection Failed with Firefox and Lighttpd SSL/TLS

So apparently, Firefox and lighttpd 1.4.45 (current version on Debian 9/stable) dont get along very well.

You will have connexion issue, and a message "Secure Connection Failed".

It would seem that Firefox and Lighttpd/Openssl are negociating a TLS 1.3 connexion (a new RFC), which fails to establish. A workaround/solution is to disable TLS 1.3 in lighttpd ssl.openssl.ssl-conf-cmd = ("Protocol" => "-ALL, TLSv1.2" but that option requires lighttpd 1.4.48.

You can get it and compile it from source (currently you get 1.4.53). Follow the guide It goes smoothly on debian.

AnnoyingTechnology /
Last active Nov 12, 2018
Keep VirtualBox's vboxwebsrv alive on systemd

As vboxwebsrv keeps dying, this is a quick and dirty fix.



AnnoyingTechnology /
Last active Dec 12, 2019
Multi-threaded CLI cheatsheet for gzip, bz2, xz (lzma)

.gz (GNU zip)

Medium compression ratio, fast speed.

apt install pigz 
tar -I pigz -cvf archive.tar.gz folder-or-document
AnnoyingTechnology / gigabyte_Z370N-i7-8700K-golden-build.txt
Last active Feb 22, 2020
Hackintosh : Gigabyte Z370N + i7-8700K + SSD NVMe + SSD S-ATA
View gigabyte_Z370N-i7-8700K-golden-build.txt
Golden build, i7-8700K iGPU HD630 and dedicated PCIe Wifi+BT.
I put together this build for a friend that has huge iTunes and iPhoto libraries and could not get a Mac with a large enough SSD (Only Mac"Pro" (lol) and iMac"pro" (lol) allow for larger than 1 or 2Tb SSD). Fusion drive was not good enough.
He's very happy with this built, using all of his Apple peripherals as usual (apple watch, ipad, iphone, keyboard, mouse...).
Plus, his computer is faster than a 3500€ iMac. (8e gen Intel core i7 vs 7 gen Inte core i7) + decent cooling solution. + he can add one more NVMe M.2 drive and three more SATA SSDs.
Components : Gigabyte Z370N rev 1.0, i7-8700K, Samsung 970 EVO 1Tb (PCIe), Samsung 860 EVO 2Tb (SATA), PCIe Wifi+BT (BCM946302CS)
0) Prepare the USB drive using the normal procedure
AnnoyingTechnology /
Created Aug 29, 2018 — forked from agentsim/
Create bootable ISO from HighSierra Installer
# Generate a BaseSystem.dmg with 10.13 Install Packages
hdiutil attach /Applications/Install\ macOS\ High\ -noverify -mountpoint /Volumes/highsierra
hdiutil create -o /tmp/HighSierraBase.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierraBase.cdr.dmg -noverify -mountpoint /Volumes/install_build
asr restore -source /Applications/Install\ macOS\ 10.13\ -target /Volumes/install_build -noprompt -noverify -erase
cp -R /Volumes/highsierra/Packages /Volumes/OS\ X\ Base\ System/System/Installation
hdiutil detach /Volumes/OS\ X\ Base\ System/
hdiutil detach /Volumes/highsierra/
mv /tmp/HighSierraBase.cdr.dmg /tmp/BaseSystem.dmg
AnnoyingTechnology /
Last active Nov 13, 2020
Lenovo Legion Y530 Linux issues and solutions for wifi and touchpad mostly (Debian & Ubuntu)

Intel i7-8750H nVidia GTX 1050 Ti

Summary of my findings (Please comment if you can get further than me) :

edit: 06/2019 guys in the comments have found workarounds and new solutions !

Most importantly : Lenovo refuses to provide any kind of support for their product on Linux, even though the computer is sold without an OS

Ubuntu 18.04

View What a good MacBook Pro would be in 2018.txt
A) stop glueing the battery in place, and use screws instead.
B) offer an equal number of USB-A and USB-C ports (at least two of each)
C) offer an optional 1440p display on 15", and 1080p on 13", for those who don't need 4K (and suiting lower specs GPU options).
D) make smaller bezels, with tiny edges (like Dell's XPS lineup or Matebook Pro X, for example).
E) place the RAM in standard SODIM slots (not soldered)
F) place the SSD in standard M.2 slot (not soldered)
G) offer a secondary M.2 slot for optional PCIe SSD/SATA SSD (for upgradability).
H) ditch ATI/AMD graphics card and use Nvidia instead : GTX 1050, GTX 1060, GTX 1070 (better performance, lower power draw)
I) offer the option of not having a dedicated GPU (Some **actual** professionnal only need raw CPU power, and don't care about GPU).
J) get back a keyboard that feels good to type on, and make it changeable with screws, not fucking rivets. People are comming back to huge mechanical keyboards, aiming for slimmer and slimmer keys clearly isn't wha
You can’t perform that action at this time.