Skip to content

Instantly share code, notes, and snippets.

@CoreText
CoreText / tmux.conf
Last active August 30, 2022 22:04 — forked from willywos/tmux.conf
My tmux configurations, it's literally the best tmux eveeeer.
# tmux source-file .tmux.conf
# Or reload the tmux config by `ctrl+b r`
bind r source-file ~/.tmux.conf
# If you don't use ELinks browser in Win terminal comment out the default-terminal
# The default is 'screen'
# set -g default-terminal "screen-256color"
set -g default-terminal "xterm-256color"
@CoreText
CoreText / kuro.vim
Created August 26, 2022 18:25 — forked from morumo/kuro.vim
vim colorscheme
" Vim color file
" Maintainer: morumo
" Last Change: 2014/03/09
set bg=dark
hi clear
if exists("syntax_on")
syntax reset
endif
@CoreText
CoreText / .nanorc
Created August 4, 2022 23:03
nano config
set tabsize 4
set tabstospaces
set linenumbers
set mouse
set atblanks
@CoreText
CoreText / .tmux.conf
Last active August 28, 2022 21:13
tmux config with copy/paste solutions using Vim for the Windows terminals.
# tmux source-file .tmux.conf
# Or reload the tmux config by `ctrl+b r`
bind r source-file ~/.tmux.conf
# If you don't use ELinks browser in Win terminal comment out the default-terminal
# The default is 'screen'
# set -g default-terminal "screen-256color"
set -g default-terminal "xterm-256color"
# Scroll the buffer using Vim shortcuts after `ctrl+b [` combination
@CoreText
CoreText / .vimrc
Last active November 25, 2022 01:16
Vim config, the copy/paste solutions for the Windows terminals. To use vim in sudo mode just copy .vimrc to your `root` by logging in into the root, like `sudo su`, and copy the config by running `cp /home/<you-user-name>/.vimrc ~/.vimrc`, and `su <you-user-name>`, and then just use `sudo vim .`
" HIGHLIGHT
syntax on
set background=dark
:highlight LineNr ctermfg=darkgrey
hi VertSplit guifg=Grey guibg=DarkGrey
highlight VertSplit cterm=none gui=none
" CURSOR
set cursorline
@CoreText
CoreText / 00-New setup.md
Created May 29, 2022 07:05 — forked from cderv/00-New setup.md
New computer setup
# installed by winget
winget install PowerShell-Preview
winget install git
git config --global user.name "Christophe Dervieux"
git config --global user.email christophe.dervieux@gmail.com
winget install rstudio
winget install vscode
winget install -e R
winget install Github.GithubDesktop
@CoreText
CoreText / .bash_aliases
Created April 20, 2022 01:30 — forked from vratiu/.bash_aliases
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@CoreText
CoreText / .bash_profile
Created November 26, 2021 03:35 — forked from ozh/.bash_profile
.bash_profile for Git Bash
PS1='\[\033[32m$(pwd | sed -e 's!/d/home!-!')\033[36m $(__git_ps1 "%s")\033[0m\]
$ '
if [[ $(git rev-parse --git-dir 2> /dev/null) && -z "$GIT_MOTD" ]]; then
echo -e "\e[00;32m- \e[01;33mWelcome $(id -u -n)"
echo -e "\e[00;32m- \e[01;32mGIT BRANCH \e[00;32m-----------------------------------------------------\e[00m"
git branch
echo -e "\e[00;32m- \e[01;32mGIT STATUS \e[00;32m-----------------------------------------------------\e[00m"
git status
echo -e "\e[00;32m------------------------------------------------------------------\e[00m"
@CoreText
CoreText / notepad++_from_bash.md
Created November 26, 2021 03:26 — forked from ozh/notepad++_from_bash.md
Open Notepad++ from BASH

in ~/.bash_profile : alias npp='~/npp'

in ~/npp :

#!/bin/sh

exec d:/utils/Notepad++/notepad++.exe "$@" &
@CoreText
CoreText / gist:eb70cd11d5af86ee9a66a69b0b0e869a
Created November 26, 2021 03:23 — forked from ozh/gist:5444908
Install PHPUnit from PHAR file

Download http://pear.phpunit.de/get/phpunit.phar

Edit ~/.bash_profile:

alias php="d:/online/xampp/php/php.exe"
alias phpunit="php d:/online/xampp/php/phpunit.phar"

In any directory: phpunit test.php