Skip to content

Instantly share code, notes, and snippets.

View go-nsq-producer-test.go
package main
import (
"log"
"time"
"github.com/bitly/go-nsq"
)
const (
View com.fix.local.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.fix.local</string>
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/discoveryutil</string>
<string>activedirectory</string>
View NSFileManager+DoNotBackup.h
@interface NSFileManager (DoNotBackup)
- (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL;
@end
View random_agent.py
#!/usr/bin/env python
# A simple demo of a random acting agent which terminates if he found
# food. The amount of attempts will be printed to stdout
# 01.11.12 M. Bittorf <info@coding-minds.com>
# 16.11.12 M. Bittorf <info@coding-minds.com> (updated)
# 18.12.12 M. Bittorf <info@coding-minds.com> (simplified)
import random
import socket
import sys
@CodingMinds
CodingMinds / modified_scilab_sockets.sci
Created Dec 14, 2012
modified scilab socket library functions
View modified_scilab_sockets.sci
prot=funcprot()
funcprot(0)
function mat=SOCKET_read(id)
mat=[];
cmd=["set tclsocketlong 0;";
"set response 0;";
"while {$tclsocketlong >= 0 || $response != 1} {";
"set tclsocketlong [gets $tclsocket"+string(id)+" tclsocketline];";
"if {$tclsocketlong >= 0} {";
View modified-auth-to-video.py
import numpy as np
import matplotlib.pyplot as plt
import pylab
# color palette
from matplotlib import cm
from logsparser.lognormalizer import LogNormalizer as LN
import GeoIP
normalizer = LN('/usr/share/normalizers')
auth_logs = open('/var/log/auth.log', 'r')
@CodingMinds
CodingMinds / weekly_report.tex
Created Apr 20, 2012
Simple template for personal BaSys project reports.
View weekly_report.tex
% Author: GEEK1
% License: CC BY 3.0
% Description: Simple template for personal BaSys project reports.
% See also: http://www.basys.fh-frankfurt.de/
\documentclass[12pt]{scrartcl}
\usepackage[ngerman]{babel,hyperref}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[german=quotes]{csquotes}
@CodingMinds
CodingMinds / GPL.md
Created Apr 15, 2012 — forked from jnrbsn/GPL.md
A Markdown-formatted GPL for your GitHub projects.
View GPL.md

GNU GENERAL PUBLIC LICENSE

Version 3, 29 June 2007

Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>

Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

@CodingMinds
CodingMinds / hack.sh
Created Apr 14, 2012 — forked from erikh/hack.sh
OSX For Hackers
View hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#