This file contains 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 | |
umount /media/cdrom | |
mount -o exec /media/cdrom | |
cd /media/cdrom | |
./install | |
shutdown now |
This file contains 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 | |
# Or add `vm.overcommit_memory=1` in `/etc/sysctl.conf` and call `sudo sysctl -p` | |
sudo sysctl vm.overcommit_memory=1 | |
# Or add `echo never > /sys/kernel/mm/transparent_hugepage/enabled` in `/etc/rc.local` | |
sudo echo never > /sys/kernel/mm/transparent_hugepage/enabled |
This file contains 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
# grant privileges for user | |
CREATE USER 'user_name'@'%' identified by 'password'; | |
GRANT ALL PRIVILEGES ON db_name.* TO 'user_name'@'%'; | |
FLUSH PRIVILEGES; | |
# create database pigeon | |
CREATE DATABASE db_name DEFAULT CHARSET utf8; |
This file contains 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
ssh -C -f -N -g -R remote_listen_port:destination_host:destination_port user@remote_host |
This file contains 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 launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist |
This file contains 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
# add to /etc/apt/sources.list | |
deb https://packages.erlang-solutions.com/debian jessie contrib | |
# install erlang from erlang-solution | |
apt-get install apt-transport-https | |
wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc | |
apt-key add erlang_solutions.asc | |
apt-get update | |
apt-get install esl-erlang | |
# install other deps |
This file contains 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
# set env | |
export HADOOP_HOME='/home/yzf/Software/hadoop-2.7.2' | |
export PATH=$HADOOP_HOME/bin:$PATH | |
export PATH=$HADOOP_HOME/sbin:$PATH | |
export HADOOP_MAPRED_HOME=$HADOOP_HOME | |
export HADOOP_COMMON_HOME=$HADOOP_HOME | |
export HADDOP_HDFS_HOME=$HADOOP_HOME | |
export HADOOP_YARN_HOME=$HADOOP_HOME | |
export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop |
This file contains 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
openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out certificate.pem |
This file contains 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
apt-get install build-essential uuid-runtime linux-headers-3.16.0-4-all |
OlderNewer