Skip to content

Instantly share code, notes, and snippets.

Lena Herrmann kilaulena

View GitHub Profile
View backend error.sh
web | POST /quote
web | ERROR [2020-07-29 11:53:46,289] [a2a441ebe0184341a2354a1484740a2a] sales_cockpit_be.recommendation_client: Could not post data to `https://sales-cockpit-reco-test.zms-automation-test.zalan.do/recommendation-sales-cockpit` (401)
web | Stack (most recent call last):
web | File "/usr/local/lib/python3.8/site-packages/gevent/baseserver.py", line 26, in _handle_and_close_when_done
web | return handle(*args_tuple)
web | File "/usr/local/lib/python3.8/site-packages/gunicorn/workers/ggevent.py", line 155, in handle
web | super(GeventWorker, self).handle(listener, client, addr)
web | File "/usr/local/lib/python3.8/site-packages/gunicorn/workers/base_async.py", line 56, in handle
web | self.handle_request(listener_name, req, client, addr)
web | File "/usr/local/lib/python3.8/site-packages/gunicorn/workers/ggevent.py", line 159, in handle_request
@kilaulena
kilaulena / gist:8006679
Last active Dec 31, 2015
hello world in mysql
View gist:8006679
# encoding: UTF-8
# based on http://zetcode.com/db/mysqlrubytutorial/
#
# gem install mysql2
require 'mysql'
begin
con = Mysql.new 'localhost', 'root', ''
View Studentin.java
public class Studentin
{
private String name;
private String vorname;
private String studiengang;
private int matrikelnummer;
Studentin () {} //Standardkonstruktor
Studentin (String n, String v, String f, int m)
View stats.sh
#!/bin/bash
# Tells you how your photos are distributed over the year - in which months do you take the most photos?
#
# call with
# ./stats.sh 2>/dev/null
# because there will be some broken exif data
date
echo "Total photos:"
@kilaulena
kilaulena / gist:2561283
Created Apr 30, 2012
Drilling in your wall and not in cables
View gist:2561283
TIL when you drill in your wall (eg to hang up a shelf), these are ways to avoid drilling into a power
supply:
- I always thought this rule of thumb would suffice: do not drill within a straight vertical or
horizontal line from power sockets. TIL in Germany to be on the safe side, you need to add a 20cm safety
distance to each side of these lines. Within this distance can be supply lines too!
- Power supply line detectors are worthless when they are cheap, the pricier ones can help you a bit, but
they still are no guarantee: when the lines are deeper within the wall, they can not be detected exactly
at all.
View gist:1393495
1) Error:
test_0001_should_allow_to_add_a_place_to_favorites_being_logged_in(Acceptance: Favorite a place):
ActionView::Template::Error: undefined method `params' for #<UserMailer:0x00000107ff28e8>
/Users/lena/.bundle/ruby/1.9.1/gems/actionpack-3.0.11/lib/action_view/base.rb:193:in `params'
/Users/lena/.bundle/ruby/1.9.1/bundler/gems/i18n_viz-50d42526ecf5/lib/i18n_viz/view_helpers.rb:22:in `display_i18n_viz?'
/Users/lena/.bundle/ruby/1.9.1/bundler/gems/i18n_viz-50d42526ecf5/lib/i18n_viz/view_helpers.rb:5:in `translate'
/Users/lena/devel/railslove/lysbon/app/views/user_mailer/confirmation_instructions.text.erb:1:in `_app_views_user_mailer_confirmation_instructions_text_erb___174597756938345910_2233858620_1726467605911877121'
/Users/lena/.bundle/ruby/1.9.1/gems/actionpack-3.0.11/lib/action_view/template.rb:162:in `block in render'
/Users/lena/.bundle/ruby/1.9.1/gems/activesupport-3.0.11/lib/active_support/notifications.rb:54:in `instrument'
/Users/lena/.bundle/ruby/1.9.1/gems/actionp
View gist:1211148
Started POST "/de/users/sign_in" for 127.0.0.1 at 2011-09-12 14:31:45 +0200
Processing by SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"yZ1fPD2woiGNaoVwKdOdFi0Ta2pBiXCR1mEX59T1K8M=", "user"=>{"email"=>"anonymous+1148@railslove.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Anmelden", "locale"=>:de}
User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'anonymous+1148@railslove.com' AND (users.deleted_at IS NULL) LIMIT 1
Completed in 126ms
Processing by SessionsController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"yZ1fPD2woiGNaoVwKdOdFi0Ta2pBiXCR1mEX59T1K8M=", "user"=>{"email"=>"anonymous+1148@railslove.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Anmelden", "locale"=>:de}
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'anonymous+1148@railslove.com' AND (users.deleted_at IS NULL) LIMIT 1
Rendered registrations/_signup_form.html.haml (21.0ms)
Rendered users/sessions/_
@kilaulena
kilaulena / js_steps.rb
Created Jul 7, 2011
test capybara visibility
View js_steps.rb
Then /^"([^\"]+)" should be visible$/ do |text|
assert page.has_xpath?("//*[not(descendant-or-self::script)][ancestor::*[contains(@style,'display: none;')]][contains(normalize-space(.),'#{text}')]")
end
Then /^"([^\"]+)" should not be visible$/ do |text|
assert page.has_xpath?("//*[not(descendant-or-self::script)][ancestor::*[contains(@style,'display: none;')]][contains(normalize-space(.),'#{text}')]")
end
View gist:1044537
2011-05-18 12:00:15 +0200: Read error: #<TypeError: can't convert nil into Hash>
/Users/lena/.rvm/gems/ruby-1.9.2-p180-patched@lysbon/gems/rack-1.2.3/lib/rack/request.rb:167:in `update'
/Users/lena/.rvm/gems/ruby-1.9.2-p180-patched@lysbon/gems/rack-1.2.3/lib/rack/request.rb:167:in `params'
/Users/lena/.rvm/gems/ruby-1.9.2-p180-patched@global/gems/hoptoad_notifier-2.4.9/lib/hoptoad_notifier/notice.rb:312:in `rack_env'
/Users/lena/.rvm/gems/ruby-1.9.2-p180-patched@global/gems/hoptoad_notifier-2.4.9/lib/hoptoad_notifier/notice.rb:85:in `initialize'
/Users/lena/.rvm/gems/ruby-1.9.2-p180-patched@global/gems/hoptoad_notifier-2.4.9/lib/hoptoad_notifier.rb:139:in `new'
/Users/lena/.rvm/gems/ruby-1.9.2-p180-patched@global/gems/hoptoad_notifier-2.4.9/lib/hoptoad_notifier.rb:139:in `build_notice_for'
/Users/lena/.rvm/gems/ruby-1.9.2-p180-patched@global/gems/hoptoad_notifier-2.4.9/lib/hoptoad_notifier.rb:103:in `notify_or_ignore'
/Users/lena/.rvm/gems/ruby-1.9.2-p180-patched@global/gems/hoptoad_notifier-2.4.9/lib/hoptoad
View gist:980536
== NEW SPHINX SETUP ==
--- the dirty way ---
- installing latest sphinx from svn (2.0.2)
(because when we take the last stable version we get this error on ts:rebuild: https://gist.github.com/958819)
$ svn checkout http://sphinxsearch.googlecode.com/svn/trunk/ sphinxsearch-read-only
$ cd sphinxsearch-read-only
$ ./configure && make install
$ rake ts:config
$ rake ts:rebuild
You can’t perform that action at this time.