Skip to content

Instantly share code, notes, and snippets.

View JustinHop's full-sized avatar

Justin Hoppensteadt JustinHop

View GitHub Profile
@jerrac
jerrac / gitlab2elk.yml
Created March 23, 2015 22:19
Logstash and Logstash-Forwarder config for GitLab logs
# YAML config for these Ansible roles:
# https://github.com/LaneCommunityCollege/aspects_logstash
# https://github.com/LaneCommunityCollege/aspects_logstash_forwarder
#
# Since it's just straight config blocks, you should be able to just copy and paste what you need if you don't use
# those Ansible roles.
#
# End result is multiline logs combined into one, and dates are parsed correctly.
aspects_logstash_rules:
@kojiwell
kojiwell / deploy_salt.yml
Last active November 6, 2023 02:08
OpenStack Heat template example: Deploy Salt Cluster with HOT
heat_template_version: 2013-05-23
description: Deploy Salt Cluster
parameters:
keyname:
type: string
description: Key name for loggin in to instances
imagename:
type: string
@pi3ch
pi3ch / rc.lua
Created January 13, 2013 13:26
Textclock widget with tooltip for different cities/timezones in Awesome WM
-- Add to your rc.lua,
-- Create a textclock widget
mytextclock = awful.widget.textclock({ align = "right" })
mytestclock_tooltip = awful.tooltip({
objects = { mytextclock },
timer_function = function()
local now = os.time()
local utcdate = os.date("!*t", now)
local tehran_t = os.time(utcdate) + (3.5*3600)
local ljubljana_t = os.time(utcdate) + (1*3600)
@pklaus
pklaus / StatusIcon.py
Created February 15, 2010 20:36
StatusIcon – A Simple Tray Icon Application Using PyGTK
#!/usr/bin/env python
# found on <http://files.majorsilence.com/rubbish/pygtk-book/pygtk-notebook-html/pygtk-notebook-latest.html#SECTION00430000000000000000>
# simple example of a tray icon application using PyGTK
import gtk
def message(data=None):
"Function to display messages to the user."