Skip to content

Instantly share code, notes, and snippets.

{
"meta" : {
"view" : {
"id" : "jxy9-yhdk"
"columns" : [ {
"id" : -1,
"format" : { },
"flags" : [ "hidden" ]
}],
"grants" : [ {
compilation:
cloud_properties: {}
network: mysql1
reuse_compilation_vms: true
workers: 4
director_uuid: c9ff6012-3899-4540-bca1-77e05f5a32d0
disk_pools:
- cloud_properties: {}
disk_size: 100000
name: mysql-persistent-disk
---
name: cf-rabbitmq
director_uuid: <%= `bosh status --uuid`.strip %>
releases:
- name: cf-rabbitmq
version: latest
- name: routing
version: 0.136.0
- name: syslog
@Omnipresent
Omnipresent / libgs_install.sh
Created April 3, 2016 13:59 — forked from masbog/libgs_install.sh
Installing ghostscript 9 CentOS 6.5 with shared Library
curl -O http://downloads.ghostscript.com/public/ghostscript-9.14.tar.gz &&
tar -xzf ghostscript-9.14.tar.gz &&
cd ghostscript-9.14 &&
./configure &&
make install &&
make so &&
cp ghostscript-9.14/sobin/libgs.so.9.14 /usr/lib &&
ln -s /usr/lib/libgs.so.9.14 /usr/lib/libgs.so &&
mkdir -p /etc/ld.so.conf.d/ &&
echo "/usr/lib/libgs.so" > /etc/ld.so.conf.d/libgs.conf &&
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Actionable emails e.g. reset password</title>
<link href="styles.css" media="all" rel="stylesheet" type="text/css" />
</head>
<body itemscope itemtype="http://schema.org/EmailMessage">
<div id="map_wrapper">
<div data-sly-use.ev="Evernote"
class="mapping"
title="${ev.title || ''}"
data-emptytext="Evernote Asset"
id="${ev.googleClass || ''}"
>
</div>
</div>
@Omnipresent
Omnipresent / Foo.java
Last active August 29, 2015 14:24
How can values in a JS array be populated from a Java method returning a list?
//getters of java class
//returns [0] = "something, -33.89, 151.2" [1] = "beach, -33.9, 15.02" etc.
public List<String> getVals() {
return vals;
}
public String getGoogleClass() {
if (vals.size() == 0)
return "";
item = "Jalapeño" #does not work - gives BAD URL error
item = "Jalapeno" #does work
client.shared.get("myapi/#{item}") do |result|
if result.success?
block.call(result.object)
else
puts result.error.to_s
end
end