Based on rosettacode.org's HTTPS/Authenticated#Go.
Run:
curl -ks https://gist.github.com/raw/4375261/run.sh | sh
The client will respond with the message from the server:
Goodbye, World!
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
Based on rosettacode.org's HTTPS/Authenticated#Go.
Run:
curl -ks https://gist.github.com/raw/4375261/run.sh | sh
The client will respond with the message from the server:
Goodbye, World!
| java -cp . logstash.runner agent -f logstash.conf -- web --backend elasticsearch:///?local |
| #!/bin/bash | |
| # see: http://blog.tomtung.com/2009/11/cowsay-fortune | |
| # http://www.commandlinefu.com/commands/view/3584/remove-color-codes-special-characters-with-sed | |
| # https://github.com/busyloop/lolcat | |
| # https://github.com/dorentus/mruby-lolcat-bin | |
| # | |
| # requires `fortune`, `cowsay`, | |
| # and ruby gem `lolcat` or its mruby version equivalent | |
| export LANG="en_US.UTF-8" |
| #! /bin/sh | |
| # /etc/init.d/BootPython | |
| ### BEGIN INIT INFO | |
| # Provides: Runs a Python script on startup | |
| # Required-Start: BootPython start | |
| # Required-Stop: BootPython stop | |
| # Default-Start: 2 3 4 5 | |
| # Default-stop: 0 1 6 | |
| # Short-Description: Simple script to run python program at boot |
Incorporates changes by 0mnius.
The intent is to define terse, standards-supported names for AWS regions.
| #!/bin/bash | |
| VERSION="2.16.4" | |
| apt-get update && apt-get install -y dkms | |
| wget "http://sourceforge.net/projects/e1000/files/ixgbevf stable/${VERSION}/ixgbevf-${VERSION}.tar.gz" | |
| tar -C /usr/src -zxvf ixgbevf-${VERSION}.tar.gz | |
| rm -f ixgbevf-${VERSION}.tar.gz |
| var AWS = require('aws-sdk'); | |
| var http = require('http'); | |
| var httpProxy = require('http-proxy'); | |
| var express = require('express'); | |
| var bodyParser = require('body-parser'); | |
| var stream = require('stream'); | |
| if (process.argv.length != 3) { | |
| console.error('usage: aws-es-proxy <my-cluster-endpoint>'); | |
| process.exit(1); |
| #!/bin/bash | |
| # see: http://blog.tomtung.com/2009/11/cowsay-fortune | |
| # http://www.commandlinefu.com/commands/view/3584/remove-color-codes-special-characters-with-sed | |
| # https://github.com/busyloop/lolcat | |
| # https://github.com/dorentus/mruby-lolcat-bin | |
| # | |
| # requires `fortune`, `cowsay`, | |
| # and ruby gem `lolcat` or its mruby version equivalent | |
| export LANG="en_US.UTF-8" |