Skip to content

Instantly share code, notes, and snippets.

View andymadge's full-sized avatar

Andy Madge andymadge

View GitHub Profile
@roachhd
roachhd / quick-ref-jekyll-markdown.md
Created November 11, 2014 09:15
Jekyll Markdown Quick Reference

#Jekyll Markdown Quick Reference

####Write in simply awesome markdown

layout: post
title: Markdown Style Guide
---
@unicolet
unicolet / el_template.json
Created September 11, 2014 14:32
Elastisearch template for apache extended log format
{
"template":"logstash-*",
"settings":{
"index.refresh_interval":"5s"
},
"mappings":{
"_default_":{
"dynamic_templates":[
{
"string_fields":{
import os
import sys
import pickle
import console
import editor
import dropboxlogin # this code can be found here https://gist.github.com/4034526
STATE_FILE = '.dropbox_state'
@molaschi
molaschi / stash_slack_integration.md
Created June 4, 2014 17:10
Integrate Stash with Slack using webhooks

This is a short article on how we integrate stash and slack in openmind

First of all i assume you have:

  • a working stash installation
  • a repository you to notify slack on pushes
  • stash user with administration priviledges
  • full access to the server (linux) where stash is installed on
  • a team configured on slack
  • slack user with administration priviledges
@ekristen
ekristen / check_docker_container.sh
Last active November 13, 2024 18:11
Bash Script for Nagios to Check Status of Docker Container
#!/bin/bash
# Author: Erik Kristensen
# Email: [email protected]
# License: MIT
# Nagios Usage: check_nrpe!check_docker_container!_container_id_
# Usage: ./check_docker_container.sh _container_id_
#
# Depending on your docker configuration, root might be required. If your nrpe user has rights
# to talk to the docker daemon, then root is not required. This is why root privileges are not
@takeshixx
takeshixx / hb-test.py
Last active September 8, 2025 01:16
OpenSSL heartbeat PoC with STARTTLS support.
#!/usr/bin/env python2
"""
Author: takeshix <[email protected]>
PoC code for CVE-2014-0160. Original PoC by Jared Stafford ([email protected]).
Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP.
"""
import sys,struct,socket
from argparse import ArgumentParser
@AGWA
AGWA / rpi-hdmi.sh
Last active January 10, 2025 16:18
Enable and disable the HDMI port on the Raspberry Pi: `rpi-hdmi on` to turn on, `rpi-hdmi off` to turn off. X is properly reinitialized when re-enabling.
#!/bin/sh
# Enable and disable HDMI output on the Raspberry Pi
is_off ()
{
tvservice -s | grep "TV is off" >/dev/null
}
case $1 in
@bradwright
bradwright / send-to-omnifocus.scpt
Last active August 29, 2015 13:56
Send current MailPlane email to OmniFocus (with Mailplane and Gmail links as notes)
on run {input, parameters}
tell application "Mailplane 3"
set theEmailUrl to currentURL
set theGmailUrl to my replace_chars(theEmailUrl, "mailplane://bradley.wright%40digital.cabinet-office.gov.uk/", "https://mail.google.com/mail/ca/u/0/")
set theSubject to currentTitle
tell application "OmniFocus"
set theTask to theSubject
set theNote to theEmailUrl & "

This repository is purely a staging one for converting Eternity from Subversion to Git. As the process is refined, force-pushes may happen frequently. Do not depend on it having stable references.

Authors

The author mapping file for this repository is still yet incomplete, the version currently used was:

@fiedl
fiedl / nas-e2fsck.sh
Created January 20, 2014 01:25
QNAP-NAS: How to check disk if cannot unmount when device is busy.
ssh admin@nas
/etc/init.d/services.sh stop
/etc/init.d/xdove.sh stop
# See if there are still files open on the disk:
lsof |grep /share/MD0_DATA
# Kill the open processes if any.