Skip to content

Instantly share code, notes, and snippets.

View jackregnart's full-sized avatar
🐢
Focusing

Jack Regnart jackregnart

🐢
Focusing
View GitHub Profile
chart :small_revenue_with_signups do |c|
c.type = :line
## Defines the font size & actual font to use. The size & background colours are used in the
## the XML settings and in the HTML which is generated for this chart (unless overriden in the
## render).
c.font = 'Arial'
c.font_size = 11
c.width = 400
c.height = 180
@jackregnart
jackregnart / gist:242857
Created November 25, 2009 16:35
Chatrbox Fluid Userscript
// ==UserScript==
// @name Chatrbox
// @namespace http://chatrboxapp.com
// @description Simple Badge Icon script for Chatrbox
// @include *
// @author http://twitter.com/jackregnart
// ==/UserScript==
(function () {
if(window.fluid) {
#!/usr/bin/env python
import sys, os, subprocess
launch = True
blocker = ""
apps = ["Spotify", "Songbird", "VLC"]
ps = subprocess.Popen("/bin/ps -x", shell=True, stdout=subprocess.PIPE)
---
- hosts: dhis
remote_user: root
become: yes
tasks:
- name: Update all packages to the latest version
apt:
upgrade: dist
- name: Add dhis user
user:
---
- hosts: dhis
become: yes
vars_files:
- vars/main.yml
roles:
- geerlingguy.postgresql
tasks:
- name: Install postgis
apt:
- hosts: dhis
remote_user: dhis
become: yes
vars_files:
- vars/main.yml
roles:
- { role: idealista.tomcat-role }
tasks:
- name: Install tomcat conf
---
- name: Compile NGINX from sources
hosts: dhis
vars:
nginx_version: nginx-1.15.9
nginx_tarball_url: "http://nginx.org/download/{{ nginx_version }}.tar.gz"
nginx_install_dir: "/tmp/{{ nginx_version }}"
nginx_sbin_path: "/usr/sbin/nginx"
nginx_conf_path: "/etc/nginx/nginx.conf"
---
- hosts: dhis
become: true
gather_facts: no
pre_tasks:
- raw: apt-get install -y python-simplejson
tasks:
- name: install letsencrypt