ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
sudo apt-get install xclip
xclip -sel clip < ~/.ssh/id_rsa.pub
#!/bin/shell | |
sudo mkdir /etc/nginx-backup/ | |
sudo cp -r /etc/nginx/* /etc/nginx-backup/ | |
sudo add-apt-repository ppa:nginx/stable | |
sudo apt-get update | |
sudo apt-get full-upgrade | |
sudo nginx -v |
#!/bin/bash | |
# Clear PageCache only | |
sync; echo 1 > /proc/sys/vm/drop_caches | |
# Clear dentries and inodes | |
sync; echo 2 > /proc/sys/vm/drop_caches | |
# Clear PageCache, dentries and inodes | |
sync; echo 3 > /proc/sys/vm/drop_caches |
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
PROMPT='%{$fg_bold[red]%}HOME - %{$fg_bold[yellow]%}%t - %{$fg_bold[blue]%}%c $(git_prompt_info)% %{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_CLEAN=") %{$fg_bold[green]%}✔ " | |
ZSH_THEME_GIT_PROMPT_DIRTY=") %{$fg_bold[red]%}✘ " | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[cyan]%}(" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" |
sudo apt install gdebi-core wget | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo gdebi google-chrome-stable_current_amd64.deb |
# NGINX | GIT | |
sudo yum install -y nginx git | |
# Install the current version of node version manager (nvm) by typing the following at the command line to install version 33.6 | |
# currently using v0.35.2 | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/{VERSION}/install.sh | bash | |
# Activate nvm by typing the following at the command line. | |
. ~/.nvm/nvm.sh |
Environment variables are a set of dynamic named values that can affect the way running processes will behave on a computer.
They are part of the operating environment in which a process runs. For example, a running process can query the value of the TEMP environment variable to discover a suitable location to store temporary files, or the HOME or USERPROFILE variable to find the directory structure owned by the user running the process.
echo $SHELL
in your Terminal.apt-get update | |
apt-get install -y ruby | |
wget https://aws-codedeploy-us-east-1.s3.amazonaws.com/releases/codedeploy-agent_1.0-1.1597_all.deb | |
mkdir codedeploy-agent_1.0-1.1597_ubuntu20 | |
dpkg-deb -R codedeploy-agent_1.0-1.1597_all.deb codedeploy-agent_1.0-1.1597_ubuntu20 | |
sed 's/2.0/2.7/' -i ./codedeploy-agent_1.0-1.1597_ubuntu20/DEBIAN/control | |
dpkg-deb -b codedeploy-agent_1.0-1.1597_ubuntu20 | |
dpkg -i codedeploy-agent_1.0-1.1597_ubuntu20.deb | |
systemctl start codedeploy-agent | |
systemctl enable codedeploy-agent |
aws route53 get-hosted-zone --id HOSTED_ZONE_ID --query "HostedZone.ResourceRecordSetCount" |
nmap -p 80 --open -sV 192.168.1.0/24 |