Skip to content

Instantly share code, notes, and snippets.

🚀
Perf Testing all the Things!

Sebastian Cohnen tisba

🚀
Perf Testing all the Things!
Block or report user

Report or block tisba

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tisba
tisba / README.md
Created Dec 28, 2016 — forked from blackjid/README.md
How configure your raspberry pi with dashing to have a awesome dashboard
View README.md

Raspberry pi dashboard

This is what we did to setup a few dashboards at platanus

You'll need

  • Raspberry Pi
  • Dashing Service
  • Wifi stick (optional)
View gist:51f05bd80f384d6596a3
openssl s_client -connect google.de:443 -debug
CONNECTED(00000003)
write to 0x7faf99e00160 [0x7faf9a801000] (318 bytes => 318 (0x13E))
0000 - 16 03 01 01 39 01 00 01-35 03 03 3c 69 2a c1 92 ....9...5..<i*..
0010 - 63 9e 99 d9 b4 8d 9a a3-a2 eb a1 b3 ea 8a b8 12 c...............
0020 - f3 6b 2f ba 18 dc 13 ac-dd 2b 5b 00 00 b6 c0 30 .k/......+[....0
0030 - c0 2c c0 28 c0 24 c0 14-c0 0a 00 a5 00 a3 00 a1 .,.(.$..........
0040 - 00 9f 00 6b 00 6a 00 69-00 68 00 39 00 38 00 37 ...k.j.i.h.9.8.7
0050 - 00 36 00 88 00 87 00 86-00 85 c0 32 c0 2e c0 2a .6.........2...*
0060 - c0 26 c0 0f c0 05 00 9d-00 3d 00 35 00 84 c0 2f .&.......=.5.../
@tisba
tisba / 00_with_user_agent.txt
Created Jul 30, 2014
nginx appears to add an automatic `Access-Control-Allow-Origin: *` based on User Agents?
View 00_with_user_agent.txt
$ curl -i --user user:secret 'https://api.example.com' -H 'User-Agent: Mozilla/5.0'
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 30 Jul 2014 17:55:43 GMT
Content-Type: application/json; charset=UTF-8
Content-Length: 2869
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Origin: https://example.com
View gist:64c3b17286374ba2926f
=INFO REPORT==== 2-Jul-2014::05:43:23 ===
tsung:(3:<0.66.0>) Can't start supervisor ! {error,
{shutdown,
{failed_to_start_child,
ts_local_mon,
{{badmatch,
{error,
eexist}},
[{ts_local_mon,
init,1,
View gist:e3a410c294e6f06f604e
def remove_sequential_spaces(value) do
# TODO how can this be expressed via pattern matching?
if String.starts_with?(value, "\"") || String.ends_with?(value, "\"") do
value
else
String.replace(value, ~r/\ {2,}/, " ")
end
end
View gist:9913992
def connect_with_retry(&block)
hosts = @hosts.dup
delay = @initial_delay
begin
hosts.push(host = hosts.shift)
http = Net::HTTP.new(host, @port)
http.open_timeout = @open_timeout
http.read_timeout = @read_timeout
http.use_ssl = @use_ssl
@tisba
tisba / config.js
Created Mar 10, 2014
Grafana 1.5.0 config.js for InfluxDB
View config.js
define(['settings'],
function (Settings) {
return new Settings({
datasources: {
influx: {
type: 'influxdb',
url: 'http://localhost:8086/db/test',
username: 'user',
@tisba
tisba / gist:8713474
Created Jan 30, 2014
Debug log for RVM issue (https://github.com/wayneeseguin/rvm/issues/2582), output of: time /usr/local/bin/zsh -c "rvm_trace_flag=1; source $HOME/.rvm/scripts/rvm" 2>&1 | tee big.log
View gist:8713474
+ 18:05:03 /Users/basti/.rvm/scripts/base:31 /Users/basti/.rvm/scripts/base:31 export __array_start rvm_path
+ 18:05:03 /Users/basti/.rvm/scripts/base:36 /Users/basti/.rvm/scripts/base:36 if[[ -n 5.0.5 ]]
+ 18:05:03 /Users/basti/.rvm/scripts/base:37 /Users/basti/.rvm/scripts/base:37 then__array_start=1
+ 18:05:03 /Users/basti/.rvm/scripts/base:41 /Users/basti/.rvm/scripts/base:41 if(( 0 == 0 ))
+ 18:05:03 /Users/basti/.rvm/scripts/base:43 /Users/basti/.rvm/scripts/base:43 then[[ -n 022 ]]
+ 18:05:03 /Users/basti/.rvm/scripts/base:44 /Users/basti/.rvm/scripts/base:44 thenrvm_rvmrc_files=( /etc/rvmrc /Users/basti/.rvmrc )
+ 18:05:03 /Users/basti/.rvm/scripts/base:45 /Users/basti/.rvm/scripts/base:45 then if[[ -n /Users/basti ]]
+ 18:05:03 /Users/basti/.rvm/scripts/base:45 /Users/basti/.rvm/scripts/base:45 then if cmdand[[ /Users/basti/.rvmrc -ef /Users/basti/.rvmrc ]]
+ 18:05:03 /User
@tisba
tisba / big.log
Created Jan 29, 2014
Debug log for RVM issue (https://github.com/wayneeseguin/rvm/issues/2582), output of: time /usr/local/bin/zsh -c "rvm_trace_flag=1; source $HOME/.rvm/scripts/rvm" 2>&1 | tee big.log
View big.log
+/Users/basti/.rvm/scripts/base:28> [[ -z 5.0.5 ]]
+/Users/basti/.rvm/scripts/base:35> export __array_start rvm_path
+/Users/basti/.rvm/scripts/base:40> [[ -n 5.0.5 ]]
+/Users/basti/.rvm/scripts/base:41> __array_start=1
+/Users/basti/.rvm/scripts/base:45> (( 0 == 0 ))
+/Users/basti/.rvm/scripts/base:47> [[ -n 022 ]]
+/Users/basti/.rvm/scripts/base:48> rvm_rvmrc_files=( /etc/rvmrc /Users/basti/.rvmrc )
+/Users/basti/.rvm/scripts/base:49> [[ -n /Users/basti ]]
+/Users/basti/.rvm/scripts/base:49> [[ /Users/basti/.rvmrc -ef /Users/basti/.rvmrc ]]
+/Users/basti/.rvm/scripts/base:50> rvm_rvmrc_files+=( /Users/basti/.rvmrc )
You can’t perform that action at this time.