Skip to content

Instantly share code, notes, and snippets.

View wolfhesse's full-sized avatar

wolf hesse wolfhesse

  • andel systems engineering
  • vienna, at
View GitHub Profile
class ControlStrip < ActiveRecord::Base
if respond_to? :fields
fields do
title :string, :limit => 120
text :text
sequence :integer
priority :integer, :default => 5
when_due :datetime
ts_update :datetime
person :string, :limit => 120, :default => "anonymous"
@wolfhesse
wolfhesse / ce.01.js
Created August 24, 2010 08:54
rel:lang:javascript
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready( function(){
(function(){
var url = document.URL;
var userAgent = navigator.userAgent.toLowerCase();
var browser = {
====
monitoring groups:
hashtags-collection;
twitter-lists ^ groups monitoring
facebook pages with regular updates
====
IN >>
@wolfhesse
wolfhesse / localhost-wget.sh
Created April 26, 2012 01:51
localhost web access
wget -qO- 127.0.0.1
@wolfhesse
wolfhesse / gist:4033031
Created November 7, 2012 17:17
wrk.r20121107.datascience
@wolfhesse
wolfhesse / rsync-ssh-port.sh
Last active December 14, 2015 16:48
rsync with non-standard ssh-port (22) commandline
# r20130829 reform, make-callable
# rsync --rsh="ssh -p {ssh-port}" {local-path} {user}@{ip-add}:{path}/
PORT=$1
LOCAL_PATH=$2
USER=$3
IP_ADDRESS=$4
REMOTE_PATH=$5
rsync -rsh="ssh -p $PORT" $LOCAL_PATH $USER@$IP_ADDRESS:$REMOTE_PATH
@wolfhesse
wolfhesse / ssh-copy-id-with-non-standard-port.sample.sh
Last active September 21, 2017 23:57
ssh-copy-id with non-standard port (non-default 22) #nix #admin
# r20130829 for #pre r2kd8
# http://unix.stackexchange.com/questions/29401/is-it-possible-to-run-ssh-copy-id-on-port-other-than-22
ssh-copy-id "user@host -p 8129"
@wolfhesse
wolfhesse / lotto_sechser.rb
Last active November 15, 2017 03:03
rel:lang:rb dein naechster lottosechser quicktip
#
a=nil;
while (a||=[]).length<6 do a << 1.upto(45).to_a.sample;a.uniq!; end; a
#
a=nil;while (a||=[]).length<6 do a << 1.upto(45).to_a.sample;a.uniq!; end; a
#
while (a||=[]).length<6 do a << 1.upto(45).to_a.sample;a.uniq!; end; a
#
a.sort!
@wolfhesse
wolfhesse / r20130704_call_jake
Created July 4, 2013 16:35
rel:lang:js javascript make jake call
jake --jakefile r20130704_allsync.js second --trace 2>/dev/null | tee second.res.txt
@wolfhesse
wolfhesse / support_j
Created July 5, 2013 09:57
wiener ferienspiel
mongodb -> http://mongodb.github.io/node-mongodb-native/