Skip to content

Instantly share code, notes, and snippets.

View milosjanda's full-sized avatar

Miloš Janda milosjanda

  • Livesport s.r.o.
  • Prague, Czech Republic
  • X @milosjanda
View GitHub Profile
@klatys
klatys / pre-commit-check.sh
Created November 21, 2016 13:05
pre-comit-check (by @mzstic)
#!/bin/bash
# Installation
# ------------
# Use following command
# cp pre-commit.sh .git/hooks/pre-commit
# It is done automatically after composer install / update
PHPCS_BIN=vendor/bin/phpcs
TMP_STAGING=".tmp_staging"
# comma-separated list of file patterns being ignored
@JanTvrdik
JanTvrdik / generate-root-certificate.sh
Last active May 16, 2017 19:08
Generate TLS certificate signed by root certificate
#!/usr/bin/env bash
set -o errexit -o pipefail -o nounset
IFS=$'\n\t'
ROOT="$(dirname $0)/root"
if [[ -f $ROOT.key || -f $ROOT.crt ]]; then
echo "Root certificate already exist"
exit 1
fi
@sgergely
sgergely / gist:3793166
Created September 27, 2012 09:43
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"