Shortlink: https://tinyurl.com/lvm-luks
- Custom partitioning, full system encryption, LVM on LUKS, and booting with GRUB2.
- Common instruction for all distributions.
Target Installation Disk: /dev/sda
(yours may be different)
# How to run | |
# chmod +x git_backup_repo.sh | |
# ./git_backup_repo.sh https://github.com/bsantraigi/MyRepo.git | |
REPO=$1 | |
echo "Backup: $REPO" | |
DIR=$(grep -o -e "[^/]*.git$" <<< $REPO) | |
# DIR=$? | |
echo "Repo Cloned To: $DIR" |
#!/bin/bash | |
# Syncs the content of the current folder with onedrive. **Upload only** | |
rclone copy "./" "onedrive:/Projects Backups/" -P |
#include <iostream> | |
using namespace std; | |
int main(){ | |
// IO: | |
cout << "Enter N and C:" << endl; | |
int N, C; | |
cin >> N; | |
cin >> C; |
#include <iostream> | |
#include <cstring> | |
#include <cmath> | |
#include <cstdlib> | |
#include <vector> | |
#include <ctime> | |
using namespace std; | |
const int inf = 1e6; |
def top_k_top_p_filtering(logits, top_k=0, top_p=0.0, filter_value=-float('Inf')): | |
""" Filter a distribution of logits using top-k and/or nucleus (top-p) filtering | |
Args: | |
logits: logits distribution shape (vocabulary size) | |
top_k >0: keep only top k tokens with highest probability (top-k filtering). | |
top_p >0.0: keep the top tokens with cumulative probability >= top_p (nucleus filtering). | |
Nucleus filtering is described in Holtzman et al. (http://arxiv.org/abs/1904.09751) | |
Basic outline taken from https://gist.github.com/thomwolf/1a5a29f6962089e871b94cbd09daf317 | |
""" |
#!/usr/bin/python3 | |
# A simple timer with following features | |
# 1. It will beep when the timer is done | |
# 2. Press S to start stopwatch and accumulate time | |
# 3. Press S again to stop stopwatch and print accumulated time | |
# 4. Press T to start timer and lose from accumulated time | |
# 5. Press T again to stop timer and print accumulated time | |
# | |
# Author: Bishal Santra (http://bsantraigi.github.io) MIT License |
Shortlink: https://tinyurl.com/lvm-luks
Target Installation Disk: /dev/sda
(yours may be different)
After chroot-ing into the installation through a live iso. (See my other gist)