Skip to content

Instantly share code, notes, and snippets.


fen fenneh

  • London
View GitHub Profile
defunkt /
Created Apr 18, 2010
A list of Gist clients.

Gist Clients

Want to create a Gist from your editor, the command line, or the Services menu? Here's how.

Editor Support

View apache-and-tomcat-logs.json
"title": "Apache and Tomcat Logs",
"services": {
"query": {
"list": {
"0": {
"query": "apache !tomcat !static",
"alias": "",
"color": "#7EB26D",
"id": 0,
fmoo / gist:2018384
Created Mar 11, 2012
Tunneling arbitrary TCP connections over HTTP CONNECT requests with Twisted
View gist:2018384
from twisted.web import http
from twisted.internet import protocol, reactor
from twisted.internet.error import CannotListenError, ConnectError
from twisted.internet.interfaces import IReactorTCP
from zope.interface import implements
from twisted.python import log
class ProxyConnectError(ConnectError):
mrlesmithjr / nxlog.conf
Last active Nov 7, 2019
Windows nxlog.conf for Logstash
View nxlog.conf
## Please set the ROOT to the folder your nxlog was installed into,
## otherwise it will not start.
#define ROOT C:\Program Files\nxlog
define ROOT C:\Program Files (x86)\nxlog
define ROOT_STRING C:\Program Files (x86)\\nxlog
Moduledir %ROOT%\modules
CacheDir %ROOT%\data
Pidfile %ROOT%\data\
danriti /
Last active Jul 31, 2019
HipChat API v2 - Send a message to a room using cURL
# Set the ROOM_ID & AUTH_TOKEN variables below.
# Further instructions at
MESSAGE="Hello world!"
curl -H "Content-Type: application/json" \
junxy /
Last active May 29, 2019 — forked from dterziev/logstash.conf
Logstash 2.1.x config for log4net logs.
<!- .... ->
    <appender name="RollingLogFileAppenderLogstash" type="log4net.Appender.RollingFileAppender">
      <encoding value="utf-8" />
      <!--该目录必需有 IIS用户 写权限-->
      <file value="X:/var/log/[app_name]/logfile.log" />
      <appendToFile value="true" />
      <rollingStyle value="Date" />
      <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
athieriot / gist:5532748
Last active Jan 9, 2017
Hipchat with IRSSI
View gist:5532748

If you are adventurous, here the process to have Hipchat working in your favourite IRC client:

cube-drone / gist:7539342
Last active Dec 28, 2015
A long-form response to a tweet.
View gist:7539342

@classam hey dude, we spoke yesterday about things I should know for developing... Any resources that are helpful for learning?

Hey, Stuart. Lots of resources. So many resources that I could talk for days about them. So I'm going to:

  1. I got started with PHP - and a book called "Web Applications with PHP and MySQL" which is now starting to seriously show its age ( ) - because deploying a PHP application is very, very easy. I'm not sure if I necessarily recommend it, because PHP is a total shit-show of a language, but it's an introduction to PHP, an introduction to MySQL, an introduction to getting those things to work together... a good way to get to the point where you can call yourself a web developer very quickly.

  2. Get comfortable with the Linux command line. If you're in for a long read about user interfaces, command lines, Linux, and Windows, unpack and absorb this thing: - but the extreme tl;dr of that

View OctoDeploy.ps1
[string] $EnvironmentName,
[string] $Version,
[string] $ProjectName,
[string] $OctopusApiKey,
[string] $OctopusServerUrl,
[string] $ReleaseNotes
markrendle / azureteamcitydb.sql
Created Nov 13, 2012
Schema for TeamCity DB in SQL Azure
View azureteamcitydb.sql
This script is published only as a reference.
No warranty is implied or offered.
If you use this and bad things happen, it's not my fault.
/****** Object: Table [dbo].[action_history] Script Date: 13/11/2012 16:12:11 ******/
You can’t perform that action at this time.