Skip to content

Instantly share code, notes, and snippets.

View tarator's full-sized avatar

Georg Abenthung tarator

View GitHub Profile
@tarator
tarator / useful-one-liners.sh
Created January 13, 2022 22:50 — forked from johnnypea/useful-one-liners.sh
Useful one liners
# Run the last command as root
sudo !!
# Serve current directory tree at http://$HOSTNAME:8000/
python -m SimpleHTTPServer
# Save a file you edited in vim without the needed permissions
:w !sudo tee %
# change to the previous working directory
cd -
# Runs previous command but replacing
^foo^bar
[2017-08-21T08:34:43] INFO PID-20739 TID-10247120 Rails: Started GET "/profile/edit" for 84.113.5.52 at 2017-08-21 08:34:43 +0200
[2017-08-21T08:34:43] INFO PID-20739 TID-10247120 ActionController::Base: Processing by ProfilesController#edit as HTML
[2017-08-21T08:34:43] INFO PID-20739 TID-10247120 ActionController::Base: Completed 500 Internal Server Error in 29ms (ActiveRecord: 1.0ms)
[2017-08-21T08:34:43] FATAL PID-20739 TID-10247120 Rails:
[2017-08-21T08:34:43] FATAL PID-20739 TID-10247120 Rails: ActionView::Template::Error (undefined method `to_i' for true:TrueClass):
[2017-08-21T08:34:43] FATAL PID-20739 TID-10247120 Rails: 30: %h4= t('profiles.edit.your_birthday')
31:
32: #birth-date.form-inline
33: = select_date profile.birthday, { prompt: true, default: true, order: t('date.order'),
kf5.kiconthemes: "Theme tree: (Breeze)"
Invalid pixmap specified.
QTimeLine::setDuration: cannot set duration <= 0
Invalid pixmap specified.
QTimeLine::setDuration: cannot set duration <= 0
Invalid pixmap specified.
QTimeLine::setDuration: cannot set duration <= 0
kf5.kservice.sycoca: Trying to open ksycoca from "/home/<user>/.cache/ksycoca5"
Invalid pixmap specified.
QTimeLine::setDuration: cannot set duration <= 0
@tarator
tarator / fixedDelayError
Created August 13, 2013 22:24
fixedDelayError
java.lang.IllegalStateException: Encountered invalid @Scheduled method 'sendNextInQueue': Invalid fixedDelayString value "${shortMessageServiceQueueDelay}" - cannot parse into integer
at org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor$1.doWith(ScheduledAnnotationBeanPostProcessor.java:219)
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:473)
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:451)
at org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor.postProcessAfterInitialization(ScheduledAnnotationBeanPostProcessor.java:109)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:409)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1488)
at org.springframework.beans.factory.support.AbstractAutow
Argumente: " <?xml version='1.0' encoding='UTF-8'?>\n <diaspora xmlns=\"https://joindiaspora.com/protocol\" xmlns:me=\"http://salmon-protocol.org/ns/magic-env\">\n <header> <author_id>ryuken@diasp.de</author_id>\n</header>\n <me:env>\n <me:data type='application/xml'>ICAgICAgICAgIDxYTUw-CiAgICAgICAgICA8cG9zdD48c3RhdHVzX21lc3NhZ2U-CiAgPHJhd19tZXNzYWdlPjwvcmF3X21lc3NhZ2U-CiAgPHBob3RvPgogICAgPGd1aWQ-Y2FhMDk1NjA3OWM0Y2UwYTwvZ3VpZD4KICAgIDxkaWFzcG9yYV9oYW5kbGU-cnl1a2VuQGRpYXNwLmRlPC9kaWFzcG9yYV9oYW5kbGU-CiAgICA8cHVibGljPmZhbHNlPC9wdWJsaWM-.......
Fehler klasse: ActiveRecord::RecordInvalid
Fehler-Nachricht Validation failed: Photos is invalid
Fehler-Backtrace
lib/postzord/receiver/public.rb:61:in `save_object'
lib/postzord/receiver/public.rb:26:in `receive!'
@tarator
tarator / gist:5438248
Created April 22, 2013 20:28
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
metadata-complete="false" >
<display-name>Therapy-App</display-name>
<jsp-config>
<taglib>
@tarator
tarator / LifepulseServletInitializer.java
Created March 19, 2013 16:49
Implementation of AbstractAnnotationConfigDispatcherServletInitializer (Spring WebMVC)
package com.ansiworks.lifepulse;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
import com.ansiworks.lifepulse.config.LifepulseWebConfig;
import com.ansiworks.lifepulse.config.PersistenceConfig;
public class LifepulseServletInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
@tarator
tarator / error.out
Created April 25, 2012 19:52
Error
Exception in thread "main" java.lang.NullPointerException
at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:129)
at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81)
at $Proxy43.setString(Unknown Source)
at org.hibernate.type.descriptor.sql.VarcharTypeDescriptor$1.doBind(VarcharTypeDescriptor.java:57)
at org.hibernate.type.descriptor.sql.BasicBinder.bind(BasicBinder.java:92)
at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:305)
at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:300)
at org.hibernate.type.AbstractSingleColumnStandardBasicType.nullSafeSet(AbstractSingleColumnStandardBasicType.java:57)
at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:2599)
@tarator
tarator / paypal_button_snippet
Created April 20, 2012 12:19
PayPal generated Button
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="W4W5YW7RNRAAJ">
<input type="hidden" name="lc" value="AT">
<input type="hidden" name="item_name" value="Diasporta">
<input type="hidden" name="amount" value="15.00">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
<input type="image" src="https://www.paypalobjects.com/de_DE/AT/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="Jetzt einfach, schnell und sicher online bezahlen – mit PayPal.">
@tarator
tarator / segfault.err
Created April 12, 2012 20:39
Diasoira Segmentation fault bundle exec rake assets:precompile
bundle exec rake --trace assets:precompile
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/home/tarator/.rvm/rubies/ruby-1.9.2-p290/bin/ruby /opt/diaspora/vendor/bundle/ruby/1.9.1/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke tmp:cache:clear (first_time)