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
create table oauth_client_details ( | |
client_id VARCHAR(255) PRIMARY KEY, | |
resource_ids VARCHAR(255), | |
client_secret VARCHAR(255), | |
scope VARCHAR(255), | |
authorized_grant_types VARCHAR(255), | |
web_server_redirect_uri VARCHAR(255), | |
authorities VARCHAR(255), | |
access_token_validity INTEGER, | |
refresh_token_validity INTEGER, |
import groovy.json.JsonSlurper | |
import groovy.xml.MarkupBuilder | |
def jsonString = "{" + | |
" \"result\": [" + | |
" {" + | |
" \"Name\": \"John\"," + | |
" \"Department\": \"001\"" + | |
" }," + | |
" {" + |
StockPrices = new Mongo.Collection("StockPrices") | |
if (Meteor.isClient) { | |
Template.body.helpers({ | |
stockPrices: function () { | |
return StockPrices.find({}, {sort: {tlong: -1}}); | |
} | |
}); |
<!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"> |
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
statsd: | |
image: hopsoft/graphite-statsd | |
ports: | |
- 8080:80 | |
- 2003-2004:2003-2004 | |
- 2023-2024:2023-2024 | |
- 8125:8125/udp | |
- 8126:8126 |
static { | |
HttpsURLConnection.setDefaultHostnameVerifier((s, sslSession) -> true); | |
TrustManager[] trustManagers = new TrustManager[]{ | |
new X509TrustManager() { | |
@Override | |
public void checkClientTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException { |
find . -name '*.txt' | xargs wc -l |
aws rds modify-db-instance --db-instance-identifier ${db-identifier} --master-user-password ${pwd} |
enum class Foo { | |
HELLO, | |
WORLD, | |
// | |
; | |
var i = 0 | |
} |