Skip to content

Instantly share code, notes, and snippets.

@Daenks
Daenks / _.md
Last active August 29, 2015 14:17 — forked from klange/_.md

Since this is on Hacker News and reddit...

  • No, I don't distribute my résumé like this. A friend of mine made a joke about me being the kind of person who would do this, so I did (the link on that page was added later). My actual résumé is written in BSD mandoc.
  • I apologize for the use of _t in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".
  • Since people kept complaining, I've fixed the assignments of string literals to non-const char *s.
  • My use of type * name, however, is entirely intentional.
  • If you're using an older compiler, you might have trouble with the anonymous unions and the designated initializers - I think gcc 4.4 requires some extra braces to get them working together. Anything reasonably recent should work fine. Clang and gcc (newer than 4.4, at
{
"title": "SexiBoard:Snapshots",
"services": {
"query": {
"list": {
"0": {
"query": "\"Create snapshot request\"",
"alias": "",
"color": "#1F78C1",
"id": 0,
{
"title": "SexiBoard:Kommandantur",
"services": {
"query": {
"list": {
"0": {
"id": 0,
"type": "topN",
"query": "esx.problem.*",
"alias": "",
{
"title": "SexiBoard:vMotionRate",
"services": {
"query": {
"list": {
"0": {
"query": "vmotion AND pre-copy AND mbps:>800",
"alias": "vmotion rate > 800MBps",
"color": "#7EB26D",
"id": 0,
{
"title": "SexiBoard:quiescing",
"services": {
"query": {
"list": {
"0": {
"query": "\"Quiesced snapshots are not supported\"",
"alias": "",
"color": "#7EB26D",
"id": 0,
@Daenks
Daenks / gist:14fefd7df81a07309e07
Last active March 31, 2016 01:45
Check haveibeenpwned.com's breach repository for an exchange 2007+ environment (requires PoweShell 3+ and Exchange Module Loaded)
Get-Mailbox -ResultSize Unlimited | ForEach-Object { }
$Mailboxes = Get-Mailbox -ResultSize Unlimited
$Results = @()
foreach ($mailbox in $Mailboxes)
{
$s = $mailbox.PrimarySmtpAddress.ToString() -replace "@","%40"
$r = $null
$r = Invoke-WebRequest -URI "https://haveibeenpwned.com/api/v2/breachedaccount/$($s)" -Method GET -UserAgent "PsBreachFinder" -ErrorAction SilentlyContinue
if ($r -ne $null)
Jun 3 2015 20:06:00 | Cannot open banned log file banned.txt
Jun 3 2015 20:06:00 | [room.bof (1114)] LoadRoomData couldn't open kochoh.roo!!!
Jun 3 2015 20:06:00 | [room.bof (1115)] C_RoomSize can't operate on non-room 0,0
Jun 3 2015 20:06:00 | [room.bof (1116)] C_First object 57 can't take First of a non-list 0,0
Jun 3 2015 20:06:00 | [room.bof (1117)] C_Nth object 57 can't take Nth of a non-list 0,0
Jun 3 2015 20:06:00 | [room.bof (1118)] C_Nth object 57 can't take Nth of a non-list 0,0
Jun 3 2015 20:06:00 | [room.bof (1119)] C_Nth object 57 can't take Nth of a non-list 0,0
Jun 3 2015 20:06:00 | [room.bof (1121)] C_Nth object 57 can't take Nth of a non-list 0,0
Jun 3 2015 20:06:00 | [room.bof (1114)] LoadRoomData couldn't open marheal.roo!!!
Jun 3 2015 20:06:00 | [room.bof (1115)] C_RoomSize can't operate on non-room 0,0
@Daenks
Daenks / gist:194a1d505b635727a7d6
Created June 9, 2015 17:50
Regular Expression for URLs and Emails
\b(?:(?:(?:https?|ftp|file)://|www\.|ftp\.)[-A-Z0-9+&@#/%?=~_|$!:,.;]*[-A-Z0-9+&@#/%=~_|$]|((?:mailto:)?[A-Z0-9._%+-]+@[A-Z0-9._%-]+\.[A-Z]{2,4})\b)|"(?:(?:https?|ftp|file)://|www\.|ftp\.)[^"\r\n]+"?|'(?:(?:https?|ftp|file)://|www\.|ftp\.)[^'\r\n]+'?
must be a case-insensitive search (i).
@Daenks
Daenks / gist:8905d3e0bc43db4993eb
Created June 24, 2015 13:30
logstash exception
Jun 24 08:28:31 *HOSTNAME* logstash[117760]: Exception in thread "elasticsearch[logstash-*HOSTNAME*-117760-2548][generic][T#1]" java.lang.NullPointerException
Jun 24 08:28:31 *HOSTNAME* logstash[117760]: at org.elasticsearch.action.bulk.TransportBulkAction.setResponseFailureIfIndexMatches(TransportBulkAction.java:178)
Jun 24 08:28:31 *HOSTNAME* logstash[117760]: at org.elasticsearch.action.bulk.TransportBulkAction.access$100(TransportBulkAction.java:65)
Jun 24 08:28:31 *HOSTNAME* logstash[117760]: at org.elasticsearch.action.bulk.TransportBulkAction$1.onFailure(TransportBulkAction.java:137)
Jun 24 08:28:31 *HOSTNAME* logstash[117760]: at org.elasticsearch.action.support.TransportAction$ThreadedActionListener$2.run(TransportAction.java:117)
Jun 24 08:28:31 *HOSTNAME* logstash[117760]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
Jun 24 08:28:31 *HOSTNAME* logstash[117760]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
Jun 24 08:28:31 *H
@Daenks
Daenks / gist:96e564523e8f49daa8bd
Created July 14, 2015 13:00
Meridian 59: Insurrection - Readme.txt
Meridian 59(TM) Insurrection
Readme (07 July 1998)
-----------------------------------------------
Table of Contents
-----------------------------------------------
1. System Requirements
2. Welcome
3. What's in Meridian 59