Skip to content

Instantly share code, notes, and snippets.

@rca
rca / redmine_svn_to_git_migrator.rb
Created July 15, 2010 18:10 — forked from colszowka/redmine_svn_to_git_migrator.rb
Redmine SVN to Git Migrator
#!/usr/bin/ruby
#
# Migration Tool for Redmine issue and time entry comments from SVN revisions to Git (i.e. r1234 => commit:abcdef789)
# ==============================
# (c) 2009 Christoph Olszowka & Sebastian Georgi, Capita Unternehmensberatung
#
# We used this when we migrated two of our main repositories from svn to git (see http://gist.github.com/139478)
# and wanted to have our revision links in Redmine reflect that change, too.
#
@rca
rca / mongrel.rb
Created February 14, 2011 22:16 — forked from metaskills/mongrel.rb
if ['2.3.8', '2.3.9', '2.3.10', '2.3.11'].include?(Rails.version) && Gem.available?('mongrel', '~>1.1.5') && self.class.const_defined?(:Mongrel)
# Pulled right from latest rack. Old looked like this in 1.1.0 version.
#
# def [](k)
# super(@names[k] ||= @names[k.downcase])
# end
#
module Rack
module Utils
@rca
rca / svn2git_migration.sh
Created September 28, 2011 21:14 — forked from colszowka/svn2git_migration.sh
svn to git migration notes
#
# Migration tool from SVN to git
# ==============================
# (c) 2009 Christoph Olszowka, Capita Unternehmensberatung
#
# This is not meant for usage in an actual shell script - you're better off running
# each individual block (marked by the comments) separately and check the output to see if everything
# went right - this is more a writeup of the required steps so I can remember them rather than a
# shoot-and-forget-solution.
#
@rca
rca / redmine_svn_to_git_migrator.rb
Created September 29, 2011 00:24 — forked from colszowka/redmine_svn_to_git_migrator.rb
redmine svn to git migrator
#!/usr/bin/ruby
#
# Migration Tool for Redmine issue and time entry comments from SVN revisions to Git (i.e. r1234 => commit:abcdef789)
# ==============================
# (c) 2009 Christoph Olszowka & Sebastian Georgi, Capita Unternehmensberatung
#
# We used this when we migrated two of our main repositories from svn to git (see http://gist.github.com/139478)
# and wanted to have our revision links in Redmine reflect that change, too.
#
@rca
rca / gist:1736835
Created February 4, 2012 09:55 — forked from davidszotten/gist:1091866
fabric bash completion
_fab()
{
_fab_commands=$(fab --shortlist)
local cur prev
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
COMPREPLY=( $(compgen -W "${_fab_commands}" -- ${cur}) )
case "${COMPREPLY}" in
# MIT License:
#
# Copyright (C) 2012 Heroku, Inc.
#
# 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 furnished to do
# so, subject to the following conditions:
#!/bin/bash
GFORTRAN_URL='http://gcc.gnu.org/wiki/GFortranBinaries#MacOS'
which gfortran
[ "$?" != "0" ] && echo "download and install gfortran from ${GFORTRAN_URL}" && exit 1
# set up flags for Numpy C extentions compiling
export CFLAGS="-arch i386 -arch x86_64"
export FFLAGS="-m32 -m64"
@rca
rca / zfs_install.sh
Last active December 13, 2020 18:23 — forked from Alexey-Tsarev/zfs_install.sh
ZFS 0.8 at Raspberry Pi
#!/usr/bin/env sh
set -e
set -x
ZFS_RELEASE=zfs-2.0-release
# keep track of the current directory
CUR_PWD="$(pwd)"
@rca
rca / Decrapifier.ps1
Created May 4, 2021 15:36 — forked from gvlx/Windows 10 Decrapifier, 1803_1809.ps1
Windows 10 Decrapifier
#Windows 10 Decrapifier 18XX/19XX
#By CSAND
#Mar 01 2021
#
#
#PURPOSE: Eliminate much of the bloat that comes with Windows 10. Change many privacy settings to be off by default. Remove built-in advertising, Cortana, OneDrive, Cortana stuff (all optional). Disable some data collection.
# Clean up the start menu for new user accounts. Remove a bunch of pre-installed apps, or all of them (including the store). Create a more professional looking W10 experience. Changes some settings no longer
# available via GPO for Professional edition. All of this without breaking Windows.
#
#DISCLAIMER: Most of the changes are easily undone, but some like removing the store are difficult to undo. You should use local/group policy to remove the store if you want.