Skip to content

Instantly share code, notes, and snippets.

View ndamulelonemakh's full-sized avatar
🍸
Solution explorer

Ndamulelo Nemakhavhani ndamulelonemakh

🍸
Solution explorer
View GitHub Profile
#!bin/bash
# REFERENCE: https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-ver15
# 1. First add the Microsoft SQL Server repository
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/18.04/mssql-server-2019.list)"
# 2. Then Install sql server using apt-install
sudo apt-get update
@ndamulelonemakh
ndamulelonemakh / proclist.py
Created April 18, 2020 16:39
Creating python console executables with pyinstaller and argparse
"""
A simple python script that uses the psutil package to show processes running on a host machine.
"""
__version__ = '1.0.0'
__author__ = 'Ndamulelo N [email protected]'
import psutil
import argparse
@ndamulelonemakh
ndamulelonemakh / firebase-security-rules -authenticated-only.js
Last active January 17, 2020 08:40
Firebase Security Rules Cheat Sheet
service cloud.firestore{
match /databases/{database}/documents{
match /{document=**}{
allow read, write: if request.auth.uid != null;
}
}
}