Skip to content

Instantly share code, notes, and snippets.

@mkroman
mkroman / PKGBUILD
Created July 28, 2014 19:55
ricochet-git PKGBUILD
# Maintainer: Boohbah <boohbah at gmail.com>
# Contributor: Mikkel Kroman <mk@maero.dk>
pkgname=ricochet-git
pkgver=1.0.1.r42.g04e0536
pkgrel=2
pkgdesc="Ricochet is an experiment with a different kind of instant
messaging that doesn't trust anyone with your identity, your contact
list, or your communications.a"
arch=('i686' 'x86_64')
@mkroman
mkroman / PKGBUILD
Created April 27, 2014 08:49
Suggested PKGBUILD for the megahal AUR package
# Contributor: Thomas Mudrunka <harvie@@email..cz>
# Maintainer: Thomas Mudrunka <harvie@@email..cz>
# You can also contact me on http://blog.harvie.cz/
# Contributor: Mikkel Kroman <mk@maero.dk>
pkgname=megahal
pkgver=9.1.1
pkgrel=2
pkgdesc="conversation simulator: a computer program which responds in natural language to what you type"
arch=('i686' 'x86_64')
/tmp/ruby-build.20140402203247.23283 ~
ruby-2.1.1/
ruby-2.1.1/sprintf.c
ruby-2.1.1/regerror.c
ruby-2.1.1/hash.c
ruby-2.1.1/eval_intern.h
ruby-2.1.1/parse.h
ruby-2.1.1/main.c
ruby-2.1.1/regenc.h
ruby-2.1.1/misc/
@mkroman
mkroman / string.cpp
Last active December 28, 2015 09:39
#include <string>
#include <cstring>
#include <iostream>
char BAND_COLOR_CODE[10][8] =
{
"black", "brown", "red", "orange", "yellow",
"green", "blue", "violet", "grey", "white" };
int find_cstring_in_array(char array[][8], size_t array_size, const char* needle)
@echo off
taskkill /IM "audiorepeater.exe" /IM "audiorepeater_ks.exe" /T >nul
call :audiorepeater TRUE "Virtual Cable 1" "Realtek HD Audio output"
call :audiorepeater FALSE "Line 2 (Virtual Audio Cable)" "Line 1 (Virtual Audio Cable)"
goto :EOF
:audiorepeater
mk@maero ~/Projects/qweb/ajaxterm % python2 ./configure
Configuring prefix= /usr/local port= 8022
mk@maero ~/Projects/qweb/ajaxterm % python2 ./configure --help
Usage: configure [options]
Options:
-h, --help show this help message and exit
--prefix=PREFIX installation prefix (default: /usr/local)
--confdir=CONFDIR configuration files directory prefix (default: /etc)
--port=PORT set the listening TCP port (default: 8022)
UI = window.UI ?= new Object
class UI.Grid
@DefaultOptions = {
width: 1280,
height: 720,
verticalSpacing: 30,
horizontalSpacing: 30,
@mkroman
mkroman / .vimrc
Created September 15, 2013 23:18
execute pathogen#infect()
" Let's have a gigantic history - we have the memory for it!
set history=1000
" Enable filetype plugins
if has("autocmd")
autocmd filetype plugin indent on
endif
" Set the minimal number of lines displayed above and below the current line
#include <iostream>
#include "visichat/controller.hpp"
using namespace VisiChat;
Controller::Controller()
{
m_eventBase = event_base_new();
}
@mkroman
mkroman / gist:1420936
Created December 2, 2011 00:23 — forked from fender21/gist:1420876
Better way to route?
post :index do
if params.key?("create")
path = Padrino.root("tmp")
File.open(File.join(path, "#{params[:docId]}.pdf"), "w") do |file|
file.write request.body.read.force_encoding("UTF-8")
status 200
end
end
end