This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew cask install google-chrome | |
brew cask install thunderbird | |
brew cask install alfred | |
brew cask install scroll-reverser | |
brew cask install karabiner-elements |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo pacman -S xorg-server xorg-xinit xterm i3-wm i3status dmenu | |
sudo pacman -S fcitx fcitx-mozc fcitx-im fcitx-configtool | |
sudo pacman -S otf-ipafont ttf-dejavu | |
sudo pacman -S lightdm lightdm-gtk-greeter lightdm-gtk-greeter-settings | |
cat << EOF > ~/.xinitrc | |
export DefaultImModule=fcitx | |
export GTK_IM_MODULE=fcitx | |
export QT_IM_MODULE=fcitx | |
export XMODIFIERS="@im=fcitx" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -kL https://bootstrap.pypa.io/get-pip.py | python | |
pip install awscli --upgrade --user | |
echo "export PATH=~/.local/bin:$PATH" >> ~/.bash_profile | |
source ~/.bash_profile | |
aws configure | |
AWS Access Key ID [None]: <ID> | |
AWS Secret Access Key [None]: <KEY> | |
Default region name [None]: ap-northeast-1 | |
Default output format [None]: json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:%s/></>\r</g | filetype indent on | setf xml | normal gg=G |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum update -y nss | |
yum install -y https://centos6.iuscommunity.org/ius-release.rpm | |
perl -pi -e "s/enabled\s+=\s+1/enabled = 0/gi" /etc/yum.repos.d/ius.repo | |
yum install -y --enablerepo=ius python36u python36u-libs python36u-pip | |
ln -s /usr/bin/python3.6 /usr/bin/python3 | |
ln -s /usr/bin/pip3.6 /usr/bin/pip3 | |
pip3 install awscli --upgrade --user | |
echo "# PATH for AWS CLI" >> ~/.bashrc | |
echo "export PATH=~/.local/bin:$PATH" >> ~/.bashrc | |
source ~/.bashrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> update wp_options set option_value = 'http://localhost:8000' where option_name = 'home'; | |
Query OK, 1 row affected (0.01 sec) | |
Rows matched: 1 Changed: 1 Warnings: 0 | |
mysql> update wp_options set option_value = 'http://localhost:8000' where option_name = 'siteurl'; | |
Query OK, 1 row affected (0.04 sec) | |
Rows matched: 1 Changed: 1 Warnings: 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
sudo yum -y install libmcrypt-devel libargon2 --enablerepo=epel | |
sudo yum -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm | |
sudo yum -y install --enablerepo=remi,remi-php73 php php-mbstring php-xml php-xmlrpc php-gd php-pdo php-pecl-mcrypt php-mysqlnd php-pecl-mysql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
cat <<\EOF > /etc/yum.repos.d/nginx.repo | |
[nginx] | |
name=nginx repo | |
baseurl=http://nginx.org/packages/mainline/centos/7/$basearch/ | |
gpgcheck=0 | |
enabled=0 | |
EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
nmcli connection modify eth0 ipv4.method manual | |
nmcli connection modify eth1 ipv4.method manual | |
nmcli connection modify eth0 ipv4.addresses "XXX.XXX.XXX.XXX/24" | |
nmcli connection modify eth0 ipv4.gateway "XXX.XXX.XXX.XXX" | |
nmcli connection modify eth1 ipv4.addresses "192.168.0.1/24" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
find /opt/bacula/backups -type f | grep -v "part.1" | xargs rm -f |