https://keyoxide.org/hkp/40a48b7cc676f1e1d0dec0425bd3a2ebbaca9c47
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
vim.g.mapleader = " " | |
vim.keymap.set('n', '<leader>.', ":set list!<CR>", { desc = "Toggle whitespaces"}) | |
vim.keymap.set('n', '<leader>,', ":set hls!<CR>", { desc = "Toggle highlight search"}) | |
vim.keymap.set('n', '<leader>j', ":bprevious<CR>", { desc = "Buffer previous"}) | |
vim.keymap.set('n', '<leader>k', ":bnext<CR>", { desc = "Buffer next"}) | |
vim.keymap.set('n', '<leader>l', ":buffers<CR>", { desc = "Buffer next"}) | |
vim.keymap.set('n', '<leader>x', ":bp<bar>sp<bar>bn<bar>bd<CR>", { desc = "Buffer delete"}) --delete but do not exit, strange that vim closes the windows by default... | |
vim.keymap.set('n', '<leader>t', ":tabnew<CR>", { desc = "Tab new"}) | |
vim.cmd.colorscheme "koehler" | |
local opt = vim.opt |
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
let @v="\<ESC>/\"\<Enter>nvi\"" |
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
docker-machine ls | grep Error | grep MissingParameter | awk '{print $1}' | xargs docker-machine rm -f |
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
# 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! |
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
export VISUAL=vim | |
export EDITOR="$VISUAL" | |
export HISTCONTROL=ignoredups:erasedups | |
export HISTSIZE=10000 | |
export PROMPT_COMMAND='history -a; history -r;echo -ne "\033]0;${PWD##*/}\007"' | |
green=$(tput setaf 2) | |
reset=$(tput sgr0) | |
PS1="\w \[$green\]$\[$reset\] " | |
stty -ixon |
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 ( | |
"bufio" | |
"os" | |
"io" | |
"log" | |
"fmt" | |
"flag" | |
"os/signal" |
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 ( | |
"log" | |
"github.com/howeyc/fsnotify" | |
"path/filepath" | |
"os" | |
"flag" | |
"os/exec" |
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name *.a.tech; | |
root /home/user/web; | |
location / { | |
} | |
} |
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
#!/bin/bash | |
GOOS=linux GOARCH=arm GOARM=7 go build . && \ | |
scp ${PWD##*/} pi@$1:~/bin/ |
NewerOlder