Skip to content

Instantly share code, notes, and snippets.

View blebo's full-sized avatar

Adam Gibson blebo

View GitHub Profile
#!/bin/bash
set -e -o errexit -o pipefail -o nounset
###################################
# This script can be used by itself, but it's recommended that you read
# a tutorial on Proxmox forum first: https://forum.proxmox.com/threads/hey-proxmox-community-lets-talk-about-resources-isolation.124256/
###################################
# Do not modify these variables (set by Proxmox when calling the script)
vmId="$1"

This is a work in progress, proceed with caution

Install Proxmox and a Ubuntu VM with Portainer to manage docker containers

Setup Proxmox

  1. Install Proxmox 6.X iso I selected 2 drives in Raid 1 mirror
  2. Console/SSH into Proxmox
  3. nano /etc/apt/sources.list
Mac Network Commands Cheat Sheet
After writing up the presentation for MacSysAdmin in Sweden, I decided to go ahead and throw these into a quick cheat sheet for anyone who’d like to have them all in one place. Good luck out there, and stay salty.
Get an ip address for en0:
ipconfig getifaddr en0
Same thing, but setting and echoing a variable:
@blebo
blebo / keybase.md
Created May 30, 2017 09:57
keybase.md

Keybase proof

I hereby claim:

  • I am blebo on github.
  • I am blebo (https://keybase.io/blebo) on keybase.
  • I have a public key ASDICwOnkARH0Zkf-DtP_tX2_NSaNteRth1ITccyrXQEnwo

To claim this, I am signing this object:

@blebo
blebo / # opencv3 - 2017-04-13_16-02-01.txt
Created April 13, 2017 09:04
opencv3 (homebrew/science/opencv3) on macOS 10.12.4 - Homebrew build logs
Homebrew build logs for homebrew/science/opencv3 on macOS 10.12.4
Build date: 2017-04-13 16:02:01
@blebo
blebo / # opencv3 - 2017-04-06_18-02-02.txt
Created April 13, 2017 05:45
opencv3 (homebrew/science/opencv3) on macOS 10.12.4 - Homebrew build logs
Homebrew build logs for homebrew/science/opencv3 on macOS 10.12.4
Build date: 2017-04-06 18:02:02
@blebo
blebo / # opencv3 - 2017-04-06_18-02-02.txt
Created April 12, 2017 08:39
opencv3 (homebrew/science/opencv3) on macOS 10.12.4 - Homebrew build logs
Homebrew build logs for homebrew/science/opencv3 on macOS 10.12.4
Build date: 2017-04-06 18:02:02
@blebo
blebo / Dockerfile
Last active August 29, 2015 14:01 — forked from jonbinney/Dockerfile
Updated for Ubuntu 13.04 (raring), due to dep errors when installing ros.
FROM ubuntu:raring
# ubuntu raring image doesn't have universe repo
run echo "deb http://archive.ubuntu.com/ubuntu raring main universe" > /etc/apt/sources.list
run apt-get update
RUN apt-get install -y wget
# install ROS
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu raring main" > /etc/apt/sources.list.d/ros-latest.list'
RUN wget http://packages.ros.org/ros.key -O - | apt-key add -
'''
Stream the Kivy window into a MJPEG HTTP server
===============================================
:Configuration:
`ip` : str, default to ''
By default, server will listen on all ips availables
`port` : int, default to 8000
TCP Port to listen
`fps` : int, default to 20
#!/usr/bin/python
#based on the ideas from http://synack.me/blog/implementing-http-live-streaming
# Run this script and then launch the following pipeline:
# gst-launch videotestsrc pattern=ball ! video/x-raw-rgb, framerate=15/1, width=640, height=480 ! jpegenc ! multipartmux boundary=spionisto ! tcpclientsink port=9999
from Queue import Queue
from threading import Thread
from socket import socket
from select import select
from wsgiref.simple_server import WSGIServer, make_server, WSGIRequestHandler