I hereby claim:
- I am parsnips on github.
- I am parsnips (https://keybase.io/parsnips) on keybase.
- I have a public key whose fingerprint is E701 7C98 85F8 971E CD5A 2D6A D6BC E70F E820 20BB
To claim this, I am signing this object:
aws logs start-query \ | |
--profile clientProfile \ | |
--log-group-name MY-LOG_GROUP \ | |
--start-time `date -v-30M "+%s"` \ | |
--end-time `date "+%s"` \ | |
--query-string 'fields @message | filter @message like /my query/' |
I hereby claim:
To claim this, I am signing this object:
function setjdk() { | |
if [ $# -ne 0 ]; then | |
removeFromPath '/System/Library/Frameworks/JavaVM.framework/Home/bin' | |
if [ -n "${JAVA_HOME+x}" ]; then | |
removeFromPath $JAVA_HOME | |
fi | |
export JAVA_HOME=`/usr/libexec/java_home -v $@` | |
export PATH=$JAVA_HOME/bin:$PATH | |
fi | |
} |
#!/bin/bash | |
set -e | |
CLUSTER=$1 | |
aws ecs list-container-instances --cluster $CLUSTER | jq .containerInstanceArns[] | tr -d \" | xargs -I{} aws ecs describe-container-instances --cluster $CLUSTER --container-instance {} | jq .containerInstances[].ec2InstanceId | tr -d \" > cluster.txt | |
aws autoscaling describe-auto-scaling-groups --auto-scaling-group-names $CLUSTER | jq -r ".AutoScalingGroups | .[] | .Instances | .[] | .InstanceId" | tr -d \" > asg.txt | |
sort cluster.txt cluster.txt asg.txt | uniq -u | xargs -I{} aws ec2 terminate-instances --instance-ids {} |
horrific fumes of | |
canine fury infiltrate | |
my nasal canals. | |
dog gas explosions | |
well past midnight instigate | |
poetic glory. | |
so many haikus | |
beautiful gaseous glory |
using System; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Security.Cryptography; | |
using System.Text; | |
using System.Web; |
using System.Collections.Generic; | |
using ZeroMQ; | |
namespace Parsnips.ZeroMQ | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
using (var context = ZmqContext.Create()) |
answer(); | |
var date = ask('Please say a date.', {choices: 'http://path/to/date.xml'}); | |
log("*** " + date.value + " ***"); | |
say('You said ' + date.value); | |
var time = ask('Now, say a time.', {choices: 'http://path/to/time.xml'}); | |
log("*** " + time.value + " ***"); | |
say('You said ' + time.value); |
Test Emacs Gisting Capability | |
------------------- | |
This is how a gist works. |