1 #ローカルとリモートのブランチ名を変更する
以下、ブランチ名を hoge から foo に変更する例
- ローカルのブランチ名変更
git branch -m hoge foo
- リモートのブランチを消す
1.再帰的に.svnを削除する方法 | |
find . -type d -name .svn -print0 | xargs -0 rm -rf | |
2.grep to search the current directory for any and all files containing the string | |
grep -r --include=*.{cc,h} "hello" . | |
3.centos list openning port | |
netstat -tln | |
4. –excludeの指定の仕方だが、--exclude ‘xxxxx’ でも、--exclude =”xxxxx”でもどちらでもいける。 | |
5. git diff でファイル名のみ表示する | |
git diff 比較ブランチ名 --name-only | |
6. mysql dump&restore |
1 #ローカルとリモートのブランチ名を変更する
以下、ブランチ名を hoge から foo に変更する例
git branch -m hoge foo
以下のコマンドにより,攻撃元のIPアドレスをログから調べることができます。 | |
grep -i Failed /var/log/secure | |
https://www.server-memo.net/server-setting/ssh/ssh-denyhosts.html | |
Nginx で Basic 認証 | |
yum install httpd-tools | |
$ sudo htpasswd -c /etc/nginx/.htpasswd username | |
New password: password | |
Re-type new password: password | |
Adding password for user username |
@servers(['production' => 'productionserver', 'local'=> 'vagrant@127.0.0.1 -p 2222']) | |
{{-- Configuration section --}} | |
@setup | |
/* | |
|-------------------------------------------------------------------------- | |
| Git Config | |
|-------------------------------------------------------------------------- | |
| |
[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 |