Skip to content

Instantly share code, notes, and snippets.

View davidolrik's full-sized avatar
🖖
42

David Jack Wange Olrik davidolrik

🖖
42
View GitHub Profile
@davidolrik
davidolrik / .colima _templates default.yaml
Last active December 19, 2022 12:51
Add extra volume colima ( ~/.colima/_templates/default.yaml )
provision:
- mode: system
script: |
mkdir -p /Users/davidolrik
mount /Users/davidolrik
mkdir -p /tmp/colima
mount /tmp/colima
mkdir -p /Volumes/Projects
mount /Volumes/Projects
flowchart TD
    Stuff --> Inbox
    Inbox --> What[What it is?]
    What --> Actionable[Is it actionable?]
    Actionable --> No
    Actionable --> Yes
    No --> Trash(Trash)
    No --> Someday(Someday / Maybe)
 No --> Reference(Reference)
@davidolrik
davidolrik / keybase.md
Created September 15, 2020 11:59
keybase.md

Keybase proof

I hereby claim:

  • I am davidolrik on github.
  • I am davidolrikdk (https://keybase.io/davidolrikdk) on keybase.
  • I have a public key whose fingerprint is ECC3 95B7 9872 5570 D869 9DCB 5B3B AADE DDEE 156E

To claim this, I am signing this object:

@davidolrik
davidolrik / init.lua
Created April 11, 2017 19:06 — forked from ttscoff/init.lua
Hammerspoon config examples for hyper key
-- A global variable for the Hyper Mode
k = hs.hotkey.modal.new({}, "F17")
-- Trigger existing hyper key shortcuts
k:bind({}, 'm', nil, function() hs.eventtap.keyStroke({"cmd","alt","shift","ctrl"}, 'm') end)
-- OR build your own
launch = function(appname)
@davidolrik
davidolrik / find-webproxy.pl
Last active December 23, 2015 21:59
Find the current active http proxy on OS X.
#!/usr/bin/env perl
use strict;
use warnings;
my $networksetup = `networksetup -listnetworkserviceorder`;
my @network_services = map { $_ =~ s/\(\d+\)\s+//; $_ } # 3. Remove (\d+) from begining of line
grep { /^\(\d+\)/ } # 2. Only look at lines starting with (\d+)
split(/\n/,$networksetup); # 1. Split into lines