Skip to content

Instantly share code, notes, and snippets.

<?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>
@CodingMinds
CodingMinds / hack.sh
Created April 14, 2012 21:09 — forked from erikh/hack.sh
OSX For Hackers
#!/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
#
@CodingMinds
CodingMinds / GPL.md
Created April 15, 2012 18:35 — forked from jnrbsn/GPL.md
A Markdown-formatted GPL for your GitHub projects.

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 / weekly_report.tex
Created April 20, 2012 00:08
Simple template for personal BaSys project reports.
% 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}
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 / modified_scilab_sockets.sci
Created December 14, 2012 21:45
modified scilab socket library functions
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} {";
#!/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
@interface NSFileManager (DoNotBackup)
- (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL;
@end
package main
import (
"log"
"time"
"github.com/bitly/go-nsq"
)
const (
.php
.html
.txt
.htm
.aspx
.asp
.js
.css
.pgsql.txt
.mysql.txt