I hereby claim:
- I am mnadel on github.
- I am mnadel (https://keybase.io/mnadel) on keybase.
- I have a public key whose fingerprint is 026C 37B7 178B 36E9 87B0 2765 AA7A EA3E 31CC 9983
To claim this, I am signing this object:
| import io.netty.buffer.Unpooled; | |
| import io.netty.channel.ChannelFutureListener; | |
| import io.netty.channel.ChannelHandlerAdapter; | |
| import io.netty.channel.ChannelHandlerContext; | |
| import io.netty.channel.ChannelInboundHandlerAdapter; | |
| import io.netty.handler.codec.http.*; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import java.nio.charset.Charset; |
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "sync" | |
| "fmt" | |
| ) | |
| func main() { | |
| ch := make(chan int) | |
| var wg sync.WaitGroup |
| curl -s -u "PasswordIsAuthToken:{\"token\":\"$UD_AUTH_TOKEN\"}" $UD_SERVER/rest/agent/all \ | |
| | jq '.[] | {name} | select(.status != "ONLINE")' \ | |
| | grep name \ | |
| | awk 'BEGIN { FS = "\"" } { print $4 }' |
| #!/bin/bash | |
| # | |
| # tomcat7 This shell script takes care of starting and stopping Tomcat | |
| # | |
| # chkconfig: - 80 20 | |
| # | |
| ### BEGIN INIT INFO | |
| # Provides: tomcat | |
| # Required-Start: $network $syslog | |
| # Required-Stop: $network $syslog |
| #!/usr/bin/env bash | |
| MYMAC=$(/usr/sbin/networksetup -getmacaddress Wi-Fi | grep -oE "[a-zA-Z0-9]{2}:([a-zA-Z0-9]{2}:?)+") | |
| if [ "$1" == "--help" ] || [ $# -gt 1 ]; then | |
| echo "usage: $(basename $0) [--random|--orig]" | |
| exit 1 | |
| fi | |
| if [ $# -eq 0 ] || [ "$1" == "--random" ]; then |
| #!/usr/bin/env ruby | |
| require "aws-sdk-s3" | |
| bucket = Aws::S3::Resource.new.bucket(ARGV[0]) | |
| bucket.objects().each do |obj| | |
| puts "#{obj.size} #{obj.key} #{obj.last_modified}" | |
| end |
| #!/usr/bin/env python | |
| import sys | |
| import argparse | |
| parser = argparse.ArgumentParser(description="du your s3") | |
| parser.add_argument("--max-depth", type=int, help="max depth to report") | |
| parser.add_argument("--raw", action="store_true", help="do not pretty print output") | |
| args = parser.parse_args() |
| import org.apache.commons.lang3.Validate; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import java.util.concurrent.Callable; | |
| /** | |
| * A database session and transaction-aware Callable | |
| */ | |
| class DatabaseCallable<T> implements Callable<T> |
| C:\> git config --global core.editor "C:/Progra~2/Notepad++/notepad++.exe -multiInst -nosession -noPlugin """$*"""" |