Skip to content

Instantly share code, notes, and snippets.

@dhinakg
dhinakg / tutorial.md
Last active December 9, 2023 01:50
iOS/iPadOS 14.3 OTA
@fedir
fedir / openssl-imap-testing.md
Last active February 22, 2024 17:06
Manual testing IMAP via OpenSSL

Manual testing IMAP via OpenSSL

Shell commands

telnet example.com 143
openssl s_client -crlf -connect example.com:993
openssl s_client -connect example.com -tls1_2
nmap --script ssl-enum-ciphers -p 443 example.com

IMAP commands, when working via openssl manually

@phackwer
phackwer / gist:da1439517be54a4257e9db6f2b3243c8
Last active February 25, 2022 15:28
downgrade firmware macbook air
https://support.apple.com/en-ie/HT201860
https://apple.stackexchange.com/questions/103720/how-to-downgrade-efi-firmware-back-to-version-1-6
I finally managed to successfully downgrade the EFI firmware to version 1.6. Unfortunately that didn't make my hard drive work. However I'm going to reproduce my steps here so that the whole world can know what it takes:
Download the EFI firmware update package from Apple. Here is the link I used for firmware version 1.6 for my late-2008 MacbookPro5,1: http://support.apple.com/kb/DL746
WARNING! If you use the wrong firmware for you computer, bad things will almost certainly happen. This isn't my experience but it would probably brick your computer, meaning it will change from being a computer that can compute things to being a brick that just sits there. You have been warned!
The EFI firmware update 1.6 comes as a .pkg file. Since it won't extract for you unless your computer needs the update, you will have to extract it yourself. The best way I found
@sergey-dryabzhinsky
sergey-dryabzhinsky / sysctl-proxmox-tune.conf
Last active July 21, 2024 05:43
Most popular speedup sysctl options for Proxmox. Put in /etc/sysctl.d/
###
# Proxmox or other server kernel params cheap tune and secure.
# Try it if you have heavy load on server - network or memory / disk.
# No harm assumed but keep your eyes open.
#
# @updated: 2020-02-06 - more params used, adjust some params values, more comments on params
#
### NETWORK ###
@Brainiarc7
Brainiarc7 / ffmppeg-advanced-playbook-nvenc-and-libav-and-vaapi.md
Last active May 5, 2023 01:51
FFMpeg's playbook: Advanced encoding options with hardware-accelerated acceleration for both NVIDIA NVENC's and Intel's VAAPI-based hardware encoders in both ffmpeg and libav.

FFmpeg and libav's playbook: Advanced encoding options with hardware-based acceleration, NVIDIA's NVENC and Intel's VAAPI-based encoder.

Hello guys,

Continuing from this guide to building ffmpeg and libav with NVENC and VAAPI enabled, this snippet will cover advanced options that you can use with ffmpeg and libav on both NVENC and VAAPI hardware-based encoders.

For ffmpeg:

@thaJeztah
thaJeztah / docker-examples.md
Last active January 14, 2024 02:00
Some docker examples

Commit, clone a container

To 'clone' a container, you'll have to make an image of that container first, you can do so by "committing" the container. Docker will (by default) pause all processes running in the container during commit to preserve data-consistency.

For example;

docker commit --message="Snapshot of my container" my_container my_container_snapshot:yymmdd
@ChengLong
ChengLong / add_swap.sh
Created October 26, 2014 08:12
Add 4GB swap and tweak swappiness and vfs cache pressure
# create a 4G swap file at /swapfile
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
# Make the Swap File Permanent
sudo echo "/swapfile none swap sw 0 0" >> /etc/fstab
# set swappiness to 10
@EmmanuelKasper
EmmanuelKasper / EFI boot on Lenovo Thinkcenter M92Z
Last active February 14, 2023 13:02
EFI boot on Lenovo Thinkcenter M92Z
# disable secure boot in the bios, in menu security
# downlad and unzip refind-bin-0.7.8.zip
# install refind, assuming your ESP partition is /dev/sda1 and mounted in /boot/efi
cd refind-bin-0.7.8
./install.sh
# type y and go ahead
# at that time your boot entry should look like that
@gionn
gionn / lxc_mount_bind.md
Created November 21, 2013 16:49
How to enable bind mount inside lxc container

How to enable bind mount inside lxc container

When mount is returning:

STDERR: mount: block device /srv/database-data/postgres is write-protected, mounting read-only
mount: cannot mount block device /srv/database-data/postgres read-only

and dmesg shows: