This file contains 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); | |
}); |
This file contains 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 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 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 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 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 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
$ rbx compile test.rb >log 2>&1 | |
Failed compiling test.rb | |
An exception occurred running compile: | |
undefined method `body' on an instance of CodeTools::AST::PushArgs. (NoMethodError) | |
Backtrace: | |
Kernel(CodeTools::AST::PushArgs)#body (method_missing) at kernel/delta/kernel.rb:78 |
This file contains 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
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'rails', github: 'rails/rails' |
This file contains 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
source 'https://rubygems.org' | |
gem 'dry-validation' |
This file contains 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
build: | |
image: docker:20.10.7 | |
services: | |
# hab dem auch mal einen alias gegeben, theoretisch muesste der als "docker" erreichbar sein | |
- docker:20.10.7-dind | |
variables: | |
# versucht mit oder ohne | |
DOCKER_DRIVER: overlay2 | |
# versucht mit oder ohne (deaktiviert TLS) | |
DOCKER_TLS_CERTDIR: "" |
OlderNewer