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
@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
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.
/*
Task Description
interval_map<K,V> is a data structure that efficiently associates intervals of keys of type K with values of type V. Your task is to implement the assign member function of this data structure, which is outlined below.
interval_map<K, V> is implemented on top of std::map. In case you are not entirely sure which functions std::map provides, what they do and which guarantees they provide, we provide an excerpt of the C++ standard here:
Each key-value-pair (k,v) in the std::map means that the value v is associated with the interval from k (including) to the next key (excluding) in the std::map.
Example: the std::map (0,'A'), (3,'B'), (5,'A') represents the mapping
@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;
@orhun
orhun / arch_linux_installation.md
Last active October 4, 2024 18:34
Notes on my Arch Linux installation: UEFI/Secure Boot + systemd-boot, LUKS-encrypted root (XFS), LUKS-encrypted swap (with hibernate & unlocked via TPM)
@jdoss
jdoss / LUKS_and_TPM2_with_Fedora.md
Last active October 19, 2024 16:23
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