This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe 'Exim Config' do | |
let!(:exim) { exim_server(config) } | |
context 'simple config' do | |
let!(:relay) { mail_server(:y) } | |
let(:config) { exim_config(:simple) } | |
let(:mail_x) { mail_fixture(:mail_x) } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'drb/drb' | |
p DRb.start_service("druby://localhost:0") | |
server = DRbObject.new_with_uri("druby://::1:5000") | |
p server | |
p server.foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "ffi" | |
module Mount | |
class Fstab < FFI::Struct | |
layout :fs_spec, :string, # block special device name | |
:fs_file, :string, # file system path prefix | |
:fs_vfstype, :string, # File system type, ufs, nfs | |
:fs_mntops, :string, # Mount options ala -o | |
:fs_type, :string, # FSTAB_* from fs_mntops | |
:fs_freq, :int, # dump frequency, in days |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "fileutils" | |
# === PSDB Packed Stats Database | |
# | |
# This is a small journaling multi process aware database for counting choises. | |
# | |
# === Authors | |
# * dpree | |
# * threez | |
class PSDB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'json' | |
require 'fileutils' | |
require 'net/smtp' | |
require 'net/https' | |
require 'uri' | |
BACKUP_DIR='/srv/git/repositories' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "rubygems" | |
require "istat" | |
require "logger" | |
logger = Logger.new(STDOUT) | |
class Istat::Client | |
attr_accessor :passwd | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
template <typename MsgType> | |
class Greeting { | |
private: | |
MsgType m_pre; | |
MsgType m_post; | |
public: | |
Greeting(MsgType pre) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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=() |