Skip to content

Instantly share code, notes, and snippets.

View najibninaba's full-sized avatar

Najib Ninaba najibninaba

View GitHub Profile
@najibninaba
najibninaba / pythonista-install-boto.py
Last active December 28, 2019 20:51
Pythonista script for installing boto
# 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
#
@najibninaba
najibninaba / init.el
Last active July 12, 2019 01:01
Current Emacs init.el configuration
(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)
# -*- 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 June 19, 2017 00:28
Useful Snapper Commands

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

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 06:00
Simple Powershell to provision Windows 2012 and Ubuntu 14.04 TLS servers from scratch using Powershell
# 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 December 14, 2015 11:39
Fast Python Buildout Bootstrap
defaults: bootstrap buildout
bootstrap:
python bootstrap.py -d
buildout:
bin/buildout
clean:
git clean -xdf