Skip to content

Instantly share code, notes, and snippets.

View aclemmensen's full-sized avatar

Asbjørn Clemmensen aclemmensen

View GitHub Profile
@aclemmensen
aclemmensen / install.sh
Last active September 19, 2018 20:57
awesome
cd Downloads
wget https://dl.suckless.org/st/st-0.8.1.tar.gz
tar xf st+*
cd st-0.8.1
sudo apt install build-essential libx11-dev libxft-dev
make
sudo make install
sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/local/bin/st 1

Keybase proof

I hereby claim:

  • I am aclemmensen on github.
  • I am aclemmensen (https://keybase.io/aclemmensen) on keybase.
  • I have a public key ASABJkv4VsjjSohq-5YUFTcNiWGWBRCyzoudFkVGW9r1Bwo

To claim this, I am signing this object:

[{"basiparachromatin", "marsipobranchiata", 15.9375},
{"cinematographer", "megachiropteran", 15.0},
{"rotundifoliate", "titanofluoride", 14.0},
{"prerealization", "proletarianize", 14.0},
{"micropetalous", "somatopleuric", 13.0},
{"micranthropos", "promonarchist", 13.0},
{"aeolharmonica", "chloroanaemia", 13.0},
{"pedometrician", "premedication", 13.0},
{"overcirculate", "uterocervical", 13.0},
{"investigation", "tenovaginitis", 13.0},
# Aerospike database configuration file.
service {
user root
group root
paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
pidfile /var/run/aerospike/asd.pid
service-threads 4
transaction-queues 4
transaction-threads-per-queue 4
# Aerospike database configuration file.
# This stanza must come first.
service {
user root
group root
paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
pidfile /var/run/aerospike/asd.pid
service-threads 4
transaction-queues 4
@aclemmensen
aclemmensen / cloudbase-node.sh
Last active November 15, 2016 20:55
Script to start a Couchbase node as either master or worker
#!/bin/bash
# Taken from here:
# https://github.com/arun-gupta/docker-images/blob/master/couchbase/configure-node.sh
set -x
set -m
set -o pipefail
/entrypoint.sh couchbase-server &
@aclemmensen
aclemmensen / proxy-stats.sh
Created November 10, 2016 09:51
Put squid stats into Statsd
#!/bin/bash
i=0
while true; do
echo "Sending batch $i"
i=$(($i+1))
/opt/si-squid/bin/squidclient cache_object://localhost/counters \
| awk '
BEGIN { p=0 }

I'm compiling a list of the things I'd like to see in a programming language and its surrounding environment. I'm not expecting to find one language that ticks all the boxes, but I'm hoping for one that will tick quite a few.

I have experience with the following:

  • C#
  • Clojure
  • Go
  • Racket
  • Elixir
  • PHP
@aclemmensen
aclemmensen / plinks.clj
Last active August 29, 2015 14:00
Clojure: Fetch a lists of URLs in parallel with core.async. Is there a better way?