Skip to content

Instantly share code, notes, and snippets.

View turesheim's full-sized avatar

Torkild U. Resheim turesheim

View GitHub Profile
#!/bin/bash
# This Bash script will set up an Ubuntu installation so that it will be able
# to build SIMA.
t=$(tempfile) || exit
trap "rm -f -- '$t'" EXIT
# We need this for dialogs
#command -v dialog >/dev/null 2>&1 || { sudo apt-get install dialog }
@turesheim
turesheim / keybase.md
Last active April 7, 2016 12:37
Keybase proof

Keybase proof

I hereby claim:

  • I am turesheim on github.
  • I am tur (https://keybase.io/tur) on keybase.
  • I have a public key whose fingerprint is F8D8 A122 8186 3176 DCAA C1DA F243 E32D AAB6 F214

To claim this, I am signing this object:

@turesheim
turesheim / style.css
Last active August 6, 2017 06:14
GitHub style for Eclipse WikiText
body {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-size-adjust: 100%;
color: #333;
font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif;
font-size: 0.8em;
line-height: 1.6;
word-wrap: break-word;
}
@turesheim
turesheim / java.zsh
Last active June 7, 2022 19:18
maxOS Zsh script to easily switch between Java versions
#!/usr/local/bin/zsh
# Add aliases for changing java runtime
alias j6='ju 1.6'
alias j7='ju 1.7'
alias j8='ju 1.8'
alias j9='ju 9'
# Prints the path to JAVA_HOME
alias jh=/usr/libexec/java_home
@turesheim
turesheim / envoy.yaml
Created October 31, 2019 19:01
Envoy configuration for handling gRPC and HTTP requests to the same port
# =============================================================================
# This Envoy configuration allows gRPC and HTTP/2 connections to be sent to the
# same port. The URL to the gRPC service must be prefixed with "/grpc", for
# instance "http://192.168.1.10/grpc" and will be directed to port 8082. The
# normal HTTP/2 calls will be directed to port 8084.
# =============================================================================
admin:
access_log_path: /tmp/admin_access.log
address:
function FindProxyForURL(url, host) {
var ProxyConfig = "DIRECT";
if( dnsDomainIs(host, ".cp.ads.domstol.no")) {
ProxyConfig = "SOCKS localhost:1283";
}
return ProxyConfig;
}