Skip to content

Instantly share code, notes, and snippets.

@yu1ec
yu1ec / nginx
Created January 20, 2016 04:38 — forked from pzorn/nginx
php-fpm and nginx init.d script
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemin
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /usr/local/nginx/conf/nginx.conf
# pidfile: /usr/local/nginx/logs/nginx.pid

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@yu1ec
yu1ec / post-commit
Created January 29, 2018 14:08 — forked from ilaborie/post-commit
Git post-commit hook for: auto-push to jenkins + auto backup
#!/bin/sh
# Backup
git ls-remote backup --quiet
if test $? = 0;
then
git push backup --force --all --quiet
echo "...Backuped"
else
echo "No Backup repository => Skip backup"
@yu1ec
yu1ec / git-delete-local-tag.sh
Created September 12, 2018 02:13 — forked from canhnt/git-delete-local-tag.sh
Delete local tags that do not exist in remote
git fetch --prune origin "+refs/tags/*:refs/tags/*"