Skip to content

Instantly share code, notes, and snippets.

View patroza's full-sized avatar

Patrick Roza patroza

View GitHub Profile
require 'sixcore'
module SixCore
ConfigSvn = Struct.new(:program)
# Core module for Subversion
class Svn
attr_accessor(:repos, :user, :pass)
COMPONENT = 'SixCore::Svn'
REGEX_LINE = /------------------------------------------------------------------------/
# Ruby Hubby
FileTest.exit?('test.txt')
# BluBlub
Process.exit
// Main Config
class CfgVehicles
{
class Car
{
// all kinds of settings
};
class Stryker: Car
{
// all kinds of settings
gem 'log4r'
gem 'win32-pipe'
gem 'windows-pr'
require 'log4r'
require 'win32/pipe'
#require 'win32/mutex' # Uhh, how to use?
require 'mutex_m'
require 'types'
require 'sqf'
require 'database'
changelog:
h2. CBA
h2. Fri Jan 15 18:04:29 +0100 2010
Build 50
Updated to source:@d07aa385d491e403ece1334f69ee7c36af58389b
h3. Fixed
#!/usr/bin/env ruby
# encoding: UTF-8
require 'emp/arma/tools/common'
class Bla
include EMP::Arma::Tools
def wait
STDIN.gets
end
# by Sickboy
# Rename any folder or file in the given path, if it has uppercase characters, to lowercase
# If the filename is .repository.yml, update the :pack and :remote hashes with lowercase keys
require 'fileutils'
require 'yaml'
dir = ARGV[0]
ARGV.shift
def check_dir(dir)
require 'open3'
puts "Ctrl-C should work now"
sleep 5
Open3.popen3("echo 'Now ctrl-C wont work no more'") { |io_in, io_out, io_err, waith_thr| puts io_out.read; puts io_err.read }
sleep 20
require 'sqlite3/driver/native/Community.CsharpSqlite.dll'
module SQLite3 ; module Driver ; module Native
class CallbackData
attr_accessor :proc, :proc2, :data
end
class Driver
include Community::CsharpSqlite
require 'sqlite3/driver/native/Community.CsharpSqlite.dll'
module SQLite3 ; module Driver ; module Native
class CallbackData
attr_accessor :proc, :proc2, :data
end
class Driver
include Community::CsharpSqlite