Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
sudo apt install fscrypt libpam-fscrypt | |
sudo blkid | |
FileSystem=/dev/nvme0n1p4 | |
getconf PAGE_SIZE # 4096 | |
sudo tune2fs -l $FileSystem | grep 'Block size' | |
sudo tune2fs -O encrypt $FileSystem | |
sudo fscrypt setup | |
sudo pam-auth-update |
package main | |
import ( | |
"fmt" | |
"time" | |
linuxproc "github.com/c9s/goprocinfo/linux" | |
) | |
func getCPUInfo() (*linuxproc.CPUInfo, error) { | |
return linuxproc.ReadCPUInfo("/proc/cpuinfo") |
echo "deb http://repo.vivaldi.com/stable/deb/ stable main" | sudo tee /etc/apt/sources.list.d/vivaldi.list > /dev/null | |
wget -O - http://repo.vivaldi.com/stable/linux_signing_key.pub | sudo apt-key add - | |
sudo apt update && sudo apt install vivaldi-stable |
This is way more complicated than it should be. The following conditions need to be met :
In this particular case, I'm interested in bringing in the 'default' template of jsdoc as a sub-directory in my project so I could potentially make changes to the markup it genereates while also being able to update from upstream if there are changes. Ideally their template should be a separate repo added to jsdoc via a submodule -- this way I could fork it and things would be much easier.... but, it is what it is.
After much struggling with git, subtree and git-subtree, I ended up finding this http://archive.h2ik.co/2011/03/having-fun-with-git-subtree/ -- it basically sets up separate branches from tracking remote, the particular sub-directory, and uses git subtree contrib module to pull it all togther. Following are
#!/usr/bin/env bash | |
# HubCrypt | |
# ======== | |
# | |
# Decrypt a file encrypted using hubencrypt (ok, it's just openssl + rsautl + | |
# your SSH keys). It needs the private key that matches your last public key | |
# listed at github.com/<user>.keys | |
# |