Skip to content

Instantly share code, notes, and snippets.

View jonasws's full-sized avatar

Jonas Strømsodd jonasws

View GitHub Profile
@jonasws
jonasws / spectacle-presenter-tweak.css
Created October 15, 2016 19:17
Resizes the presenter mode of Spectacle to enlarge any speaker notes and try to utilize the space.
.spectacle-presenter-main {
align-self: flex-start;
margin-top: 0 !important;
height: 30% !important;
width: auto !important;
top: 5em !important;
}
.spectacle-presenter-next {
height: 30% !important;
@jonasws
jonasws / convert_to_valid_xml.py
Last active August 19, 2016 09:22
Filter that converts HTML to something XML compliant (closing tags++)
#!/usr/bin/env python3
'''
NOTE: This script requires beautifulsoup4 to be installed.
Use this script as a filter to convert HTML to XML compliant markup. Useful when pasting raw HTML where XML is expected.
Combine with tools like clipcopy to make for a nice copy-and-paste utility, for example:
./convert_to_valid_xml.py < index.html | clipcopy
'''
@jonasws
jonasws / install-docker.sh
Last active June 5, 2016 18:07
A script to install docker and docker compose. Assumes nothing is already installed, so no magic happening,
#!/usr/bin/env sh
# This script installs docker engien and docker compose on Ubuntu 14.04 LTS, nice to use when setting up things on AWS or Azure.
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
touch /etc/apt/sources.list.d/docker.list
@jonasws
jonasws / keybase.md
Created May 29, 2016 13:34
Keybase proof

Keybase proof

I hereby claim:

  • I am jonasws on github.
  • I am jonasws (https://keybase.io/jonasws) on keybase.
  • I have a public key ASClvrxFpdy1KXmqJo69joyX9w8Afvr7BLWsDsKgzhLrZQo

To claim this, I am signing this object: