Skip to content

Instantly share code, notes, and snippets.

View zubair1024's full-sized avatar
🎯
Focusing

Zubair Ahmed zubair1024

🎯
Focusing
View GitHub Profile

Install Redis Server

  • The Redis packages are available under the default apt repository. For the installation of Redis on an Ubuntu VPS. Run below command from the terminal to install Redis on your machine:

sudo apt-get install redis-server

  • Next is to enable Redis to start on system boot. Also restart Redis service once.

sudo systemctl enable redis-server.service

storage:
dbPath: /srv/mongodb/arb1/
journal:
enabled: true
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/arb1/arb1.log

Step 1 : Create Docker machines (to act as nodes for Docker Swarm) Create one machine as manager and others as workers

`docker-machine create --driver hyperv manager1`    
`docker-machine create --driver virtualbox manager1`

docker-machine:Error with pre-create check: “exit status 126” https://stackoverflow.com/questions/3... brew cask install virtualbox;

Create one manager machine

mongodump --uri="<uri>" --gzip --archive=/opt/
listen [::]:443 ssl http2 ipv6only=on; 
listen 443 ssl http2;
const axios = require('axios')
const qs = require('querystring')
const requestBody = {
name: 'Akexorcist',
age: '28',
position: 'Android Developer',
description: 'birthdate=25-12-1989&favourite=coding%20coding%20and%20coding&company=Nextzy%20Technologies&website=http://www.akexorcist.com/',
awesome: true
}

Git Helper Cheatsheet

  • Save git credentials

git config credential.helper store

sudo chown "$USER":"$USER" /home/"$USER"/.docker -R
sudo chmod g+rwx "/home/$USER/.docker" -R
**/node_modules
node_modules
{
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 90
}