Skip to content

Instantly share code, notes, and snippets.

@0xLGG
0xLGG / artinstall.sh
Last active October 3, 2021 11:01
initial try of artix installer
#!/bin/sh
sudo pacman -Syu xorg-xrandr vim zsh go tmux neovim git fakeroot base-devel fzf rofi noto-fonts yarn docker openvpn
cd
git clone https://github.com/tarjoilija/zgen.git "${HOME}/.zgen"
git clone https://github.com/0xlgg/dotfiles.git
git clone https://github.com/gpakosz/.tmux.git
ln -sf dotfiles/shell/tmux/.tmux.conf.local
ln -sf dotfiles/shell/tmux/.tmux.conf
ln -sf dotfiles/shell/.p10k.zsh
ln -sf dotfiles/shell/zsh/artix/.zshrc
@0xLGG
0xLGG / BasicUtilities.js
Created September 28, 2021 17:15 — forked from kbahr/BasicUtilities.js
HEX pull interest to date
const Web3 = require('web3');
const compiledContractABI = require('./HEX.abi.json');
const hexAddr = "0x2b591e99afE9f32eAA6214f7B7629768c40Eeb39";
const findStakeAndIndex = async (addr, stakeId) => {
let stakes = await hex.stakeList(addr);
for(let i = 0; i < stakes.length; i++){
if(stakes[i].stakeId === stakeId){
@0xLGG
0xLGG / debinstall.sh
Created October 3, 2021 20:35
install under debian / popos
#!/bin/bash
sudo apt update
sudo apt upgrade
sudo apt install vim font-manager vim zsh golang-go tmux git fakeroot fzf yarnpkg docker alacritty libarchive-tools libarchive-tools autojump telegram-desktop -y
# dotfiles and symlinks
cd
git clone https://github.com/tarjoilija/zgen.git "${HOME}/.zgen"
git clone https://github.com/0xlgg/dotfiles.git
git clone https://github.com/gpakosz/.tmux.git
@0xLGG
0xLGG / manjinstall.sh
Last active March 21, 2022 22:44
install on manjaro
#!/bin/sh
sudo pacman -Syu nvm alacritty xorg-xrandr vim zsh go tmux neovim git fakeroot base-devel fzf noto-fonts yarn docker openvpn fd python-pip \
cargo \
tig \
tldr \
i3-wm
echo 'prepare dirs'
mkdir ~/repos
mkdir ~/src
@0xLGG
0xLGG / poposinstall.sh
Last active February 13, 2022 23:43
popinstaller
#!/bin/bash
sudo add-apt-repository multiverse
sudo add-apt-repository ppa:lazygit-team/release
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt upgrade
sudo apt install timeshift gufw font-manager vim zsh golang-go tmux git fakeroot fzf alacritty libarchive-tools autojump telegram-desktop python3 python3-pip onedrive -y \
gimp \
inkscape \
@0xLGG
0xLGG / i3config
Last active March 13, 2022 21:46
i3config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
@0xLGG
0xLGG / fedinst.sh
Last active October 23, 2022 20:52
Fedora install
sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/x86_64/
sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
sudo dnf upgrade --refresh
sudo dnf install dnf-plugin-system-upgrade
# sudo dnf system-upgrade download --releasever=35 # only relevant when upgrading
# prepare dirs
mkdir ~/repos
mkdir ~/repos/gist -p
mkdir ~/src
@0xLGG
0xLGG / vim.cheat.md
Last active May 5, 2022 20:55
vim cheat sheet

enter line number on each line

:%s/^/\=line('.') . '. '

call recusrive macro

qq
0yf jP0^A@q
q
@q