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
#!/usr/bin/env ruby | |
require 'rubocop' | |
require 'english' | |
ADDED_OR_MODIFIED = /A|AM|^M/ | |
# to prevent code injection: system is a dangerous call | |
def raise_single_quote_error | |
raise ArgumentError, 'Single quotes are not allowed in filenames here.' |
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
use_bpm 120 | |
live_loop :yeah do | |
with_fx :ring_mod do | |
with_fx :wobble do | |
use_synth :tb303 | |
sample :bass_hard_c, attack: 3, release: 2, amp: 4, slope_below: 5, pitch: -12 | |
sleep 2 | |
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/sh | |
# exit on any error (the called tool output should be enough) | |
set -e | |
# credo checks | |
mix credo --strict | |
# tests | |
mix test |
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 'uri' | |
require 'digest/md5' | |
caOrderValue = '0.00'; # orem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sollicitudin, mi ac lobortis feugiat, ligula augue eleifend libero, vitae suscipit sem nisi ac augue | |
caOrderReference = URI::escape('blafoo'); | |
caEventID = 'somenumber'; # orem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sollicitudin, mi ac lobortis feugiat, ligula augue eleifend libero, vitae suscipit sem nisi ac augue | |
caComment = ''; # lorem ipsum | |
caMultiple = '1'; | |
caItems = ''; # (Optional) orem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sollicitudin, mi ac lobortis feugiat, ligula augue eleifend libero, vitae suscipit sem nisi ac augue. | |
# Aenean hendrerit, neque at imperdiet auctor, diam eros interdum lorem, eu suscipit augue risus id neque. |
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
addWorksListener($('.commodity_works')); | |
function addWorksListener (obj) { | |
obj.change(function () { | |
if ( $('.commodity_works').size() == 1 ) { | |
var id = $('#commodity_works').val(); | |
pasteDataFromWork(id); | |
} else { | |
$('.commodity_works').each( function() { | |
$.getJSON( 'http://fileservr.technoload.abc:3000/works/' + $(this).val() + '/filetype.json', function (data,result) { |
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 'url_escape' | |
module Fileservr::WorksHelper | |
def new_work_path_with_session_information | |
session_key = ActionController::Base.session_options[:key] | |
new_fileservr_work_path(session_key => cookies[session_key], request_forgery_protection_token => form_authenticity_token) | |
end | |
def javascript_for_uploader |
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 | |
# Name | |
echo -n "Username:" | |
read name | |
#home | |
echo -n "Homeverzeichnis:" | |
read home | |
#Gruppe | |
echo -n "Gruppe:" | |
read gruppe |
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
fileservr:/usr/local/development/tnl-com# rake middleware --trace | |
(in /usr/local/development/tnl-com) | |
** Invoke middleware (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
** Execute middleware | |
use Rack::Lock | |
use ActionController::Failsafe | |
use FlashSessionCookieMiddleware, "_tnl-com_session" | |
use ActiveRecord::ConnectionAdapters::ConnectionManagement |
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
fileservr:/usr/local/development/bla# rake middleware --trace | |
(in /usr/local/development/bla) | |
** Invoke middleware (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
rake aborted! | |
uninitialized constant FlashSessionCookieMiddleware | |
/usr/local/jruby-1.4.0/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:443:in `load_missing_constant' | |
/usr/local/jruby-1.4.0/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing_with_dependencies' | |
/usr/local/jruby-1.4.0/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in `const_missing' |
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
Jul 21 11:51:22 Edoras.home GoogleSoftwareUpdateDaemon[9784]: -[KSUpdateCheckAction(KSServerUpdateRequestDelegate) serverRequest:fetchedWithResponse:] KSUpdateCheckAction received KSServerUpdateResponse: <KSOmahaServerUpdateResponse:0x31c690 | |
server=<KSOmahaServer:0x3162f0> | |
url="https://tools.google.com/service/update2?cup2hreq=5f60b48be22b0bebbe6692f50405cf3d006ce025a6c5e101d10258ec48436bfb&cup2key=5:1768919880" | |
status=200 | |
tickets=1 | |
activeTickets=1 | |
rollCallTickets=1 | |
data= | |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<gupdate xmlns="http://www.google.com/update2/response" protocol="2.0" server="prod"> |
NewerOlder