Skip to content

Instantly share code, notes, and snippets.

@syslab-li
syslab-li / supervisord.service
Created October 16, 2019 10:13 — forked from mozillazg/supervisord.service
install and configure supervisord on centos 7.
[Unit]
Description=supervisord - Supervisor process control system for UNIX
Documentation=http://supervisord.org
After=network.target
[Service]
Type=forking
ExecStart=/bin/supervisord -c /etc/supervisord/supervisord.conf
ExecReload=/bin/supervisorctl reload
ExecStop=/bin/supervisorctl shutdown
@syslab-li
syslab-li / Envoy.blade.php
Created August 13, 2019 10:39 — forked from gvsrepins/Envoy.blade.php
A Laravel envoy script for deployment
@servers(['production' => 'productionserver', 'local'=> 'vagrant@127.0.0.1 -p 2222'])
{{-- Configuration section --}}
@setup
/*
|--------------------------------------------------------------------------
| Git Config
|--------------------------------------------------------------------------
|
@syslab-li
syslab-li / gist:b9c1ac9c5019ccda1ee3978e46ead2fb
Created October 11, 2018 05:14
mysqldumpをgzipでバックアップとリストア

mysqldumpをgzipでバックアップとリストア

  • ディスク容量と転送時間をちょっとでも短縮させたい時にgz形式が便利。

dumpでバックアップ取るとき

mysqldump -u user -p password dbname | gzip > dbname.dump.gz 
@syslab-li
syslab-li / about git.md
Last active September 11, 2018 03:45 — forked from naosim/renameGitBranch.md
ローカルとリモートのブランチ名を変更する

1 #ローカルとリモートのブランチ名を変更する

以下、ブランチ名を hoge から foo に変更する例

  • ローカルのブランチ名変更
git branch -m hoge foo
  • リモートのブランチを消す