Skip to content

Instantly share code, notes, and snippets.

View 573's full-sized avatar

Daniel Kahlenberg 573

View GitHub Profile
# -------------- In my case it was this location, change accordingly -----------
# I only show here the part of that file I changed
## [ v3_req ]
##
### Extensions to add to a certificate request
##
##basicConstraints = CA:FALSE
##keyUsage = nonRepudiation, digitalSignature, keyEncipherment
[ v3_req ]
@573
573 / README.md
Last active August 29, 2015 14:13 — forked from aweijnitz/Vagrantfile

Reused that box description for proof-of-concept jenkins-in-a-box for M$-bound developers.

The ssh-call to ssh into the once enrolled box was (information per vagrant ssh-config):

$ ssh vagrant@127.0.0.1 -p 2200 -i /d/tools/vagrant-aweijnitz/.vagrant/machines/default/virtualbox/private_key -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=no -o IdentitiesOnly=yes -o LogLevel=FATAL

Have to look more deeply on the set of commands vagrant understands, not to forget one of them vagrant reload on changes in the configuration.

On some occasions ssh-add ~/.vagrant.d/insecure_private_key can be useful.

import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Inject;
import com.google.inject.name.Named;
import com.google.inject.name.Names;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
get_db() {
if [ -z "$CABAL_SANDBOX_CONFIG" ]
then
db=""
else
db=$(sed -nr -e 's/^package-db: (.*)/\1/p' "$CABAL_SANDBOX_CONFIG")
if [ $? -ne 0 ]; then exit 1; fi
fi
}
db_cmd() (
@573
573 / launchMaven
Last active August 29, 2015 14:19 — forked from lfo/launchMaven
mvn clean install -Dmaven.surefire.debug=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,address=Maven,suspend=n
# In Netbeans Debug/attachDebugger with
# connector : SharedMemory
# Name : Maven
# Timeout : 10 000
@573
573 / hmindmap.tex
Last active August 29, 2015 14:20 — forked from epsilonhalbe/hmindmap.tex
% Author: Martin Heuschober
% License: CC-BY-4.0
% see https://creativecommons.org/licenses/by/4.0/
\documentclass{article}
\usepackage[paperwidth=55cm
,paperheight=45cm
,left=1cm
,right=1cm
,top=1cm
{
"metadata": {
"language": "haskell",
"name": "",
"signature": "sha256:735be6537d97c2ae96006ad36b402104aa3c71394079f9c000424191ecabdbf9"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@573
573 / imperative-env.sh
Created January 17, 2019 10:17 — forked from danbst/imperative-env.sh
Imperative nix-env rewrite (so it becomes declarative)
#!/usr/bin/env bash
statefile=~/.config/nixpkgs/declarative
action="$1"
package="$2"
mkdir -p $(dirname "$statefile")
touch "$statefile"
function update {
envExpr=~/.config/nixpkgs/declarative-env.nix
@573
573 / core.clj
Created February 19, 2019 09:35 — forked from taylorwood/core.clj
GraalVM polyglot interop between Clojure and JavaScript
(ns polydact.core
(:import (clojure.lang IFn)
(org.graalvm.polyglot Context Value)
(org.graalvm.polyglot.proxy ProxyArray ProxyExecutable ProxyObject)))
(set! *warn-on-reflection* true)
(comment
(do
(def context