Skip to content

Instantly share code, notes, and snippets.

@yu1ec
yu1ec / gist:ece7260c776208072afd665b86efc370
Last active January 8, 2020 11:35
Pipelines Cleaner
// ==UserScript==
// @name Pipelines Cleaner
// @namespace https://your-domain/
// @version 0.1
// @description Gitlab CI/CD Pipelines Cleaner
// @author ecareyu
// @match *://your-domain/*/*/pipelines
// @require https://code.jquery.com/jquery-2.2.4.min.js
// @run-at document-end
// @grant none
@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/*"
@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 / cloudSettings
Created February 6, 2017 02:56
Visual Studio Code Sync Settings Gist
{"lastUpload":"2017-02-06T02:56:45.161Z","extensionVersion":"v2.4.3"}

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@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