Skip to content

Instantly share code, notes, and snippets.

View ymatsiuk's full-sized avatar
🇺🇦

Yurii Matsiuk ymatsiuk

🇺🇦
  • 21:17 (UTC +02:00)
View GitHub Profile
@ymatsiuk
ymatsiuk / README.md
Last active July 6, 2023 11:46
Clone all your organization's repositories in parallel

Pre-requisites:

  • parallel, jq, curl
  • GITHUB_TOKEN your personal github API token
  • ORG the name of your organization
  • REPO_TOTAL which is the total number of repositories your org owns (check curl below)

Get REPO_TOTAL

curl -L \
@stengoes
stengoes / tpm2.0-fulldisk-decryption-at-boot.md
Last active January 21, 2020 13:28
Setup TPM2.0 for full disk decryption at boot

First step: install tpm2-tss, tpm2-tools and all its depedencies.

# Install dependencies
sudo apt-get update && sudo apt-get -y install autoconf autoconf-archive automake libtool pkg-config gcc libssl-dev libcurl4-gnutls-dev doxygen

# Install tpm2-tss
git clone https://github.com/tpm2-software/tpm2-tss.git
cd tpm2-tss
git checkout e05d28ec  # I used this particular commit
./bootstrap
@klingtnet
klingtnet / how-to-upgrade-nvmw-ssd-firmware-on-linux.md
Last active June 13, 2024 04:29
How to upgrade [Lenovo] NVMe SSD firmware on Linux

The instructions were tested on a Lenovo X1 Carbon 5th Gen (X1C5) on Arch Linux but should be applicable to other Lenovo models and Linux distributions.

BACKUP YOUR DATA! I created a bootable Ubuntu Image like this:

$ sudo sh -c 'curl --location --silent --fail "http://releases.ubuntu.com/18.04/ubuntu-18.04.1-desktop-amd64.iso" | pv > /dev/<your-usb-drive>'
# note that pv is only there to show progress, it is perfectly fine to redirect curl to the usb drive directly.

then I booted from this drive by pressing F12 on reboot and dumped my NVMe disk to an external hard drive like this:

@chreniuc
chreniuc / Install i3 on arch.sh
Last active April 17, 2024 18:45
Steps i followed to install arch + i3
timedatectl set-ntp true
timedatectl set-timezone Europe/Bucharest
fdisk /dev/sda
########################################
n 1G pentru /boot /dev/sda1
a - Flag it as bootable
n - 4G pentru swap /dev/sda3
n - 70G pentru / /dev/sda2
@zaxebo1
zaxebo1 / README.md
Created October 28, 2017 15:28
How to enable SecureBoot with own keys in KVM and on a laptop (T450s)

UEFI SecureBoot on ArchLinux

For KVM and Laptop

Rationale

I want full control what boots the computer to avoid the so called evil maid attack. That requires setting SecureBoot with only my own keys.

Intro