Skip to content

Instantly share code, notes, and snippets.

View russmckendrick's full-sized avatar
📚
Writting the second edition of Learn Ansible.

Russ McKendrick russmckendrick

📚
Writting the second edition of Learn Ansible.
View GitHub Profile
@mattes
mattes / call
Last active December 29, 2020 09:49
Place a call from terminal using your iPhone (Mac OS X Yosemite & iOS 8)
#!/usr/bin/env sh
open "tel://$*"
@clay584
clay584 / gist:5a75009ad571af3d0648
Created October 15, 2014 03:15
Cisco Log Grok Expression
input {
file {
#if you are reading files that syslog-ng has written to.
path => ["/var/log/syslog-ng.log"]
type => "syslog"
tags => [ "network" ]
}
tcp {
#if syslog-ng is relaying to logstash on TCP/514
port => 514
@technicool
technicool / figinstall.sh
Last active August 29, 2015 14:05
Install necessary stuff to get fig running on a vanilla Ubuntu 14.04 image
#!/bin/bash
#
# NOTE: This must be run as root!
#
# Install necessary stuff to get fig running on a vanilla Ubuntu 14.04 image.
#
# This should really be put in some automated deployment system, but it's a
# good reference point for trying out fig and docker on an AWS or similar cloud.
#
# You can also use this to ensure that your development machine is up and running
@wsargent
wsargent / docker_cheat.md
Last active August 31, 2023 12:10
Docker cheat sheet
@plentz
plentz / nginx.conf
Last active April 24, 2024 11:15
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@centerax
centerax / Proxy_SagePaySuite
Created June 5, 2013 13:23
workaround when you are behind a proxy
I have added this patch which should fix it
Payment.php
Add at line 1939
if($this->getConfigData('proxy_enabled')) {
$proxy_user_pwd = $this->getConfigData('proxy_user').':'.$this->getConfigData('proxy_pass');
$proxy_host_port = 'http://'.$this->getConfigData('proxy_host').':'.$this->getConfigData('proxy_port');
curl_setopt($curlSession, CURLOPT_PROXYUSERPWD, $usrPwd);
curl_setopt($curlSession, CURLOPT_PROXY, $proxy_host_port);
}
@stephenmckinney
stephenmckinney / github-markdown.css
Created November 25, 2012 22:24 — forked from andyferra/github.css
Github Markdown CSS - for Marked.app or similar
body {
color: #333333;
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px;
}
@walkeran
walkeran / gist:3713826
Created September 13, 2012 11:51
Exec resource with environment
[root@puppet ~]# cd /tmp/puppet/test6
[root@puppet test6]# puppet apply test.pp
notice: /Stage[main]//Exec[test2]/returns: executed successfully
notice: Finished catalog run in 0.30 seconds
[root@puppet test6]# ls
output2 test.pp
[root@puppet test6]# cat test.pp
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active April 26, 2024 23:26 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.
@phred
phred / pedantically_commented_playbook.yml
Last active November 3, 2023 01:55
Very complete Ansible playbook, showing off all the options
---
####
#### THIS IS OLD AND OUTDATED
#### LIKE, ANSIBLE 1.0 OLD.
####
#### PROBABLY HIT UP https://docs.ansible.com MY DUDES
####
#### IF IT BREAKS I'M JUST SOME GUY WITH
#### A DOG, OK, SORRY
####