Skip to content

Instantly share code, notes, and snippets.

@elston
elston / hubert_ecg_classification.ipynb
Last active May 19, 2025 13:10
HuBERT-ECG demo with ptb-xl
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
cryptsetup -y luksFormat --type luks2 /dev/sda2
cryptsetup open /dev/sda2 cryptlvm
HOOKS=(base udev autodetect keyboard keymap modconf block encrypt lvm2 filesystems fsck)
@elston
elston / Efficient Encrypted UEFI-Booting Arch Installation
Created June 18, 2020 13:11 — forked from HardenedArray/Efficient Encrypted UEFI-Booting Arch Installation
An effcient method to install Arch Linux with encrypted root and swap filesystems and boot from UEFI. Multi-OS, and VirtualBox, UEFI-booting are also supported.
# OBJECTIVE: Install Arch Linux with encrypted root and swap filesystems and boot from UEFI.
# Note this encrypted installation method, while perfectly correct and highly secure, CANNOT support encrypted /boot and
# also CANNOT be subsequently converted to support an encrypted /boot!!! A CLEAN INSTALL will be required!
# Therefore, if you want to have an encrypted /boot or will want an encrypted /boot system at some point in the future,
# please ONLY follow my encrypted /boot installation guide, which lives here:
@elston
elston / arch-linux-install
Created June 18, 2020 13:08 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
@elston
elston / index.js
Last active April 19, 2018 10:09
extremely easy generators router for sync and async code samples :)
/*
**
*/
const genRouter = function(gen){
this.gen = gen
this.value = null
}
genRouter.prototype.run = function(){
this.next()
}
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import requests
import sys
# ..
from bs4 import BeautifulSoup
# ...
from flask import Flask, request
from werkzeug.routing import BaseConverter
#!/bin/bash
src="./$1/src/"
fix="./$1/fix/"
a=`ls $src|sort -V`
i=0
for fullfile in $a; do
filename=$(basename "$fullfile")
extension="${filename##*.}"
# ...