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"

1. Go to the Powerline Fonts Github page.

https://github.com/powerline/fonts

2. Click on the green “Clone or download” button.

3. Click “Download ZIP”

4. Save the file fonts-master.zip to your Downloads folder or wherever you want to put it.

5. Extract fonts-master.zip.

6. Go into the fonts-master folder and the other fonts-master folder inside that. Rather than opening each folder and trying to install each font file ending with .ttf or .otf with the Windows Font Viewer, we will use a PowerShell batch script ( .ps1) called install.ps1. But a few things need to be done to make it work.