Skip to content

Instantly share code, notes, and snippets.

@lgazo
lgazo / xwiki-hide-left.js
Created October 5, 2020 09:54
hide xwiki left panel bookmarklet
javascript:(function(){main = document.querySelector('#contentcolumn > div');main.style.left = '0%';main.style.width = '100%';left = document.querySelector('#leftPanels');left.style.right = '0%';left.style.display = 'none';})();
@lgazo
lgazo / xwiki-show-left.js
Created October 5, 2020 09:54
show xwiki left panel bookmarklet
javascript:(function(){main = document.querySelector('#contentcolumn > div');main.style.left = null;main.style.width = null;left = document.querySelector('#leftPanels');left.style.right = null;left.style.display = null;})();

Keybase proof

I hereby claim:

  • I am lgazo on github.
  • I am ladislav (https://keybase.io/ladislav) on keybase.
  • I have a public key ASAGCQvEgQm3x0F5nhFkuSWGh-f1EJFFBLmPWejZ9HisCQo

To claim this, I am signing this object:

@lgazo
lgazo / gist:7486b52028086b6d852b
Created June 24, 2015 07:06
docker compose seges nginx template
shopdata:
image: acme/shop-data
shopservice:
image: acme/shop
environment:
- SERVICE_NAME=shop
- SERVICE_TAGS=fancy,api
router:
@lgazo
lgazo / gist:3a4ca2b88b330f9fe443
Created June 24, 2015 06:59
consul template configuration
consul = "consul.service.consul:8500"
template {
source = "/etc/consul-template/templates/shop.conf"
destination = "/etc/nginx/conf.d/shop.conf"
command = "/etc/init.d/nginx reload"
}
@lgazo
lgazo / gist:54ced7dfed553aad41d2
Created June 24, 2015 06:55
seges nginx consul template data image
FROM ubuntu:trusty
VOLUME /etc/consul-template/templates
VOLUME /etc/consul-template/conf
COPY conf/* /etc/consul-template/conf/
COPY templates/* /etc/consul-template/templates/
CMD tail -f /dev/null
@lgazo
lgazo / gist:460a739e640be720f626
Created June 24, 2015 06:51
consul template nginx shop
upstream shop {
least_conn;
{{range service "shop"}}server {{.Address}}:{{.Port}} max_fails=3 fail_timeout=60 weight=1;
{{else}}server 127.0.0.1:65535; # force a 502{{end}}
}
server {
listen 80;
server_name api.shop.com;
@lgazo
lgazo / gist:a7f24ad20ad50a60092d
Created February 18, 2015 13:10
pom - scalatest running
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.1.7-SNAPSHOT</version>
<!-- <configuration> -->
<!-- <recompileMode>incremental</recompileMode> -->
<!-- </configuration> -->
<executions>
<!-- <execution> -->
<!-- <id>scala-compile-first</id> -->
@lgazo
lgazo / gist:d6b11e889eb5f9cdc58d
Created February 18, 2015 13:08
pom - scalatest dependencies
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.11.5</version>
</dependency>
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_2.11</artifactId>
<version>2.2.4</version>
<Resource auth="Container" factory="com.sun.messaging.naming.AdministeredObjectFactory" imqAddressList="mq://localhost/direct" imqReconnectAttempts="100" name="jms/acris/generalQCF" readOnly="true" type="com.sun.messaging.QueueConnectionFactory" version="3.0"/>