Skip to content

Instantly share code, notes, and snippets.

@jordansissel
jordansissel / keyboardcapture.go
Created September 26, 2017 05:08 — forked from obonyojimmy/keyboardcapture.go
go lang keyboard capture
package main
import (
"fmt"
"syscall"
//~ "time"
"unsafe"
"golang.org/x/sys/windows"
)
@jordansissel
jordansissel / 00-Sample run.txt
Last active August 4, 2016 18:09 — forked from reyjrar/logstash-config-broken.conf - Starting Point
Massive Parse Tree Failure in Logstash 5.0.0-alpha3
# Example packet:
% echo -n '<123>Aug 4 07:54:35 foo bar: { "hello": "world" }' | nc -vu 127.0.0.1 9514
% bin/logstash --version
logstash 5.0.0-alpha4
% bin/logstash -f logstash-config-broken.conf
Pipeline main started
{
curl http://tachyon.vektra.io/install.sh > it.sh && test $(openssl sha1 < it.sh) = "23fb0450b152dfaa8331dd37c3a4c13d4de9dbb8" && bash it.sh
@jordansissel
jordansissel / ec2.rb
Last active August 29, 2015 14:08 — forked from electrical/ec2.rb
require 'logstash-output-elasticsearch-ec2_jars.rb'
module LogStash::Outputs::ElasticSearch::Ec2
def self.included(base)
base.extend(self)
base.register
end
def register
#!/bin/bash
#curl -XPUT 'http://logmon.myworkplace.local:9200/_template/template_logstash/' -d '
curl -XPUT 'http://localhost:9200/_template/template_logstash/' -d '
{
"template": "logstash-*",
"settings": {
"index": {
"query": {
nightfall(~/projects/homebrew) % uname -a
Linux nightfall 2.6.35-28-generic #49-Ubuntu SMP Tue Mar 1 14:39:03 UTC 2011 x86_64 GNU/Linux
nightfall(~/projects/homebrew) % bin/brew install wget
Warning: Xcode is not installed! Builds may fail!
==> Downloading http://ftp.gnu.org/gnu/wget/wget-1.12.tar.bz2
File already downloaded and cached to /home/jls/Library/Caches/Homebrew
==> Downloading patches
######################################################################## 100.0%
==> Patching
#!/usr/bin/ruby
#
# This script installs to /usr/local only. To install elsewhere you can just
# untar https://github.com/mxcl/homebrew/tarball/master anywhere you like.
#
#
# 30th March 2010:
# Added a check to make sure user is in the staff group. This was a problem
# for me, and I think it was due to me migrating my account over several
# versions of OS X. I cannot verify that for sure, and it was tested on