Skip to content

Instantly share code, notes, and snippets.

View CristaLCorp's full-sized avatar

***CristaL CristaLCorp

View GitHub Profile
@CristaLCorp
CristaLCorp / .zshrc
Last active October 2, 2023 17:14
ZSH conf
# 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
---@type ChadrcConfig
local M = {}
M.ui = { theme = 'onedark' }
M.plugins = 'custom.plugins'
M.mappings = require "custom.mappings"
vim.wo.relativenumber = true
return M
@CristaLCorp
CristaLCorp / tmux.conf
Last active February 28, 2024 14:51
~/.config/tmux/tmux.conf
# 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
# Fix MobaXterm Home/End key with ZSH
bindkey '^[[H' beginning-of-line
bindkey '^[[F' end-of-line
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/
ssh -L [local port]:[dest ip]:[dest port] [jump server]
ex :
ssh -L 8006:dedibox:8006 vpn.com
// ==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==
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
@CristaLCorp
CristaLCorp / .vimrc
Created August 15, 2019 17:19
vimrc sample
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')