Skip to content

Instantly share code, notes, and snippets.

Avatar

Najib Ninaba najibninaba

View GitHub Profile
@najibninaba
najibninaba / init.el
Last active Jul 12, 2019
Current Emacs init.el configuration
View init.el
(setq delete-old-versions -1 ) ; delete excess backups silently
(setq version-control t )
(setq vc-make-backup-files t )
(setq vc-follow-symlinks t )
(setq backup-directory-alist `(("." . "~/.emacs.d/backups")) )
(setq auto-save-file-name-transforms '((".*" "~/.emacs.d/auto-save-list/" t)) )
(setq inhibit-startup-screen t )
(setq ring-bell-function 'ignore ) ; silent bell on mistakes
(setq coding-system-for-read 'utf-8 )
(setq coding-system-for-write 'utf-8)
View TripAdvisor_reviewScraper.py
# -*- coding: utf-8 -*-
"""
Created on Fri Jul 28 23:56:40 2017
@author: Dustin Fontaine
"""
# tripadvisor Scrapper - use this one to scrape hotels
# importing libraries
@najibninaba
najibninaba / snapper.md
Created Jun 19, 2017
Useful Snapper Commands
View snapper.md

Useful Snapper Commands

# Create a checkpoint named MyCheckpointName
sudo snapper create -d MyCheckpointName

# List all Snapper checkpoints
sudo snapper list

# Restore a Snapper checkpoint
# First get the rollback number from the snapper list command, e.g 63
View keybase.md

Keybase proof

I hereby claim:

  • I am najibninaba on github.
  • I am najib (https://keybase.io/najib) on keybase.
  • I have a public key whose fingerprint is E626 F94B 9C8B 8599 D069 690C 91D6 875E E57A 2695

To claim this, I am signing this object:

@najibninaba
najibninaba / provision-win-lin-servers.ps1
Created May 22, 2016
Simple Powershell to provision Windows 2012 and Ubuntu 14.04 TLS servers from scratch using Powershell
View provision-win-lin-servers.ps1
# Provision Windows 2012 and Ubuntu 14.04 TLS servers from scratch using Powershell
# ----- Common Section
# Set the resource group name and location
$resourceGroup = "psod-iaas"
$location = "Southeast Asia"
# Logs into Azure and get the credentials for executing this in Azure.
Login-AzureRmAccount
@najibninaba
najibninaba / Makefile
Last active Dec 14, 2015
Fast Python Buildout Bootstrap
View Makefile
defaults: bootstrap buildout
bootstrap:
python bootstrap.py -d
buildout:
bin/buildout
clean:
git clean -xdf
@najibninaba
najibninaba / pythonista-install-boto.py
Last active Dec 28, 2019
Pythonista script for installing boto
View pythonista-install-boto.py
# Source: https://gist.github.com/najibninaba/5062153
#
# This script installs Boto in Pythonista. Run this script in your root folder and it will download and install Boto along with its
# dependencies. To use Boto, be sure to add boto-module in your sys.path before importing boto like so:
# import sys; sys.path.append('boto-module')
# import boto.ec2
#
# Credits:
# This script is inspired by omz's Evernote Installer script: https://gist.github.com/omz/5048588
#