Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
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): |
Param( | |
[Parameter(Mandatory=$true, ValueFromPipeline=$true)] | |
[string] | |
$Process, | |
[Parameter(Mandatory=$true)] | |
#[string] | |
[ValidatePattern("^(\d\.){0,1}(([0|1]\d)|(2[0-3])):[0-5]\d:[0-5]\d")] | |
$TimeSpan, |
/* DISCLAIMER | |
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 ******/ | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON |
param | |
( | |
[string] $EnvironmentName, | |
[string] $Version, | |
[string] $ProjectName, | |
[string] $OctopusApiKey, | |
[string] $OctopusServerUrl, | |
[string] $ReleaseNotes | |
) |
If you are adventurous, here the process to have Hipchat working in your favourite IRC client:
-
First, you need to install the IRSSI XMPP plugin. You can find this package in your distribution, but I advice you to use the latest version possible if you don't want this segfault errors everywhere: http://gna.org/bugs/?20487
-
The first version released after the patch fix is the 0.52-2 that you can download here: https://launchpad.net/ubuntu/+archive/primary/+files/irssi-plugin-xmpp_0.52-2_amd64.deb (No dependencies so it should work in any Debian distributions)
-
Once it's done. You have to configure IRSSI. Either via command line, either manually in the ~/.irssi/config file. I followed this thread: http://cybione.org/lists/irssi-xmpp-list/msg00339.html and it was pretty successful.
-
You can find your XMPP access on your HipChat account on this page: https://boxuk.hipchat.com/account/xmpp. Everything has a XMPP account id. Even the Rooms name. So you have to use these instead of the real names for your I
#!/bin/bash | |
# Set the ROOM_ID & AUTH_TOKEN variables below. | |
# Further instructions at https://www.hipchat.com/docs/apiv2/auth | |
ROOM_ID=XXX | |
AUTH_TOKEN=XXX | |
MESSAGE="Hello world!" | |
curl -H "Content-Type: application/json" \ |
@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:
-
I got started with PHP - and a book called "Web Applications with PHP and MySQL" which is now starting to seriously show its age ( http://shop.oreilly.com/product/9780596005436.do ) - 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.
-
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: http://www.cryptonomicon.com/beginning.html - but the extreme tl;dr of that
{ | |
"title": "Apache and Tomcat Logs", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "apache !tomcat !static", | |
"alias": "", | |
"color": "#7EB26D", | |
"id": 0, |
## 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\nxlog.pid |