http://www.binarytides.com/linux-mail-command-examples/
Being able to send emails from command-line from a server is quite useful when you need to generate emails programatically from shell scripts or web applications for example.
#http://stackoverflow.com/questions/12870928/mac-bash-git-ps1-command-not-found | |
curl -o ~/.git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh | |
echo 'source ~/.git-prompt.sh' >> ~/.bashrc |
#Dig HowTo [https://www.madboa.com/geek/dig/] | |
# get the address(es) for yahoo.com | |
dig yahoo.com A +noall +answer | |
# get a list of yahoo's mail servers | |
dig yahoo.com MX +noall +answer | |
# get a list of DNS servers authoritative for yahoo.com | |
dig yahoo.com NS +noall +answer |
REM http://www.dbspecialists.com/files/scripts/compare_schemas.sql | |
REM | |
REM compare_schemas.sql | |
REM =================== | |
REM | |
REM This script is provided by Database Specialists, Inc. | |
REM (http://www.dbspecialists.com) for individual use and not for sale. | |
REM Database Specialists, Inc. does not warrant the script in any way | |
REM and will not be responsible for any loss arising out of its use. | |
REM |
# ------------------ NETSH --------------- | |
# | |
#for help: $ netsh /? | |
#NETSTAT | |
# | |
#usefull | |
netstat -bn |
http://www.binarytides.com/linux-mail-command-examples/
Being able to send emails from command-line from a server is quite useful when you need to generate emails programatically from shell scripts or web applications for example.
ssh_authorized_keys: | |
- github:tuksik | |
hostname: k3osm | |
k3os: | |
dns_nameservers: | |
- 8.8.8.8 | |
- 1.1.1.1 | |
ntp_servers: | |
- 0.us.pool.ntp.org | |
- 1.us.pool.ntp.org |
sudo adduser --disabled-password --gecos \"\" vagrant | |
echo vagrant:vagrant | sudo chpasswd | |
sudo mkdir -p /home/vagrant/.ssh | |
sudo chmod 0700 /home/vagrant/.ssh | |
sudo wget --no-check-certificate https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub -O /home/vagrant/.ssh/authorized_keys | |
sudo chmod 0600 /home/vagrant/.ssh/authorized_keys | |
sudo chown -R vagrant /home/vagrant/.ssh | |
sudo echo 'vagrant ALL=(ALL:ALL) ALL' >> /etc/sudoers | |
sudo mkdir -p /home/rancher/.ssh | |
sudo chmod 0700 /home/rancher/.ssh |