- @5704x3
- さとうさんと呼んでいただければOKです。
- インフラエンジニア そろそろ Information Security なんとかになるかも…
# original by sonots | |
# http://blog.livedoor.jp/sonots/archives/38589335.html | |
# usage: include the following in .bashrc | |
net_tools_deprecated_message () { | |
echo -n 'net-tools コマンドはもう非推奨ですよ?耄碌なんじゃないですか? ' | |
} | |
arp () { | |
net_tools_deprecated_message |
# zypper in redis | |
# systemctl enable redis@default | |
# vim /etc/systemd/system/redis.target.wants/[email protected] | |
19- WantedBy=multi-user.target redis.target | |
19+ WantedBy=graphical.target multi-user.target redis.target | |
# systemctl daemon-reload | |
# systemctl start redis@default | |
# netstat -tln # <- check that redis is runnning. | |
Active Internet connections (only servers) | |
Proto Recv-Q Send-Q Local Address Foreign Address State |
Black=0,0,0 | |
Red=255,89,97 | |
Green=0,255,89 | |
Yellow=253,255,81 | |
Blue=111,84,255 | |
Magenta=255,63,255 | |
Cyan=0,255,255 | |
White=255,255,255 | |
BoldBlack=0,0,0 | |
BoldRed=255,89,97 |
<?xml version="1.0"?> | |
<packages> | |
<package id="googlechrome" /> | |
<package id="srwareiron" /> | |
<package id="vscode" /> | |
<package id="jre8" /> | |
<package id="Firefox" /> | |
<package id="dropbox" /> | |
<package id="7zip" /> | |
<package id="winrar" /> |
#!/bin/sh | |
BRANCHNAME=`git branch | grep '*' | grep "[A-Z]\+-[0-9]\+" | cut -d' ' -f2` | |
if [ $(cat $1 | grep -e "^${BRANCHNAME}">/dev/null;echo $?) -eq 0 ] ; then exit 0; | |
elif [ $(echo $2 | grep -e "^message">/dev/null; echo $?) -eq 0 -o $2=="" ]; then | |
mv $1 $1.tmp | |
echo ${BRANCHNAME}> $1 | |
cat $1.tmp >> $1 | |
fi |
grep "Host " ~/.ssh/config | while read f; do ssh -nv $f ;done < <(awk '{print $2}') | |
# sshは-nオプションを渡さないと標準出力がリモートホストのものに変わってしまう | |
# もともとは鍵があっているかどうか確認するためのスクリプトだった |
#!/bin/bash | |
REPOS=("accounts" "search" "core" "lightbox" "tool") | |
REPOS_PATH="/home/git/repositories/dev/" | |
REF="${REPOS_PATH}refference.git/hooks/post-update" | |
for REPO in ${REPOS[@]} | |
do | |
echo $REPO | |
cp ${REF} ${REPOS_PATH}${REPO}.git/hooks/ |
BoldAsFont=no | |
Font=Inconsolata | |
FontHeight=12 | |
Locale=ja_JP | |
Charset=UTF-8 | |
RightClickAction=paste | |
Black=0,0,0 | |
Red=255,100,0 | |
Green=183,234,17 |