Skip to content

Instantly share code, notes, and snippets.

@iperdomo
iperdomo / build-log.txt
Created October 8, 2019 09:44
Build output of build-node-mapnik.sh
# https://gist.github.com/iperdomo/2eb4ff45486651ef2c521320ab1aa008
Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [971 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
@iperdomo
iperdomo / build-node-mapnik.sh
Created October 8, 2019 09:32
Script to be executed on ubuntu:xenial
#!/usr/bin/env bash
set -eu
set -o pipefail
apt-get update
apt-get install -y --no-install-recommends \
build-essential \
pkg-config \
@iperdomo
iperdomo / calva.diff
Last active December 6, 2018 12:56
Connection timeout
diff --git a/calva/state.ts b/calva/state.ts
index 447e46a..f7a748e 100644
--- a/calva/state.ts
+++ b/calva/state.ts
@@ -47,7 +47,8 @@ function config() {
projectRootDirectory: projectRootDirectoryConfig.replace(/^\/|\/$/g, ""),
jokerPath: configOptions.get("jokerPath"),
useJokerOnWSL: configOptions.get("useJokerOnWSL"),
- syncReplNamespaceToCurrentFile: configOptions.get("syncReplNamespaceToCurrentFile")
+ syncReplNamespaceToCurrentFile: configOptions.get("syncReplNamespaceToCurrentFile"),
@iperdomo
iperdomo / report-server.log
Created October 9, 2018 10:57
ReportServer 3.0.4 on Tomcat 9 / JRE 11
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
09-Oct-2018 10:44:45.178 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/9.0.12
09-Oct-2018 10:44:45.185 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Sep 4 2018 22:13:41 UTC
09-Oct-2018 10:44:45.186 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 9.0.12.0
09-Oct-2018 10:44:45.186 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
09-Oct-2018 10:44:45.187 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.18.12-arch1-1-ARCH
09-Oct-2018 10:44:45.188 INFO [main] org.apache.catalina.startu
#!/usr/bin/env bash
set -eu
instance_id="${1}"
filename="${2}"
aws_access_key_id=$(awk -F'"' '/aws_identifier/ {print $4}' "akvo-flow-server-config/${instance_id}/appengine-web.xml")
aws_secret_access_key=$(awk -F'"' '/aws_secret/ {print $4}' "akvo-flow-server-config/${instance_id}/appengine-web.xml")
@iperdomo
iperdomo / maps.cljs
Last active January 11, 2018 18:30
Google Maps delete vertex sample in ClojureScript
;; https://developers.google.com/maps/documentation/javascript/examples/delete-vertex-menu
;; New implementaion based on comments by Andre Rauh (@rauh) in #clojurescript on clojurians.slack.com
;;
(defn delete-vertex-menu
[label]
(this-as this
@iperdomo
iperdomo / klogs.sh
Created August 18, 2017 11:24
Get Keycloak logs from running pods, removing ANSI colors
#!/usr/bin/env bash
# Prints the logs from the keycloak-ha-mysql container to STDOUT and creates a $POD.log file
set -eu
IFS=" "
read -r -a PODS <<< $(kubectl get pods -o jsonpath='{.items[*].metadata.name}')
for POD in "${PODS[@]}"

Keybase proof

I hereby claim:

  • I am iperdomo on github.
  • I am iperdomo (https://keybase.io/iperdomo) on keybase.
  • I have a public key whose fingerprint is 5F97 4FD6 D0C9 148A D4C0 5454 8C91 5DFD 250C F3EA

To claim this, I am signing this object:

@iperdomo
iperdomo / lein-test.log
Created May 9, 2017 06:46
leiningen tests @ ae9ae482
[ivan@roatan leiningen]$ rm -rf leiningen-core/.lein-bootstrap
[ivan@roatan leiningen]$ rm -rf .lein-classpath
[ivan@roatan leiningen]$ cd leiningen-core/
[ivan@roatan leiningen-core]$ cd ..
[ivan@roatan leiningen]$ cd leiningen-core; lein install; lein classpath | tail -n 1 > .lein-bootstrap; cd ..
Created /home/ivan/workspace/labs/leiningen/leiningen-core/target/leiningen-core-2.7.2-SNAPSHOT.jar
Wrote /home/ivan/workspace/labs/leiningen/leiningen-core/pom.xml
Installed jar and pom into local repo.
[ivan@roatan leiningen]$ bin/lein test
Recalculating Leiningen's classpath.
@iperdomo
iperdomo / nginx-1486649442.log
Created February 9, 2017 14:27
openresty/nginx log
2017/02/09 14:10:53 [debug] 8#8: *1 http cl:-1 max:1048576
2017/02/09 14:10:53 [debug] 8#8: *1 rewrite phase: 4
2017/02/09 14:10:53 [debug] 8#8: *1 rewrite phase: 5
2017/02/09 14:10:53 [debug] 8#8: *1 post rewrite phase: 6
2017/02/09 14:10:53 [debug] 8#8: *1 generic phase: 7
2017/02/09 14:10:53 [debug] 8#8: *1 generic phase: 8
2017/02/09 14:10:53 [debug] 8#8: *1 generic phase: 9
2017/02/09 14:10:53 [debug] 8#8: *1 access phase: 10
2017/02/09 14:10:53 [debug] 8#8: *1 lua access handler, uri:"/admin" c:1
2017/02/09 14:10:53 [debug] 8#8: *1 access phase: 10