Skip to content

Instantly share code, notes, and snippets.

@jammi
jammi / terminal-meta.json
Created April 30, 2019 12:19
Karabiner-elements complex mapping for META key mapping in terminal and §-key to ESC mapping.
{
"title": "Terminal Meta Key",
"rules": [
{
"description": "Terminal Meta [§ key as trigger key, ESC if alone, fn-§ for §]",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "non_us_backslash",
$ docker-compose up
/usr/local/Cellar/docker-compose/1.24.0/libexec/lib/python3.7/site-packages/paramiko/ecdsakey.py:164: CryptographyDeprecationWarning: Support for unsafe construction of public numbers from encoded data will be removed in a future version. Please use EllipticCurvePublicKey.from_encoded_point
self.ecdsa_curve.curve_class(), pointinfo
Connected (version 2.0, client OpenSSH_7.9p1)
/usr/local/Cellar/docker-compose/1.24.0/libexec/lib/python3.7/site-packages/paramiko/kex_ecdh_nist.py:39: CryptographyDeprecationWarning: encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use EllipticCurvePublicKey.public_bytes to obtain both compressed and uncompressed point encoding.
m.add_string(self.Q_C.public_numbers().encode_point())
/usr/local/Cellar/docker-compose/1.24.0/libexec/lib/python3.7/site-packages/paramiko/kex_ecdh_nist.py:96: CryptographyDeprecationWarning: Support for unsafe construction of public numbers from encoded data will be rem
@jammi
jammi / gist:b68406919d2636fd917df3ae5292f6e2
Created April 29, 2019 09:16
Docker-compose with ssh:// protocol DOCKER_HOST set doesn't work.
$ docker-compose build
Traceback (most recent call last):
File "site-packages/docker/api/client.py", line 151, in __init__
NameError: name 'SSHAdapter' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "docker-compose", line 6, in <module>
File "compose/cli/main.py", line 71, in main
@jammi
jammi / stdout && stderr
Created April 25, 2019 18:53
docker-machine 0.16.1 build cee350d7 generic driver issue
$ docker-machine --debug create --driver generic --generic-ip-address=xx.xx.xx.xx --generic-ssh-user=xxxxx xxxxxxxx
Docker Machine Version: 0.16.1, build cce350d7
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver generic
Plugin server listening at address 127.0.0.1:51674
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
@jammi
jammi / gist:2665585
Created May 12, 2012 09:48
Weechatin themeasetuksia
[look]
align_end_of_lines = message
bar_more_down = "↓"
bar_more_left = "←"
bar_more_right = "→"
bar_more_up = "↑"
buffer_notify_default = all
buffer_time_format = " %H.%M.%S"
color_basic_force_bold = off
color_inactive_buffer = off
Swedestar
- för säker dokumentation och kvalitetsuppföljning
Ett fullödigt
datasystem för medicinsk dokumentation skall kunna tillgodose två väsentliga
behov inom sjukvården. Det skall dels ge ett effektivt och verksamhetsanpassat
stöd för det dagliga arbetet vid de olika vårdenheterna, dels kunna utgöra
en informationskälla för uppföljning och bearbetning. Swedestar är ett kraftfullt
verktyg för modern journalföring. Systemets uppbyggnad med sin termdatabas
ger unika möjligheter till sökningar, sammanställningar och bearbetning-
@jammi
jammi / gist:1100645
Created July 22, 2011 23:10
MongoDB build failure on OSX 10.7 Lion
:info:build /Developer/usr/bin/llvm-g++-4.2 -o util/processinfo_darwin.o -c -arch x86_64 -Wnon-virtual-dtor -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O3 -D_SCONS -DMONGO_EXPOSE_MACROS -DXP_UNIX -I. -I/opt/local/include util/processinfo_darwin.cpp
:info:build /Developer/usr/bin/llvm-g++-4.2 -o db/durop.o -c -arch x86_64 -Wnon-virtual-dtor -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O3 -D_SCONS -DMONGO_EXPOSE_MACROS -DXP_UNIX -I. -I/opt/local/include db/durop.cpp
:info:build /Developer/usr/bin/llvm-g++-4.2 -o db/dur_writetodatafiles.o -c -arch x86_64 -Wnon-virtual-dtor -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O3 -D_SCONS -DMONGO_EXPOSE_MACROS -DXP_UNIX -I. -I/opt/local/include db/dur_writetodatafiles.cpp
:info:build /Developer/usr/bin/llvm-g++-4.2 -o db/dur_preplogbuffer.o -c -arch x86_64 -Wnon-virtual-dtor -fPIC -fno-strict-aliasing -ggdb -pth