Skip to content

Instantly share code, notes, and snippets.

View fsvehla's full-sized avatar

Ferdinand Svehla fsvehla

View GitHub Profile
#!/bin/bash
# Cronic v2 - cron job report wrapper
# Copyright 2007 Chuck Houpt. No rights reserved, whatsoever.
# Public Domain CC0: http://creativecommons.org/publicdomain/zero/1.0/
set -eu
OUT=/tmp/cronic.out.$$
ERR=/tmp/cronic.err.$$
switch(request.responseStatusCode) {
case 200:
SBJsonParser *jsonParser = [[[SBJsonParser alloc] init] autorelease];
NSDictionary *dictionary = [jsonParser objectWithString: [request responseString]];
1 def nodeunit(*files)
2 system "bin/nodeunit #{ files.join(' ') }"
3 end
4
5 watch("test/unit/.*") do |match|
6 nodeunit match[0]
7 end
8
9 # Run unit tests by default
10
Disk Test 142.12
Sequential 101.67
Uncached Write 41.85 25.69 MB/sec [4K blocks]
Uncached Write 194.92 110.29 MB/sec [256K blocks]
Uncached Read 128.17 37.51 MB/sec [4K blocks]
Uncached Read 397.72 199.89 MB/sec [256K blocks]
Random 236.04
Uncached Write 126.44 13.38 MB/sec [4K blocks]
Uncached Write 143.38 45.90 MB/sec [256K blocks]
Uncached Read 2413.15 17.10 MB/sec [4K blocks]
def call(source, request)
if request.ssl?
case
when javascript_file?(source)
ssl_asset_host(source)
when safari?(request)
asset_host(source)
when firefox?(request) && image_file?(source)
asset_host(source)
else
@fsvehla
fsvehla / Suchfeld
Created September 19, 2010 16:40 — forked from anonymous/Suchfeld
<script type="text/javascript">
function gotoLocation () {
window.location.href = 'http://itunes......./' + document.getElementById('targetstring').value + '?partnerId=2003';
}
</script>
<input type="text" name="targetstring" id="targetstring" >
<a href="javascript:gotoLocation()">Suchen</a>
</center>
UIAlertView *alert = [[UIAlertView alloc] initWithTitle: @"Webservice"
message: [request.error localizedDescription]
delegate: self
cancelButtonTitle: @"Allright"
otherButtonTitles: nil, nil];
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle: @"Warning"
message: insult
delegate: self
cancelButtonTitle: @"OK"
otherButtonTitles: nil
];
Lightning ~intranet ‹master*› ree-1.8.7-2010.02» git diff config/routes.rb
diff --git a/config/routes.rb b/config/routes.rb
index 716cd20..5646f59 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -145,7 +145,7 @@ ActionController::Routing::Routes.draw do |map|
map.resource :voxbone_import, :collection => {:preview => :post}
- map.connect '/tickets/assign/:ticket_id/to/:selected_user', :controller => "tickets", :action => "assign_to"
# gcc fork.c && ./a.out
allocated: 1 MB, fork() took 0.000
allocated: 10 MB, fork() took 0.001
allocated: 100 MB, fork() took 0.007
allocated: 1000 MB, fork() took 0.059
allocated: 10000 MB, fork() took 0.460
allocated: 20000 MB, fork() took 0.895
allocated: 30000 MB, fork() took 1.327
allocated: 40000 MB, fork() took 1.759
allocated: 50000 MB, fork() took 2.190