Skip to content

Instantly share code, notes, and snippets.

🐢
Focusing

Jack Regnart jackregnart

🐢
Focusing
Block or report user

Report or block jackregnart

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
View dhis2-nginx-ansible.yml
---
- hosts: dhis
become: true
gather_facts: no
pre_tasks:
- raw: apt-get install -y python-simplejson
tasks:
- name: install letsencrypt
View dhis2-nginx-from-source-ansible.yml
---
- 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"
View dhis2-tomcat-ansible.yml
- hosts: dhis
remote_user: dhis
become: yes
vars_files:
- vars/main.yml
roles:
- { role: idealista.tomcat-role }
tasks:
- name: Install tomcat conf
View dhis2-database-ansible.yml
---
- hosts: dhis
become: yes
vars_files:
- vars/main.yml
roles:
- geerlingguy.postgresql
tasks:
- name: Install postgis
apt:
View dhis2-server-ansible.yml
---
- hosts: dhis
remote_user: root
become: yes
tasks:
- name: Update all packages to the latest version
apt:
upgrade: dist
- name: Add dhis user
user:
View gist:350343
#!/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)
@jackregnart
jackregnart / gist:242857
Created Nov 25, 2009
Chatrbox Fluid Userscript
View gist:242857
// ==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) {
View small_revenue_with_signups.rb
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
You can’t perform that action at this time.