SPC q q
- quitSPC w /
- split window verticallySPC w -
- split window horizontallySPC 1
- switch to window 1SPC 2
- switch to window 2SPC w c
- delete current windowSPC TAB
- switch to previous bufferSPC b b
- switch buffers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net" | |
) | |
func main() { |
I hereby claim:
- I am ibihim on github.
- I am ibihim (https://keybase.io/ibihim) on keybase.
- I have a public key ASBfpRHC6oZtYxb7ehj5I1gMe5VqOmaKK3xQZ8yhuyE1wAo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert partition to LUKS format | |
sudo cryptsetup --verbose --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 4000 --use-random luksFormat /dev/sdd | |
# Gather information about newly encrypted partition | |
sudo cryptsetup luksDump /dev/sdd | |
# Map partition to device name | |
sudo cryptsetup luksOpen /dev/sdd secrets | |
# Gather information about new device |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installation on Lenovo X1 5th Generation | |
# Installation guide: https://wiki.archlinux.org/index.php/Installation_Guide | |
# Encryption: https://wiki.archlinux.org/index.php/Dm-crypt/Device_encryption#Cryptsetup_usage | |
# LVM: https://wiki.archlinux.org/index.php/LVM | |
# Set large font, if necessary | |
setfont latarcyrheb-sun32 | |
# Connect to Internet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getAuthData = (users) => | |
users.reduce((authObj, user) => { | |
const { roles, organizations, clients } = user; | |
authObj.userRoles.push(roles.toStirng()); | |
authObj.organizations.push(organizations.toString()) ; | |
authObj.userClient.push(clients.toSring()) ; | |
}, { userRoles: [], organizaionts: [], userClients: [] }); |