Skip to content

Instantly share code, notes, and snippets.

View threez's full-sized avatar

threez

  • IONOS SE
  • Karlsruhe, Germany
View GitHub Profile
/Users/vincentlandgraf [vincentlandgraf] $ sass --watch styles/components/ styles/layout/:public/stylesheets/ --trace
/Users/vincentlandgraf/.rvm/gems/ruby-1.9.2-head/gems/haml-3.0.13/bin/../lib/haml/exec.rb:400:in `watch_or_update': File styles/layout/:public/stylesheets/ doesn't exist. (RuntimeError)
Did you mean: sass --watch styles/components/:styles/layout/:public/stylesheets/
from /Users/vincentlandgraf/.rvm/gems/ruby-1.9.2-head/gems/haml-3.0.13/bin/../lib/haml/exec.rb:350:in `process_result'
from /Users/vincentlandgraf/.rvm/gems/ruby-1.9.2-head/gems/haml-3.0.13/bin/../lib/haml/exec.rb:42:in `parse'
from /Users/vincentlandgraf/.rvm/gems/ruby-1.9.2-head/gems/haml-3.0.13/bin/../lib/haml/exec.rb:22:in `parse!'
from /Users/vincentlandgraf/.rvm/gems/ruby-1.9.2-head/gems/haml-3.0.13/bin/sass:8
from /usr/bin/sass:19:in `load'
from /usr/bin/sass:19
webcal://ecoline.oh-kalender.de/ics/Deutschland.ics
require "time"
class Commit
attr_accessor :revision, :author, :time, :lines, :comment
end
# parse input arguments
from = ARGV.shift.to_i
to = ARGV.shift.to_i
@threez
threez / hearts.html
Created April 23, 2011 18:53
BouncingHearts in HTML/CSS/JS
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
* {
overflow: hidden;
font-family: "Helvetica Neue";
cursor: pointer;
text-selection: none;
}
@threez
threez / PKGBUILD
Created May 15, 2011 19:10
istatd package description for arch linux
# Maintainer: Vincent Landgraf <vilandgr+github(at)googlemail(dot)com>
pkgname=istatd
pkgver=0.5.7
pkgrel=2
pkgdesc="Serving statistics to the iStat iPhone application from Linux, Solaris and FreeBSD."
url="https://github.com/tiwilliam/istatd"
arch=('x86_64' 'i686')
license=('MIT')
depends=('libxml2')
optdepends=()
@threez
threez / hello.cpp
Created June 30, 2011 19:52
A simple example to show cpp to my friends ;-)
#include <iostream>
template <typename MsgType>
class Greeting {
private:
MsgType m_pre;
MsgType m_post;
public:
Greeting(MsgType pre)
@threez
threez / jruby.rake
Created April 25, 2012 18:27
A rake task to help provisioning jruby based deployments
#
# PROVISIONING OF JRUBY BASED DEPLOYMENTS
#
# Copyright (c) 2012 Vincent Landgraf
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@threez
threez / ibrute.rb
Created June 13, 2012 11:06
Bruteforce an istatd password using the istat gem
#!/usr/bin/env ruby
require "rubygems"
require "istat"
require "logger"
logger = Logger.new(STDOUT)
class Istat::Client
attr_accessor :passwd
end
@threez
threez / dcron.rb
Created July 23, 2012 21:46
Disibuted CRON?!
# Job, Desc, Interval, Tick, updated_at
class Job
attr_reader :name
attr_accessor :task, :working
def initialize(name, interval, offset)
@name = name
@interval = interval
@offset = offset
@threez
threez / backup_git_repos.sh
Created September 9, 2012 09:08 — forked from r10r/backup_git_repos.sh
Github backup script
#!/usr/bin/env ruby
require 'rubygems'
require 'json'
require 'fileutils'
require 'net/smtp'
require 'net/https'
require 'uri'
BACKUP_DIR='/srv/git/repositories'