A list of commonly used Git commands
--
| Command | Description |
| function binb2rstr(input) { | |
| var i, l = input.length * 32, | |
| output = ''; | |
| for (i = 0; i < l; i += 8) { | |
| output += String.fromCharCode((input[i >> 5] >>> (24 - i % 32)) & 0xFF); | |
| } | |
| return output; | |
| } | |
| function rstr2binb(input) { |
| # see https://github.com/cmaessen/docker-php-sendmail for more information | |
| FROM php:7.2.8-fpm | |
| RUN apt-get update && apt-get install -q -y ssmtp mailutils && rm -rf /var/lib/apt/lists/* | |
| RUN docker-php-ext-install mysqli sysvsem | |
| RUN pecl install xdebug-2.5.5 \ | |
| && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ |
| function initRandomArray(n) { | |
| const arr = []; | |
| for (let i = 0; i < n; i++) { | |
| const number = Math.floor(Math.random() * (100 - 1) + 1); | |
| arr.push(number); | |
| } | |
| return arr; | |
| } |
| function TailRecursionGCD(m, n) { | |
| let r; | |
| if (m < n) return TailRecursionGCD(n, m); | |
| console.log('Stack', m, n); | |
| r = m % n; | |
| if (r === 0) { | |
| console.log(`R ---- m ---- ${m}, n ----- ${n}`); |
| {"lastUpload":"2020-08-29T00:15:29.344Z","extensionVersion":"v3.4.3"} |
| # C-b is not acceptable -- Vim uses it | |
| set -g prefix C-a | |
| bind C-a send-prefix | |
| unbind C-b | |
| # Quick reload | |
| bind r source-file ~/.tmux.conf | |
| # True colors mode | |
| # Add truecolor support |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH="/Users/P800180/.oh-my-zsh" | |
| # Set name of the theme to load --- if set to "random", it will | |
| # load a random theme each time oh-my-zsh is loaded, in which case, | |
| # to know which specific one was loaded, run: echo $RANDOM_THEME | |
| # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
| source $HOME/.config/nvim/vim-plug/plugins.vim | |
| " Leader | |
| let mapleader = " " | |
| source $HOME/.config/nvim/theme.vim | |
| source $HOME/.config/nvim/nerdtree_fzf.vim | |
| source $HOME/.config/nvim/coc.vim | |
| " Copy to clipboard |
| " NERD tree configuration | |
| inoremap jk <ESC> | |
| noremap <C-d> :NERDTreeToggle<CR> | |
| nnoremap F :NERDTreeFind<CR> | |
| nnoremap <S-h> :tabprevious<CR> | |
| nnoremap <S-l> :tabnext<CR> | |
| nnoremap <S-t> :tabnew<CR> | |
| " press s key for opening to the right, i for opening to the bottom, enter for opening it in the current split | |
| let g:NERDTreeWinSize=35 |