Skip to content

Instantly share code, notes, and snippets.

View epiphone's full-sized avatar

Aleksi Pekkala epiphone

  • Seoul, South Korea
View GitHub Profile
@epiphone
epiphone / installing-openwhisk-on-ubuntu.md
Created January 24, 2017 13:24
Installing OpenWhisk on Ubuntu Server 16.04

Configuring the OpenWhisk server

This guide contains instructions on manually setting up Openwhisk and CouchDB on a fresh Ubuntu 16.04 server.

The guide is based on the OpenWhisk Ansible README, which at the time of writing is missing some key steps and gotchas - hence this new guide.

1. Dependencies

sudo apt-get update
@epiphone
epiphone / cloudSettings
Last active February 3, 2017 12:46
Visual Studio Code Sync Settings Gist
{"lastUpload":"2017-02-03T12:46:09.998Z","extensionVersion":"v2.4.3"}
@epiphone
epiphone / keyboard-layout-toggle-hotkey-lubuntu.md
Created May 21, 2017 08:47
Keyboard layout toggle hotkey in Lubuntu

A method for switching keyboard layouts with a hotkey other than the ones in man xkeyboard-config. Here I'm switching between us/fi with Super + space.

Create a script in ~/scripts/toggle_keyboard_layout.sh:

LAYOUT=$(setxkbmap -print | awk -F"+" '/xkb_symbols/ {print $2}')
if [ $LAYOUT = "us" ]; then
    setxkbmap -layout fi
else
    setxkbmap -layout us
fi
@epiphone
epiphone / notifme-sdk.d.ts
Created November 17, 2017 14:04
notifme-sdk Typescript declaration (translated from flow types at https://github.com/notifme/notifme-sdk)
declare module 'notifme-sdk' {
export type ChannelType = 'email' | 'sms' | 'push' | 'webpush' | 'slack'
export type ProviderStrategyType = 'fallback' | 'roundrobin' | 'no-fallback'
export default class NotifMeSdk {
constructor(options: Options)
send (notification: Notification): Promise<NotificationStatus>
}