Skip to content

Instantly share code, notes, and snippets.

View skoona's full-sized avatar
🎯
Focusing

James Scott, Jr skoona

🎯
Focusing
View GitHub Profile
@giannisp
giannisp / gist:ebaca117ac9e44231421f04e7796d5ca
Last active March 1, 2024 14:39
Upgrade PostgreSQL 9.6.5 to 10.0 using Homebrew (macOS)
After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work.
The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0."
Database files have to be updated before starting the server, here are the steps that had to be followed:
# need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default
brew unlink postgresql
brew install postgresql@9.6
brew unlink postgresql@9.6
brew link postgresql
@skoona
skoona / gtk_display_client.c test client for display services
Last active May 11, 2016 02:43
Test Client for GtkDisplayService.c command-line: `./gtkDisplayClients -a 10.100.1.8 -d 1`, and `./gtkDisplayClient`
/**
* gtk_display_client.c
* gcc -v `pkg-config --cflags --libs glib-2.0 gio-2.0` -O3 -Wall gtk_display_client.c -o gtk_display_client
*
*/
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <gio/gio.h>
@icyz
icyz / select2-zurbfoundation5.css
Created December 17, 2015 17:57
Select2 4.X for Zurb Foundation 5
/*
15-12-2015
@twitter: andreamariani2k
*/
.select2-container {
box-sizing: border-box;
display: inline-block;
margin: 0;
position: relative;
@sachin-handiekar
sachin-handiekar / QuartzRoute.java
Created November 5, 2014 13:27
A simple scheduler using camel-quartz
package com.sachinhandiekar.examples;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.builder.RouteBuilder;
/**
* @author Sachin Handiekar
*/
public class QuartzRoute extends RouteBuilder {
@mtigas
mtigas / gist:952344
Last active April 3, 2024 07:57
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.


Updated Apr 5 2019:

because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.

some other notes: