Create loopback.sh
in tmp
#!/bin/bash
ensure_loop(){
num="$1"
dev="/dev/loop$num"
if test -b "$dev"; then
echo "$dev is a usable loop device."
return 0
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz |
enum class Foo { | |
HELLO, | |
WORLD, | |
// | |
; | |
var i = 0 | |
} |
aws rds modify-db-instance --db-instance-identifier ${db-identifier} --master-user-password ${pwd} |
find . -name '*.txt' | xargs wc -l |
static { | |
HttpsURLConnection.setDefaultHostnameVerifier((s, sslSession) -> true); | |
TrustManager[] trustManagers = new TrustManager[]{ | |
new X509TrustManager() { | |
@Override | |
public void checkClientTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException { |
statsd: | |
image: hopsoft/graphite-statsd | |
ports: | |
- 8080:80 | |
- 2003-2004:2003-2004 | |
- 2023-2024:2023-2024 | |
- 8125:8125/udp | |
- 8126:8126 |
Create loopback.sh
in tmp
#!/bin/bash
ensure_loop(){
num="$1"
dev="/dev/loop$num"
if test -b "$dev"; then
echo "$dev is a usable loop device."
return 0
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.16/vue.js"></script> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div id="vue"> |
StockPrices = new Mongo.Collection("StockPrices") | |
if (Meteor.isClient) { | |
Template.body.helpers({ | |
stockPrices: function () { | |
return StockPrices.find({}, {sort: {tlong: -1}}); | |
} | |
}); |
import groovy.json.JsonSlurper | |
import groovy.xml.MarkupBuilder | |
def jsonString = "{" + | |
" \"result\": [" + | |
" {" + | |
" \"Name\": \"John\"," + | |
" \"Department\": \"001\"" + | |
" }," + | |
" {" + |