Skip to content

Instantly share code, notes, and snippets.

View baldur's full-sized avatar

Baldur Gudbjornsson baldur

View GitHub Profile
h2 {
text-align: center;
font-size: 200%;
}
.box {
border: solid 2px black;
width: 50px;
height: 50px;
margin: 20px;
brew install libsoup gstreamer gst-plugins-base
brew install gst-plugins-good --with-libpng --with-libvpx --with-cairo --with-aalib
brew install gst-plugins-bad --with-faac --with-faad2 --with-opencv --with-opus --with-srtp
brew install gst-plugins-ugly --with-aalib --with-lame --with-libvorbis --with-pango --with-theora --with-x264
brew install gst-rtsp-server
brew install gst-libav

Keybase proof

I hereby claim:

  • I am baldur on github.
  • I am bakdyr (https://keybase.io/bakdyr) on keybase.
  • I have a public key ASAwbzNovvjpNx5BuqhY7NGfX2bIKAMpIhA5_y-ppItOrgo

To claim this, I am signing this object:

Setup tunnel
ssh -fN -R 2222:localhost:22 serveraddress
Connect
ssh -L 2222:localhost:22 serveraddress
Create a session that can be shared
#!/bin/sh
# From Gerrit Code Review 2.9.4
#
# Part of Gerrit Code Review (http://code.google.com/p/gerrit/)
#
# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
diff --git a/docker-compose.yml b/docker-compose.yml
index 29918f0..28ae36a 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -13,7 +13,7 @@ api:
web-proxy:
build: ./web-proxy
ports:
- - "80:80"
+ - "81:81"
blacklist i2400m_usb
blacklist i2400m
blacklist wimax
/etc/modprobe.d/blacklist.conf
@baldur
baldur / notifier.pl
Created August 30, 2012 21:40 — forked from bryanwoods/notifier.pl
Perl script to send mentions of my name in IRC to Notification Center or whatever it's called
use strict;
use warnings;
use Irssi;
Irssi::signal_add 'message public', 'sig_message_public';
sub sig_message_public {
my ($server, $msg, $nick, $nick_addr, $target) = @_;
if ($msg =~ /ryan/) {
<object width="416" height="234">
<param name="movie" value="http://localhost:3000/flash/unavailable.swf">
<embed src="http://localhost:3000/flash/unavailable.swf" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" width="416" height="234" allowFullscreen="true
</embed>
</object>
vs.
<embed src="http://localhost:3000/flash/unavailable.swf" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" width="416" height="234" allowFullscreen="true
describe Expiry do
4 it "should calculate expiry in days" do
5 exp = Expiry.new(2.days.from_now)
6 exp.days.should be_equal(2)
7 end
8
9 it "should calculate expiry in hours" do
10 exp = Expiry.new(100.hours.from_now)
11 exp.hours.should be_equal(100)
12 end