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
# sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
# git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
# git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
# git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi |
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
---@type ChadrcConfig | |
local M = {} | |
M.ui = { theme = 'onedark' } | |
M.plugins = 'custom.plugins' | |
M.mappings = require "custom.mappings" | |
vim.wo.relativenumber = true | |
return M |
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
# Keep the color scheme | |
set-option -sa terminal-overrides ",xterm*:Tc" | |
# Avoid weird characters on new session | |
set -sg escape-time 10 | |
# Activate the mouse controls | |
set -g mouse on | |
# Changing the prefix key binding |
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
# Fix MobaXterm Home/End key with ZSH | |
bindkey '^[[H' beginning-of-line | |
bindkey '^[[F' end-of-line |
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
ssh -D [local port] [options] jumpserver [-p jumpserver port] | |
ex : | |
ssh -D 1337 -qCN jump.server -p 22 | |
-q : quiet mode, no local output | |
-C : compress data to save bandwith | |
-N : do Not execute remote commands, just port forwarding | |
credits : https://ma.ttias.be/socks-proxy-linux-ssh-bypass-content-filters/ |
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
ssh -L [local port]:[dest ip]:[dest port] [jump server] | |
ex : | |
ssh -L 8006:dedibox:8006 vpn.com |
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
// ==UserScript== | |
// @name PrimeVideoRatings | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Add imdb ratings to video descriptions | |
// @author cristalcorp | |
// @match https://www.primevideo.com/* | |
// @grant none | |
// ==/UserScript== |
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 - networking | |
/etc/network/interfaces | |
auto vmbr3 | |
iface vmbr3 inet static | |
address 10.20.30.1 | |
netmask 255.255.255.0 | |
bridge_ports none | |
bridge_stp off |
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
set nocompatible " required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') |