This file contains 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
#!env bash | |
sh -c "$(curl -fsLS chezmoi.io/get)" | |
sudo mv ./bin/chezmoi /usr/local/bin/ | |
sudo snap install chezmoi --classic | |
sudo apt install git | |
mkdir -p ~/.local/share/ | |
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm | |
rsync -avzP --exclude .git [email protected]:~/.local/share/chezmoi ~/.local/share/ | |
chezmoi apply | |
chezmoi cd |
This file contains 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
{ | |
"basics": { | |
"name": "Souvik Haldar", | |
"email": "[email protected]", | |
"phone": "+91-8653149116", | |
"photo": { | |
"url": "https://cdn.rxresu.me/uploads/24594/201329/1666257221446.jpg", | |
"filters": { | |
"size": 128, | |
"shape": "square", |
This file contains 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
" install vim-plug | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif | |
" Plug installed plugins | |
call plug#begin('~/.vim/plugged') | |
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } |
This file contains 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
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
set -g @plugin "arcticicestudio/nord-tmux" | |
set -g @plugin 'swaroopch/tmux-pomodoro' | |
# force Vi mode | |
# really you should export VISUAL or EDITOR environment variable, see manual |
This file contains 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
# Output warning on match but continue | |
warn: | |
- '(?i)user(name)?\W*[:=,]\W*.+$' | |
- '\/Users\/\w+\/' | |
# Fail immediately upon match | |
fail: | |
- '(?i)db_(user(name)?|pass(word)?|name)\W*[:=,]\W*.+$' | |
- '(?i)pass(word)?\W*[:=,]\W*.+$' | |
- '\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b' |
This file contains 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" | |
type human interface { | |
walk() | |
talk() | |
} | |
type person struct { | |
firstName string |
This file contains 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
1. Install vim-plug `sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ | |
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'` | |
2. clone `souvikhaldar/dotfiles` repo and run `copyToSystem.sh`. | |
2. Open `vimrc` file and do `:PlugInstall` (ignore the `autocmd` error the first time you open vimrc) |
This file contains 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 | |
func ConvertMapToKVSlice(m map[string]int) (kv []KV) { | |
for k, v := range m { | |
kv = append(kv, KV{k, v}) | |
} | |
return | |
} | |
type KV struct { |
This file contains 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
# Importing the module pyqrcode | |
import pyqrcode | |
# data for the QR code | |
s = input("Enter the data to be put in the QR code: ") | |
# Generate QR code by the help of create function | |
url = pyqrcode.create(s) | |
# name of the geneated file | |
name = input("Enter name for the generated image file: ") | |
filename = name + ".svg" | |
url.svg(filename, scale = 8) |
This file contains 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
scrape_configs: | |
- job_name: 'node' | |
static_configs: | |
- targets: ['<TARGET_IP>:9100'] |
NewerOlder