start new:
tmux
start new with session name:
tmux new -s myname
To remove a submodule you need to:
# GIT heart FZF | |
# ------------- | |
is_in_git_repo() { | |
git rev-parse HEAD > /dev/null 2>&1 | |
} | |
fzf-down() { | |
fzf --height 50% --min-height 20 --border --bind ctrl-/:toggle-preview "$@" | |
} |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Mathieu 'p01' Henri - http://www.p01.org/releases/ | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
# This is a blocklist to block samsung smart tv's sending meta data at home. | |
# Please help to collect domains! | |
# It could be that the TV does not receive any more updates or other services no longer work. Please report such an incident. | |
# https://gist.github.com/Perflyst/315f86393712a0c2107ee8eb58c6acee | |
0.0.0.0 device-metrics-us.amazon.com | |
0.0.0.0 samsungacr.com | |
0.0.0.0 samsungcloudsolution.com | |
0.0.0.0 samsungcloudsolution.net | |
0.0.0.0 pavv.co.kr |
--type-add=css=.sass,.less,.scss | |
--type-add=ruby=.rake,.rsel,.builder,.thor | |
--type-add=html=.haml,.html.erb,.html.haml | |
--type-add=js=.js.erb,.coffee | |
--type-set=cucumber=.feature | |
--type-set=c=.c,.cpp,.ino,.pde,.h | |
--ignore-dir=vendor | |
--ignore-dir=log | |
--ignore-dir=tmp | |
--ignore-dir=doc |
Install the packages that you'll need. Drupal/coder includes phpcs. If you're not wanting to use a specific hook, then you don't need to install the associated packages.
composer global require drupal/coder phpmd/phpmd sebastian/phpcpd
Set the path in your shell startup script (ex: .zshrc or .bashrc).
# Basic default configs. | |
phpcs --config-set installed_paths ~/.composer/vendor/drupal/coder/coder_sniffer | |
phpcs --config-set default_standard Drupal | |
phpcs --config-set colors 1 | |
# Show all errors. | |
phpcs --config-set error-severity 1 | |
# Shows warnings, but doesn't return a non-zero return. | |
phpcs --config-set ignore_warnings_on_exit 1 |
import logging | |
import math | |
import mimetypes | |
from multiprocessing import Pool | |
import os | |
from boto.s3.connection import S3Connection | |
from filechunkio import FileChunkIO | |
git log --shortstat --since="1 year ago" --until="now" \ | |
| grep "files changed\|Author\|Merge:" \ | |
| awk '{ \ | |
if ($1 == "Author:") {\ | |
currentUser = $2;\ | |
}\ | |
if ($2 == "files") {\ | |
files[currentUser]+=$1;\ | |
inserted[currentUser]+=$4;\ | |
deleted[currentUser]+=$6;\ |