Skip to content

Instantly share code, notes, and snippets.

View lorello's full-sized avatar
🏠
Working from home

LoreLLo lorello

🏠
Working from home
View GitHub Profile
@somebox
somebox / convert_trac.rb
Created October 10, 2010 20:31
Convert Trac Wiki to Markdown
#!/usr/bin/env ruby
# Convert Trac DB Wiki pages to Markdown source files
# This script is based on http://github.com/seven1m/trac_wiki_to_github which
# converted all pages from a Trac DB to GitHub Wiki format (as Textile).
#
# I made two changes:
# - uses MarkDown format instead
# - uses the sqllite3-ruby gem which does not need Ruby 1.9
@mtigas
mtigas / gist:952344
Last active June 15, 2026 22:12
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:

@sgk
sgk / trac2down.py
Created October 14, 2011 09:35
Trac Wiki to Markdown converter
#!/usr/bin/python
# vim:set fileencoding=utf-8 sw=2 ai:
import sqlite3
import datetime
import re
SQL = '''
select
name, version, time, author, text
@ziadoz
ziadoz / awesome-php.md
Last active August 10, 2026 17:52
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.
@nanliu
nanliu / gist:3170626
Created July 24, 2012 15:20
Puppet Installation
#!/bin/bash
# This script is intended to be used with the install action
# of puppet-cloudpack
set -u
set -e
function fedora_repo() {
cat >/etc/yum.repos.d/puppet.repo <<'EOFYUMREPO'
[puppetlabs]
@assimovt
assimovt / README.md
Last active June 8, 2018 22:12
Adds Newrelic RPMs metrics to your dashboard.

Setup

Add the following gems to your Gemfile:

gem 'activeresource'
gem 'newrelic_api'

Update your bundle:

@hofmannsven
hofmannsven / README.md
Last active June 11, 2026 03:37
Git CLI Cheatsheet
@mordonez
mordonez / Readme.md
Last active March 23, 2021 08:01
Trello Job for Dashing
@bitflingr
bitflingr / README.md
Last active September 11, 2018 07:56
Dashing widget for puppetdb

##Description Simple Dashing widget (and associated job) to display general puppetdb status. Pulled the api calls from Nedap's Puppetboard. Excellent tool BTW.

WARNING: This only works if puppetdb is listening on HTTP. I have not gotten around to getting this to work with SSL client certificates yet. If you know how, please leave them at the comments below.

##Screenshot

##Dependencies None

@mostlyjason
mostlyjason / nagios2loggly.sh
Created February 9, 2015 21:20
Read from Nagios perfdata file and send bulk data to Loggly as JSON
#!/bin/bash
## nagios2loggly.sh
## Andy Mayhew <andy@loggly.com>
##
## Read from Nagios perfdata file and send bulk data.
##
## Setup as parallel performance data processor.
## Create /etc/nagios3/conf.d/nagios2loggly.cfg
## define command{