This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host * | |
ForwardAgent yes | |
ProxyCommand ~/bin/ssh-proxy.sh %h %p username@jump-host | |
ServerAliveInterval 10 | |
ServerAliveCountMax 600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM envoyproxy/envoy:v1.5.0 | |
RUN apt-get update | |
COPY envoy.yaml /etc/envoy.yaml | |
ADD run.sh /run.sh | |
CMD /run.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- show running queries (pre 9.2) | |
SELECT procpid, age(query_start, clock_timestamp()), 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(query_start, clock_timestamp()), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package hello; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
public class MyApp1 { | |
final static Logger logger = LoggerFactory.getLogger(MyApp1.class); | |
private static void setDefaultUncaughtExceptionHandler() { | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Licensed to the Apache Software Foundation (ASF) under one or more | |
* contributor license agreements. See the NOTICE file distributed with | |
* this work for additional information regarding copyright ownership. | |
* The ASF licenses this file to You under the Apache License, Version 2.0 | |
* (the "License"); you may not use this file except in compliance with | |
* the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bootstate=0 | |
title=Loading ESXi installer | |
prefix=$img_path | |
kernel=tboot.b00 | |
#if $getVar('system_name','') != '' | |
#set $what = "system" | |
#else | |
#set $what = "profile" | |
#end if | |
kernelopt=ks=http://$server:$http_port/cblr/svc/op/ks/$what/$name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bash-completion for the upstart event-based init replacement | |
# (http://upstart.ubuntu.com / https://launchpad.net/upstart) | |
# | |
# We don't provide completion for 'init' itself for obvious reasons. | |
# Original is from: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/672067/+attachment/1765103/+files/upstart.sh | |
_upstart_conf_events() | |
{ | |
initctl list|awk '{print $1}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# memtest | |
# | |
# A general purpose memory tester script, with options for enabling extra | |
# simultaneous tests in an attempt to test the capacity of the power supply | |
# in the machine. You can find the original source of this script and | |
# additional documentation on its usage by visiting my work web page at | |
# http://people.redhat.com/~dledford/ | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Mydrive < RTanque::Bot::Brain | |
NAME = 'mydrive' | |
include RTanque::Bot::BrainHelper | |
CORNERS = [:NW, :NE, :SE, :SW] | |
TURRET_FIRE_RANGE = RTanque::Heading::ONE_DEGREE * 1.0 | |
def tick! | |
self.hide_in_corners | |
if (target = self.acquire_target) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
COLUMNS_TO_USE = 40.0 | |
histo = [] | |
0.upto(9) { |i| histo[i] = 0 } | |
field_to_parse = ARGV.shift.to_i | |
ARGF.each do |line| | |
fields = line.split(/,/) |