Skip to content

Instantly share code, notes, and snippets.

# System config
# --------------
# change the default password
passwd
# keep the system up to date
apt-get update -y && apt full-upgrade -y
apt -y install open-vm-tools-desktop fuse
/root/Desktop/restart-vm-tools
@KrYpTeD974
KrYpTeD974 / openssl_commands.md
Created April 26, 2018 10:33 — forked from p3t3r67x0/openssl_commands.md
Some list of openssl commands for check and verify your keys

openssl

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@KrYpTeD974
KrYpTeD974 / .inputrc
Created September 13, 2017 06:20
Improve Linux tab completion
"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
# go right to showing multiple options
set show-all-if-ambiguous on
# TAB by itself cycles through options
"\t": menu-complete
#Git aliases
alias gc="git commit -m "
alias ga="git add ."
alias gp="git push -u origin master"
alias gpl="git pull"
alias gco="git checkout -b "
alias gar="git remote add origin “
alias gm=“git merge “
G* (){
@KrYpTeD974
KrYpTeD974 / .bashrc
Last active December 18, 2019 12:13
.bashrc
#~/.bashrc: executed by bash(1) for non-login shells.
# Note: PS1 and umask are already set in /etc/profile. You should not
# need this unless you want different defaults for root.
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
# umask 022
# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS=' --color=auto'
eval "`dircolors`"
@KrYpTeD974
KrYpTeD974 / .bashrc
Last active December 16, 2015 16:40
Mon .bashrc
#~/.bashrc: executed by bash(1) for non-login shells.
# Note: PS1 and umask are already set in /etc/profile. You should not
# need this unless you want different defaults for root.
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
# umask 022
# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS=' --color=auto'
eval "`dircolors`"
@KrYpTeD974
KrYpTeD974 / .inputrc
Created April 26, 2013 05:35
inputrc pour améliorer le shell
"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
# go right to showing multiple options
set show-all-if-ambiguous on
# TAB by itself cycles through options
"\t": menu-complete
@KrYpTeD974
KrYpTeD974 / openwith_st2.bat
Last active December 16, 2015 16:40
Open With SublimeText2 bat script
@echo off
@reg add "HKEY_CLASSES_ROOT\*\shell\Ouvrir avec Sublime Text 2" /t REG_SZ /v "" /d "Ouvrir avec Sublime Text 2" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Ouvrir avec Sublime Text 2\command" /t REG_SZ /v "" /d "\"D:\KrYpTeD\Programmes\Sublime Text 2.0.1 x64\sublime_text.exe\" \"%%1\"" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Ouvrir avec Sublime Text 2" /t REG_EXPAND_SZ /v "Icon" /d "D:\KrYpTeD\Programmes\Sublime Text 2.0.1 x64\sublime_text.exe,0"
pause
[ { "keys": ["ctrl+n"], "command": "advanced_new_file"},
{ "keys": ["ctrl+shift+n"], "command": "advanced_new_file", "args": {"is_python": true}},
{ "keys": ["ctrl+["], "command": "previous_edit" },
{ "keys": ["ctrl+]"], "command": "next_edit" },
{ "keys": ["ctrl+w"], "command": "undo" },
{ "keys": ["ctrl+shift+w"], "command": "redo" },
{ "keys": ["ctrl+q"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["ctrl+e"], "command": "move_to", "args": {"to": "eol", "extend": false} },
{ "keys": ["ctrl+z"], "command": "close" },
{ "keys": ["alt+d"], "command": "toggle_minimap" },