Skip to content

Instantly share code, notes, and snippets.

@0xLGG
0xLGG / vim.cheat.md
Last active May 5, 2022
vim cheat sheet
View vim.cheat.md

enter line number on each line

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

call recusrive macro

qq
0yf jP0^A@q
q
@q
@0xLGG
0xLGG / fedinst.sh
Last active Jul 26, 2022
Fedora install
View fedinst.sh
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 / i3config
Last active Mar 13, 2022
i3config
View 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 / poposinstall.sh
Last active Feb 13, 2022
popinstaller
View poposinstall.sh
#!/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 / manjinstall.sh
Last active Mar 21, 2022
install on manjaro
View manjinstall.sh
#!/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 / debinstall.sh
Created Oct 3, 2021
install under debian / popos
View debinstall.sh
#!/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 / BasicUtilities.js
Created Sep 28, 2021 — forked from kbahr/BasicUtilities.js
HEX pull interest to date
View BasicUtilities.js
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 / artinstall.sh
Last active Oct 3, 2021
initial try of artix installer
View artinstall.sh
#!/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