Skip to content

Instantly share code, notes, and snippets.

View DevSecOpsGuy's full-sized avatar
🏦
Working from home

Showeb Arif Siddiquie DevSecOpsGuy

🏦
Working from home
View GitHub Profile
@DevSecOpsGuy
DevSecOpsGuy / node.sh
Created September 28, 2019 16:45
Node.js v10.x
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install gcc g++ make
sudo curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
sudo echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
node --version
@DevSecOpsGuy
DevSecOpsGuy / rocketchat.sh
Last active October 15, 2019 14:15
Rocket.Chat
sudo useradd -m -U -r -d /opt/rocket rocket
sudo usermod -a -G rocket www-data
sudo chmod 750 /opt/rocket
su - rocket
sudo passwd rocket
su - rocket
curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz
tar -xzf /tmp/rocket.chat.tgz -C /tmp
cd /temp
cd Rocket.Chat/programs/server
@DevSecOpsGuy
DevSecOpsGuy / netdata.sh
Last active December 15, 2019 13:32
Netdata is distributed, real-time, performance and health monitoring for systems and applications.
sudo apt update
sudo apt upgrade -y
sudo apt-get install netdata -y
sudo nano /etc/netdata/netdata.conf
sudo systemctl restart netdate
sudo systemctl restart netdata.service
sudo systemctl status netdata.service
@DevSecOpsGuy
DevSecOpsGuy / PostgreSQL.sh
Created September 29, 2019 08:06
PostgreSQL 10 on Ubuntu 18.04
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -sc)-pgdg main" > /etc/apt/sources.list.d/PostgreSQL.list'
sudo apt update
sudo apt-get install postgresql-10
sudo systemctl stop postgresql.service
sudo systemctl start postgresql.service
sudo systemctl enable postgresql.service
sudo systemctl status postgresql.service
@DevSecOpsGuy
DevSecOpsGuy / sublime3.sh
Created October 2, 2019 15:46
sublime-text
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text
@DevSecOpsGuy
DevSecOpsGuy / sublime-text-3-windows-shortcuts.md
Created October 6, 2019 16:02 — forked from mrliptontea/sublime-text-3-windows-shortcuts.md
Sublime Text 3 - Useful Shortcuts (Windows)

Sublime Text 3 - Useful Shortcuts (Windows)

General

Shortcut Description
Ctrl+Shift+P command prompt
Ctrl+Alt+P switch project
Ctrl+P go to file
Ctrl+G go to line
@DevSecOpsGuy
DevSecOpsGuy / ruby.sh
Last active October 6, 2019 19:27
Ruby on Ubuntu 18.04 LTS
sudo apt update && sudo apt upgrade -y
cd ~/Downloads/
sudo wget https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.3.zip
sudo apt-get install unzip -y &&
sudo unzip ruby-2.5.3.zip -d ~/Downloads/
cd ruby-2.5.3 && sudo ./configure && sudo make && sudo make install
ruby --version
@DevSecOpsGuy
DevSecOpsGuy / vi
Created October 6, 2019 19:29 — forked from IngmarBoddington/vi
vi shortcuts
COMMAND MODE
i = Enter insert mode
o = Insert after current line (enter insert mode)
O = Insert before current line (enter insert mode)
a = Append after current character (enter insert mode)
A = Append at end of line (enter inset mode)
u = undo
@DevSecOpsGuy
DevSecOpsGuy / redis.sh
Created October 6, 2019 19:56
Redis on Ubuntu 18.04
sudo apt update && sudo apt upgrade -y
sudo apt-get install redis-server -y
sudo vi /etc/redis/redis.conf
:setnu
make line
559 maxmemory 256
and
590 maxmemory-policy allkeys-lru
:wq
@DevSecOpsGuy
DevSecOpsGuy / rabbitmq.sh
Created October 6, 2019 20:19
RabbitMQ Server on Ubuntu 18.04
echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list
wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install rabbitmq-server
sudo systemctl enable rabbitmq-server
sudo systemctl start rabbitmq-server
sudo systemctl status rabbitmq-server
sudo rabbitmqctl add_user admin "your_password"
sudo rabbitmqctl set_user_tags admin administrator