Skip to content

Instantly share code, notes, and snippets.

View zubair1024's full-sized avatar
🎯
Focusing

Zubair Ahmed zubair1024

🎯
Focusing
View GitHub Profile
@zubair1024
zubair1024 / sassref.scss
Last active December 27, 2017 09:33
SASS reference sheet
/* Importing (you can use scss type as well) */
@import 'import.css';
/* variables */
$black: #000;
body{
background-color: $black;
#!/bin/bash
REMOTE_HOST=""
REMOTE_PORT=""
REMOTE_DB=""
REMOTE_USER=""
REMOTE_PASSWORD=""
LOCAL_HOST=""
LOCAL_PORT=""
LOCAL_DB=""
GET events/_search
{
"size": 0,
"query": {
"bool": {
"filter": {
"bool": {
"must": [
{
"range": {
db.sensormessageevents.find({
$and: [
{
geoJSON: {
$exists: true
}
},
{
geoJSON:
{

Starting the three config servers:

mongod -f csrs_1.conf

mongod -f csrs_2.conf

mongod -f csrs_3.conf

Connect to one of the config servers:

The configuration file for the first node (node1.conf):

storage:
  dbPath: /var/mongodb/db/node1
net:
  bindIp: 192.168.103.100,localhost
  port: 27011
security:
  authorization: enabled
 keyFile: /var/mongodb/pki/m103-keyfile

The workflow is as follows:

1) Install Ngnix:

sudo apt update
sudo apt install nginx

2) Ensure NGINX is running and and enabled to start automatically on reboot:

  1. Open console.
  2. Run: git clone git://github.com/mhoofman/wordpress-heroku.git
  3. Run: cd wordpress-heroku
  4. Run: heroku addons:create heroku-postgresql
  5. Run: heroku pg:promote HEROKU_POSTGRESQL_INSTANCE (where HEROKU_POSTGRESQL_INSTANCE) is the result of the create code you ran before.
  6. Run: git push heroku
  7. Wait.
  8. Navigate to website.
  9. Go through instructions.
  10. Done.
export PATH=$PATH:"C:\Program Files\nodejs"
export PATH=$PATH:"C:\Program Files\Docker\Docker\resources\bin"
export PATH=$PATH:"C:\Users\<name>\AppData\Local\Programs\Microsoft VS Code"

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by