I hereby claim:
- I am elliot on github.
- I am elliotanderson (https://keybase.io/elliotanderson) on keybase.
- I have a public key whose fingerprint is 6762 80CB 263C 1F4A B71B B01D 0F2D 4C22 5CB0 FC38
To claim this, I am signing this object:
| 1. Suspend: Ctrl+z | |
| 2. Resume: bg | |
| 3. Disown: disown %1 | |
| 4. Launch screen | |
| 5. Find pid: prep BLAH | |
| 6. Reparent process: reptyr ### |
| # >= Java 8 Update 131 | |
| # UseCGroupMemoryLimitForHeap - discover limits via cgroups | |
| # MaxRAMFraction - use it all | |
| java -server -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1 |
I hereby claim:
To claim this, I am signing this object:
| # Monitor DNS queries | |
| sudo tcpdump -i en0 -s 5000 -n port 53 |
| -- These queries have been tested on a Postgres 9.5 Cluster running on RDS | |
| -- Show queries running longer than 2 minutes | |
| SELECT now() - query_start as "runtime", usename, datname, waiting, state, query | |
| FROM pg_stat_activity | |
| WHERE now() - query_start > '2 minutes'::interval | |
| ORDER BY runtime DESC; | |
| -- | |
| SET application_name='%elliot%'; |
| sudo tcpdump -A -s 10240 'tcp port 10009 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | egrep --line-buffered "^........(GET |HTTP\/|POST |HEAD )|^[A-Za-z0-9-]+: " | sed -r 's/^........(GET |HTTP\/|POST |HEAD )/\n\1/g' |
| #!/usr/bin/env python | |
| # Apply recommendation from https://wiki.mozilla.org/Security/Server_Side_TLS | |
| # This Source Code Form is subject to the terms of the Mozilla Public | |
| # License, v. 2.0. If a copy of the MPL was not distributed with this | |
| # file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
| # | |
| # Contributors: | |
| # Gene Wood [:gene] |
| aws ec2 describe-instances --filters --output json \ | |
| 'Name=instance-state-name,Values=running' \ | |
| 'Name=tag:Name,Values=SSHBastion' \ | |
| 'Name=tag:Subnet,Values=public' \ | |
| | jq -r '.Reservations[].Instances[].PublicDnsName |
| ssh 10.0.0.0 "show virtual-chassis vc-port statistics member $1 $2" | tail -n 1 | awk {'print "traffic_in:"$2 " traffic_out:" $5'} |