Skip to content

Instantly share code, notes, and snippets.

View cmac4603's full-sized avatar

Colin MacRae cmac4603

View GitHub Profile
@zonca
zonca / jupyterhub
Created April 13, 2016 05:10 — forked from lambdalisue/jupyterhub
A service (init.d) script for jupyterhub
#! /bin/sh
### BEGIN INIT INFO
# Provides: jupyterhub
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start jupyterhub
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
@geoffwatts
geoffwatts / sds011.py
Created January 25, 2016 22:57
Read an SDS011 Laser PM2.5 Sensor (Nova PM Sensor) with Python
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import serial, time, struct
ser = serial.Serial()
ser.port = "/dev/cu.wchusbserial1410" # Set this to your serial port
ser.baudrate = 9600
ser.open()
@arjunnambiartc
arjunnambiartc / devicelogin.py
Last active July 21, 2021 22:35
Login to multiple devices,run multiple commands using paramiko, store the results using xlswriter and send email using Python's smtplib library
#! /usr/bin/python
import os
import getpass
import paramiko
import xlsxwriter
import socket
import re
import sys
import smtplib
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active June 6, 2024 08:23
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k