IPv4 Addr | IPv6 Addr | ASn | Loc | Svc | Org |
---|---|---|---|---|---|
8.8.8.8 | 2001:4860:4860::8888 | AS15169 | Worldwide (Anycast) | Google Public DNS | |
8.8.4.4 | 2001:4860:4860::8844 | AS15169 | Worldwide (Anycast) | Google Public DNS | |
77.88.8.8 | 2a02:6b8::feed:0ff | AS13238 | Worldwide (Anycast) | Yandex.DNS | Yandex |
77.88.8.1 | 2a02:6b8:0:1::feed:0ff | AS13238 | Worldwide (Anycast) | Yandex.DNS | Yandex |
1.1.1.1 | 2606:4700:4700::1111 | AS13335 | Worldwide (Anycast) | Cloudflare-DNS | Cloudflare/APNIC |
1.0.0.1 | 2606:4700:4700::1001 | AS13335 | Worldwide (Anycast) | Cloudflare-DNS | Clou |
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/awk -f | |
# This program is a copy of guff, a plot device. https://github.com/silentbicycle/guff | |
# My copy here is written in awk instead of C, has no compelling benefit. | |
# Public domain. @thingskatedid | |
# Run as awk -v x=xyz ... or env variables for stuff? | |
# Assumptions: the data is evenly spaced along the x-axis | |
# TODO: moving average |
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
// see http://wayne-adams.blogspot.fr/2011/10/generating-minable-event-stream-with.html | |
import scala.collection.JavaConversions.asScalaBuffer | |
import scala.collection.JavaConversions.asScalaIterator | |
import com.sun.jdi.connect.Connector | |
import com.sun.jdi.event.BreakpointEvent | |
import com.sun.jdi.request.BreakpointRequest | |
import com.sun.jdi.request.EventRequest | |
import com.sun.jdi.Bootstrap | |
import com.sun.jdi.StringReference |
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
import java.io.*; | |
import java.util.*; | |
import sun.jvm.hotspot.memory.*; | |
import sun.jvm.hotspot.oops.*; | |
import sun.jvm.hotspot.debugger.*; | |
import sun.jvm.hotspot.runtime.*; | |
import sun.jvm.hotspot.tools.*; | |
import sun.jvm.hotspot.utilities.*; | |
public class DirectMemorySize extends Tool { |
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
newTerminal(){ | |
osascript 2>/dev/null <<EOF | |
tell application "System Events" | |
tell process "Terminal" to keystroke "t" using command down | |
end | |
tell application "Terminal" | |
activate | |
do script with command "cd $PWD" in window 1 | |
do script with command "$*" in window 1 | |
end tell |
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 | |
PROG_NAME=$0 | |
ACTION=$1 | |
usage() { | |
echo "Usage: $PROG_NAME {list|ping|optimal|conn|close|status}" | |
exit 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
import java.io.BufferedInputStream; | |
import java.io.BufferedOutputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.net.URL; | |
import org.msgpack.MessagePack; | |
public class MessagePackReader { | |
public static void test1() throws Exception { |
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 | |
if [ $# -eq 0 ];then | |
echo "please enter java pid" | |
exit -1 | |
fi | |
pid=$1 | |
jstack_cmd="" |
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 | |
if [ $# -eq 0 ];then | |
echo "please enter classpath dir" | |
exit -1 | |
fi | |
if [ ! -d "$1" ]; then | |
echo "not a directory" | |
exit -2 |