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
## app/controllers/application_controller.rb | |
class ApplicationController < ActionController::Base | |
@@silenced_actions = [:home] | |
def home | |
end | |
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
#!/bin/bash | |
mkdir weird_libtoolize_behaviour | |
cd weird_libtoolize_behaviour | |
mkdir works | |
cd works | |
git clone https://git.gitorious.org/openismus-playground/examplelib.git &>/dev/null | |
cd examplelib | |
./autogen.sh &>/dev/null |
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_relative 'spec_helper' | |
describe 'A' do | |
describe 'B', :a => :b do | |
it 'succeeds' do | |
puts 'succeeds' | |
end | |
end | |
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
require 'fileutils' | |
FileUtils.mkdir_p('test') | |
Dir.chdir('test') do | |
['1', '2'].each do |i| | |
FileUtils.mkdir_p(i) | |
Dir.chdir(i) do | |
`git init` | |
`touch repo_#{i} && git add repo_#{i} && git commit -m 'initial commit'` | |
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
#!/bin/sh | |
echo "Starting up XServer in memory..." | |
#Xvfb :11 -screen 0 1920x1080x24 & | |
Xvfb :11 -screen 0 1680x1024x24 & | |
sleep 2 | |
echo "Starting Chrome..." | |
#firefox --display :11 | |
#firefox --display :11 "http://google.de/" & |
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
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | |
<script> | |
$(function() { | |
$("#degooglefy").click(function() { | |
var inpt = $("#link"); | |
var url = (inpt.val().match(/url=(.*?)&/)[1]).replace(/%3A/g, ":").replace(/%2F/g, "/"); | |
inpt.val(url); | |
}); |
NewerOlder