Skip to content

Instantly share code, notes, and snippets.

View hightemp's full-sized avatar
🎯
Focusing

Anton Panov hightemp

🎯
Focusing
View GitHub Profile
@hightemp
hightemp / ARCH_INSTALL.MD
Created January 31, 2021 10:43 — forked from heppu/ARCH_INSTALL.MD
Installing Arch with GPT, dm-crypt, LUKS, LVM and systemd-boot

Create bootable USB

dd bs=4M if=/path/to/archlinux.iso of=/dev/sdx status=progress oflag=sync

Boot from USB and set prepare system

loadkeys <your-keymap>
@hightemp
hightemp / arch_linux_installation.md
Created January 31, 2021 10:43 — forked from OdinsPlasmaRifle/arch_linux_installation.md
LVM on LUKS Arch installation with systemd-boot
@hightemp
hightemp / add_dir_to_PATH.sh
Created December 1, 2020 08:00
Добавление пути из аргумента в файл ~/.pathrc, который подключается в ~/.bashrc
#!/bin/bash
if [[ "$1" == "" ]]; then
file_name=$(basename $0)
echo "Add dir to PATH global var"
echo " $file_name dir"
exit 1
fi
PATHRC_file_path="$HOME/.pathrc"
export function fnGenerateColor(sText, bDarkMode=false) {
var iL = sText.length;
var iSum = 0;
for (var iI=0; iI<iL; iI++) {
iSum += iI*iI*sText.charCodeAt(iI);
}
var iH = iSum % 365;
var iS = 100;
@hightemp
hightemp / 12021015.md
Created August 8, 2020 12:48 — forked from Chunlin-Li/12021015.md
node / javascript performance : Set vs Object and Map vs Object

Set vs Object

node version : v4.1.2
platform: Intel I7, 16G DDR3, Ubuntu x64

var theSet = new Set();
start = process.hrtime();
/***********************************/
for(let i = 0 ; i < N; i++ ) {
@hightemp
hightemp / promt.sh
Last active December 16, 2020 18:16
promt.sh
ColorReset='\e[0m'
# Foreground Colors
Black='\e[0;30m' # Black
Red='\e[0;31m' # Red
Green='\e[0;32m' # Green
Yellow='\e[0;33m' # Yellow
Blue='\e[0;34m' # Blue
Purple='\e[0;35m' # Purple
Cyan='\e[0;36m' # Cyan
@hightemp
hightemp / tools_install.sh
Last active July 25, 2020 16:09
tools_install.sh
#!/bin/bash
sudo su -
echo "install micro editor"
cd /usr/local/bin
curl https://getmic.ro | bash
cd -1
@hightemp
hightemp / docker_compose_install.sh
Last active July 25, 2020 15:34
docker_install.sh
#!/bin/bash
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
@hightemp
hightemp / vagrant-kvm.md
Created July 21, 2020 18:30 — forked from yuanying/vagrant-kvm.md
How to use vagrant-kvm

Install Vagrant

sudo su
apt-get update && apt-get install -y libvirt-dev ruby-all-dev apparmor-utils
curl -O -L https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb
dpkg -i vagrant_1.6.5_x86_64.deb 
aa-complain /usr/lib/libvirt/virt-aa-helper # workaround
exit

Install vagrant-kvm as user