Skip to content

Instantly share code, notes, and snippets.

Jon Neverland joenas

Block or report user

Report or block joenas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
joenas / docker-compose.yaml
Last active Sep 15, 2017
Matrix docker-compose with Postgres and docker network
View docker-compose.yaml
### To use this file you need to run
### $ docker network create matrix-network
version: "2"
image: postgres:9.6.4
restart: always
# I like to be able to use psql on the host to connect to the database
joenas / matrix_synapse.nginx.conf
Last active Sep 15, 2017
Nginx example conf for Synapse matrix Homeserver
View matrix_synapse.nginx.conf
# vim: syntax=nginx
server {
listen 80;
return 301 https://$server_name$request_uri;
server {
listen 443 ssl;
listen [::]:443 ssl;
joenas / ghost_huginn_twitter.json
Created Aug 12, 2017
Huginn scenario to post new blog posts from Ghost to Twitter
View ghost_huginn_twitter.json
"schema_version": 1,
"name": "Ghost to Twitter",
"description": "Post your Ghost blog posts to Twitter",
"source_url": false,
"guid": "8b950438b4618fac9fbe5f400a32bafa",
"tag_fg_color": "#FFFFFF",
"tag_bg_color": "#5BC0DE",
"icon": "pencil",
"exported_at": "2017-08-12T13:31:40Z",
joenas / parallel_spec_notifier.rb
Created Apr 19, 2017
OS X notifications with parallel_spec
View parallel_spec_notifier.rb
#!/usr/bin/env ruby
require 'terminal-notifier-guard'
path = ARGV[0] || 'spec'
output = `parallel_rspec #{path} -n 8 --nice`
num = output.scan(/(\d) failure/), &:+)
meth = (num>0) ? :failed : :success
TerminalNotifier::Guard.send(meth, "#{num} failures", title: 'RSpec results')
joenas / minetest@.service
Created Apr 10, 2017
Minetest systemd service for user
View minetest@.service
Description=Minetest server
ExecStart=/usr/bin/minetest --server --world /home/minetest/.minetest/worlds/%i --gameid %i --config server.conf
You can’t perform that action at this time.