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
/etc/network/interfaces | |
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
source /etc/network/interfaces.d/* | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback |
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
How to get into Docker for MAC to adjust DNS: | |
- docker run -it --privileged --pid=host ubuntu:latest nsenter -t 1 -m -u -n -i 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
Note: I wasn't (yet) able to get this to work, but adding here so maybe someone else gets further: | |
- get your host name for the API .. something like COMPANYNAME.hipchat.com | |
- create an oauth token for your user through the hipchat web UI, lets say it is OAUTHKEY with all permissions | |
- find an image you want to use for your room avatar and get the base64 encoded version using a tool like: | |
https://www.base64-image.de/ | |
- save the image to with the below contents, let's say as avatar.json: | |
{ "avatar" : "base64encodinghere" } |
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
var http = require('http'); | |
const PORT=7001; | |
function handleRequest(req, res){ | |
console.log(req.connection.remoteAddress + " " + req.method + " " + req.url); | |
res.statusCode = 400; | |
res.end("This registry no longer supported, see http://userpage"); // update userpage to instructions of where to use now | |
} | |
var server = http.createServer(handleRequest); |
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
xxx's are to protect the innocent | |
time="2015-10-22T19:10:07.859041867Z" level=debug msg="authorizing request"... | |
time="2015-10-22T19:10:07.859144898Z" level=debug msg=GetImageLayer... | |
time="2015-10-22T19:10:07.859212716Z" level=debug msg="(*layerInfoCache).Fetch... | |
time="2015-10-22T19:10:07.859263105Z" level=debug msg="(*layerStore).Fetch... | |
time="2015-10-22T19:10:07.892128979Z" level=info msg="s3.GetContent(... | |
time="2015-10-22T19:10:07.964998121Z" level=info msg="s3.Stat(... | |
time="2015-10-22T19:10:11.328120032Z" level=info msg="s3.Stat(... | |
time="2015-10-22T19:10:11.328204918Z" level=info msg="(*layerInfoCache).Fetch... |
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
http://currentmillis.com/ |
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
http://stackoverflow.com/questions/19302129/wildcard-over-ssh-not-working |
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
./gradlew -q subproject:dependencyInsight --dependency group.modulename | |
./gradle -q subproject:dependencies --configuration runtime |
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
wget http://downloads.sourceforge.net/project/cyclops-group/jmxterm/0.2/jmxterm-0.2-uber.jar | |
a@a:~$ java -jar jmxterm-0.2-uber.jar | |
Welcome to JMX terminal. Type "help" for available commands. | |
?$ open localhost:8076 | |
Connection to localhost:8076 is opened | |
>$ bean java.lang:type=Memory | |
bean is set to java.lang:type=Memory | |
>$ run gc | |
calling operation gc of mbean java.lang:type=Memory |
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
// trying to use a val (what I'd like to do somehow) | |
try { | |
val someThing = getSomeThingThatCouldThrowException() | |
} | |
finally { | |
if (someThing != null) someThing.close() | |
} | |
// foreced to use a var (what works) | |
var something = null |
NewerOlder