Skip to content

Instantly share code, notes, and snippets.

Avatar

Jordan Sissel jordansissel

View GitHub Profile
@jordansissel
jordansissel / keyboardcapture.go
Created Sep 26, 2017 — forked from obonyojimmy/keyboardcapture.go
go lang keyboard capture
View keyboardcapture.go
package main
import (
"fmt"
"syscall"
//~ "time"
"unsafe"
"golang.org/x/sys/windows"
)
@jordansissel
jordansissel / 00-Sample run.txt
Last active Aug 4, 2016 — forked from reyjrar/logstash-config-broken.conf - Starting Point
Massive Parse Tree Failure in Logstash 5.0.0-alpha3
View 00-Sample run.txt
# 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
{
View gist:26d74ddfe89a9fe196e4
curl http://tachyon.vektra.io/install.sh > it.sh && test $(openssl sha1 < it.sh) = "23fb0450b152dfaa8331dd37c3a4c13d4de9dbb8" && bash it.sh
View 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
View gist:6469980
#!/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": {
View gistdeck.md
View build it.
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
View install_homebrew.rb
#!/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
You can’t perform that action at this time.