Skip to content

Instantly share code, notes, and snippets.

View IPlayZed's full-sized avatar
:octocat:
Dₒᵢₙg ₛₒₘₑₜₕᵢₙg ₍ₚᵣₒbₐbₗy₎.

Börcsök Balázs Róbert IPlayZed

:octocat:
Dₒᵢₙg ₛₒₘₑₜₕᵢₙg ₍ₚᵣₒbₐbₗy₎.
View GitHub Profile
@jdoss
jdoss / LUKS_and_TPM2_with_Fedora.md
Last active June 19, 2024 14:28
Decrypt LUKS volumes with a TPM on Fedora Linux

Decrypt LUKS volumes with a TPM on Fedora Linux

This guide allows you to use the TPM on your computer to decrypt your LUKS encrypted volumes. If you are worried about a cold boot attack on your hardware please DO NOT use this guide with your root volume!

Preflight Checks

Verify that you have a TPM in your computer:

# systemd-cryptenroll --tpm2-device=list
PATH DEVICE DRIVER
@orhun
orhun / arch_linux_installation.md
Last active July 3, 2024 21:17
Notes on my Arch Linux installation: UEFI/Secure Boot + systemd-boot, LUKS-encrypted root (XFS), LUKS-encrypted swap (with hibernate & unlocked via TPM)
@IPlayZed
IPlayZed / logarithmicIntervalN.m
Created October 16, 2020 18:06
MATLAB function for creating logarithmically spaced row vector, with given length, between given numbers.
%Written by Balázs Börcsök, as of 12/10/2020.
%Licensed under GNU GPL v2: https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
function generatedArray=logarithmicIntervalN(low,high,N)
lowLog=log10(low);
highLog=log10(high);
step=(highLog-lowLog)/N;
exponentArray=lowLog:step:highLog;
[~,expArraySize]=size(exponentArray);
logarithmicSizedArray=(ones(1,expArraySize).*10).^exponentArray;
Basic
=====
[Shift]+[Mod]+[Enter] - launch terminal.
[Mod]+[b] - show/hide bar.
[Mod]+[p] - dmenu for running programs like the x-www-browser.
[Mod]+[Enter] - push acive window from stack to master, or pulls last used window from stack onto master.
[Mod] + [j / k] - focus on next/previous window in current tag.
@02015678
02015678 / 2013120101.m
Created January 20, 2015 16:34
Matlab program for LU Factorization with partial (row) pivoting
function [L,U,P]=LU_pivot(A)
% LU factorization with partial (row) pivoting
% K. Ming Leung, 02/05/03
[n,n]=size(A);
L=eye(n); P=L; U=A;
for k=1:n
[pivot m]=max(abs(U(k:n,k)));
m=m+k-1;
if m~=k