Skip to content

Instantly share code, notes, and snippets.

View kylejohnson's full-sized avatar

Kyle Johnson kylejohnson

View GitHub Profile
@mkubenka
mkubenka / install.sh
Created April 23, 2016 19:28
OpenVPN Access Server Letsencrypt
#!/bin/sh
apt-get -y install git bc
git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
mkdir /etc/letsencrypt
@kylejohnson
kylejohnson / gist:b869eef9d540aa21fe16
Last active February 2, 2016 15:26
ZoneMinder Ubuntu 14.10 Build Commands
sudo apt-get install apache2 mysql-server php5 php5-mysql build-essential libmysqlclient-dev libssl-dev libbz2-dev libpcre3-dev libdbi-perl libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl libmime-perl libpcre3 libwww-perl libdbd-mysql-perl libsys-mmap-perl yasm subversion automake autoconf libjpeg-turbo8-dev libjpeg-turbo8 apache2-mpm-prefork libapache2-mod-php5 php5-cli libtheora-dev libvorbis-dev libvpx-dev libx264-dev libmp4v2-dev wget git-core mysql-client cmake build-essential libpolkit-backend-1-dev libcurl3 libavfilter-dev libavformat-dev libavutil-dev libswscale-dev libavformat-dev libavutil-dev libavdevice-dev libcurl4-gnutls-dev libgnutls-dev
cmake -DZM_WEBDIR=/var/www/zm -DZM_CGIDIR=/usr/lib/cgi-bin -DZM_WEB_USER=www-data -DZM_WEB_GROUP=www-data -DZM_DB_USER=zm01 -DZM_DB_PASS=zm01 -DZM_DB_HOST=sql01.gnulnx.home -DZM_DB_NAME=zm01
make
sudo make install
mysql -u zm01 -p -h sql01.gnulnx.home zm01 < zm_create.sql
@aaronhurt
aaronhurt / curltest.c
Last active November 26, 2023 10:29
example code using libcurl and json-c to post and parse a return from http://jsonplaceholder.typicode.com
/**
* example C code using libcurl and json-c
* to post and return a payload using
* http://jsonplaceholder.typicode.com
*
* License:
*
* This code is licensed under MIT license
* https://opensource.org/licenses/MIT
*
@kylejohnson
kylejohnson / README.md
Last active December 6, 2018 21:22
pianobar widget for Dashing.

Preview

Pianobar Widget Preview

Description

Displays the currently playing song from pianobar, a CLI client for pandora.com

Dependencies

Your system ruby must have the following gems installed: net/http, json and uri.

@mastertheknife
mastertheknife / video.sql
Last active December 31, 2015 20:49
SQL commands for the video branch
ALTER TABLE `Monitors` ADD `SaveJPEGs` TINYINT NOT NULL DEFAULT '3' AFTER `Deinterlacing` ,
ADD `VideoWriter` TINYINT NOT NULL DEFAULT '0' AFTER `SaveJPEGs` ,
ADD `EncoderParameters` TEXT NOT NULL AFTER `VideoWriter` ;
ALTER TABLE `Events` ADD `DefaultVideo` VARCHAR( 64 ) NOT NULL AFTER `AlarmFrames` ;
@bradmontgomery
bradmontgomery / install-comodo-ssl-cert-for-nginx.rst
Last active April 1, 2024 11:21
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert