Skip to content

Instantly share code, notes, and snippets.

Avatar

Martijn Pepping mpepping

View GitHub Profile
@mpepping
mpepping / token.applescript
Created Apr 6, 2019
AppleScript to copy a Safenet MobilePASS OTP
View token.applescript
-- AppleScript to copy a Safenet MobilePASS OTP.
--
-- 'osascript ~/path/to/token.applescript'
-- Set 'passwd' to your MobilePASS passcode.
set passwd to "0000"
-- Start MobilePASS
tell application "MobilePASS"
activate
delay 1
View aws-cli.md
View 1password-backup.bash
#!/bin/bash
#
# https://support.1password.com/command-line-getting-started/
#
# Full docs: https://support.1password.com/command-line/
#
# gpg --receive-keys 3FEF9748469ADBE15DA7CA80AC2D62742012EA22
# gpg --verify op.sig op
#
View .vimrc
" My .vimrc for Vim, MacVim and Gvim/win32
" 0. VUNDLE SETUP
" 1. FILE HANDLING
" 2. LOOK & FEEL
" 3. MAPPINGS
" 4. NETRW CFG
" 5. MACVIM
" 6. GVIM/WIN32
" 7. SPELL & DICT
@mpepping
mpepping / 01-dockerd-startup
Last active May 27, 2017
Docker `error creating vxlan interface: file exists` error
View 01-dockerd-startup
root@hostname407:~ # dockerd
DEBU[0000] docker group found. gid: 993
DEBU[0000] Listener created for HTTP on unix (/var/run/docker.sock)
INFO[0000] libcontainerd: new containerd process, pid: 1490
DEBU[0000] containerd: grpc api on /var/run/docker/libcontainerd/docker-containerd.sock
DEBU[0000] containerd: read past events count=0
DEBU[0000] containerd: supervisor running cpus=2 memory=3791 runtime=docker-runc runtimeArgs=[] stateDir=/var/run/docker/libcontainerd/containerd
DEBU[0000] libcontainerd: containerd health check returned error: rpc error: code = 14 desc = grpc: the connection is unavailable
DEBU[0001] Using default logging driver json-file
DEBU[0001] Golang's threads limit set to 27180
View dockerd-vxlan-01
DEBU[0143] state changed module="node/agent/taskmanager" state.desired=RUNNING state.transition="READY->STARTING" task.id=etypqp6wi1jycyqkywa2hh7ws
DEBU[0143] (*Agent).UpdateTaskStatus module="node/agent" task.id=etypqp6wi1jycyqkywa2hh7ws
DEBU[0143] task status reported module="node/agent"
DEBU[0143] task status updated method="(*Dispatcher).processUpdates" module=dispatcher state.transition="READY->STARTING" task.id=etypqp6wi1jycyqkywa2hh7ws
DEBU[0143] container mounted via layerStore: /var/lib/docker/overlay/d6f807648a8b894cd759f6ee7e39ae8130ebe1899182fae2d9068161ed31684b/merged
DEBU[0143] Assigning addresses for endpoint test_swarm.1.etypqp6wi1jycyqkywa2hh7ws's interface on network ucp-hrm
DEBU[0143] RequestAddress(LocalDefault/192.168.0.0/24, 192.168.0.3, map[])
DEBU[0143] Assigning addresses for endpoint test_swarm.1.etypqp6wi1jycyqkywa2hh7ws's interface on network ucp-hrm
DEBU[0143] Releasing addre
View gist:1a05eeab11758bfd800100f609eb9c86
#!/bin/sh
#
# mcollective Application Server for STOMP based agents
#
# chkconfig: - 24 76
#
# description: mcollective lets you build powerful Stomp compatible middleware clients in ruby without having to worry too
# much about all the setup and management of a Stomp connection, it also provides stats, logging and so forth
# as a bonus.
#
@mpepping
mpepping / gemrc
Last active Sep 9, 2016
Ruby gemrc with install options, such as proxy settings
View gemrc
---
# See 'gem help env' for additional options.
gem: --no-ri --no-rdoc
verbose: true
backtrace: true
bulk_threshold: 1000
http_proxy: http://proxy.example.com:8080
View keybase.md

Keybase proof

I hereby claim:

  • I am mpepping on github.
  • I am mpepping (https://keybase.io/mpepping) on keybase.
  • I have a public key whose fingerprint is 4378 7564 024D 1E7A D822 7FB4 8638 A18C E3C7 649F

To claim this, I am signing this object:

View presentation.bat
# Windows >= 7 : run from startup folder to disable presentation mode at logon.
@echo off
start c:\windows\system32\PresentationSettings.exe /start
You can’t perform that action at this time.