Skip to content

Instantly share code, notes, and snippets.

@linickx
linickx / 01.configure
Created March 13, 2013 18:29
build results for mediatomb (on imac)
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... configure_aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-apple-darwin12.2.1
checking host system type... x86_64-apple-darwin12.2.1
@linickx
linickx / MBP
Last active December 14, 2015 22:08
Post the brew --config and brew doctor for those machines.
[w:11] homebrew $brew --config
HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew
HEAD: 3531460825aed558858ad6b6d2aa82e0da315ed3
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.8.2-x86_64
Xcode: 4.6
CLT: 4.6.0.0.1.1358221012
@linickx
linickx / rktest.php
Created July 24, 2013 20:32
example wordpress_logged_in for root-cookie
<?php
# Either load WordPress : http://codex.wordpress.org/Integrating_WordPress_with_Your_Website
# or Manually define your url like...
$siteurl = "http://www.linickx.com/wordpress";
define( 'COOKIEHASH', md5( $siteurl ) );
$cookiename = "wordpress_logged_in_" . COOKIEHASH;
@linickx
linickx / example.xml
Last active August 21, 2016 16:05
learning syslog-ng patterndb
<patterndb version='4' pub_date='2010-10-17'>
<ruleset name='ssh' id='123456678'>
<pattern>ssh</pattern>
<rules>
<rule provider='me' id='182437592347598' class='system'>
<patterns>
<pattern>Accepted @ESTRING:SSH.AUTH_METHOD: @for @ESTRING:SSH_USERNAME: @from @ESTRING:SSH_CLIENT_ADDRESS: @port @NUMBER:SSH_PORT_NUMBER:@ ssh2</pattern>
</patterns>
<examples>
<example>
@linickx
linickx / broken1.xml
Last active December 31, 2015 20:18
Playing is syslog-ng patterns (quotes and bluecoat)
<patterndb version='4' pub_date='2013-12-17'>
<ruleset name='bluecoat' id='dd001'>
<pattern>bluecoat</pattern>
<rules>
<rule provider='linickx' id='nbdd001' class='system'>
<patterns>
<pattern>@NUMBER:BC_HOUR:@:@NUMBER:BC_MIN:@:@NUMBER:BC_SEC:@ @NUMBER:BC_TIME_TAKEN:@ @IPv4:BC_CLIENT_ADDRESS:@ - - - @ESTRING:BC_ACTION: @ "</pattern>
</patterns>
<examples>
<example>
@linickx
linickx / convertmac.py
Last active March 3, 2021 15:29
Python and MAC addresses
#!/usr/bin/env python
# My Post: http://www.linickx.com/3970/python-and-mac-addresses
# REF: http://craigbalfour.blogspot.co.uk/2008/10/normalizing-mac-address-string.html
# REF http://www.cyberciti.biz/faq/python-command-line-arguments-argv-example/
# Lib
import sys, getopt
@linickx
linickx / atom.xml
Last active August 29, 2015 14:15
The first few lines of feeds
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>LINICKX.com</title><link href="http://www.linickx.com/" rel="alternate"></link><link href="http://www.linickx.com/feed/atom" rel="self"></link><id>http://www.linickx.com/</id><updated>2015-02-15T18:22:00+00:00</updated><entry><title>CSS Styling Nginx Directory Listings</title><link href="http://www.linickx.com/css-styling-nginx-directory-listings" rel="alternate"></link><updated>2015-02-15T18:22:00+00:00</upda
@linickx
linickx / example_fail_output.txt
Last active August 29, 2015 14:15
Provides Custom URLs for FEEDS #1625
(pelican-dev)linickx:1625 nick$ pelican ./content/
ERROR: Skipping pages/jinja2_template.html: could not find information about 'title'
CRITICAL: [Errno 21] Is a directory: '/Users/nick/Documents/Temp/1625/output/feed'
(pelican-dev)linickx:1625 nick$

Keybase proof

I hereby claim:

  • I am linickx on github.
  • I am linickx (https://keybase.io/linickx) on keybase.
  • I have a public key ASDk_u6nQodqu08rbgg5QjQaZ4YAFh5ArJ8aJxYtIYoZMAo

To claim this, I am signing this object:

@linickx
linickx / cisco_decrypt.py
Created August 31, 2017 16:12
cisco_decrypt.py
#!/usr/bin/env python
# coding=utf-8
"""
My version of cisco_decrypt.py
Version 1.0 - Nick Bettison - linickx.com
USAGE:
------