View Application.java
@SpringBootApplication
@EnableDiscoveryClient
@EnableScheduling
@EnableAsync
@EnableConfigurationProperties
@PropertySource("mapping.properties")
@EnableAutoConfiguration
@EnableFeignClients("me.rozhkov.integration")
@EnableRetry
@ComponentScan({
View fix-joda-time-2.5-7mk
cd ~/cache/gradle/wrapper/dists/gradle-2.5-bin/7mk8vyobxfh3eazpg3pi2y9mv/gradle-2.5/lib/plugins
wget https://bintray.com/artifact/download/jodastephen/maven/joda-time/joda-time/2.8.2/joda-time-2.8.2.jar
rm joda-time-2.7.jar
mv joda-time-2.8.2.jar joda-time-2.7.jar
View fix-joda-time.sh
cd ~/cache/gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/plugins
wget https://bintray.com/artifact/download/jodastephen/maven/joda-time/joda-time/2.8.2/joda-time-2.8.2.jar
rm joda-time-2.7.jar
mv joda-time-2.8.2.jar joda-time-2.7.jar
View gist:4663441
#http://www.sakana.fr/blog/2010/01/17/linux-unix-disk-usage-and-identifying-biggest-files/
kattoo@roadrunner ~/Downloads $ df | sort -n -k 5,5
Filesystem 1K-blocks Used Available Use% Mounted on
shm 2029696 0 2029696 0% /dev/shm
# largest folders
kattoo@roadrunner /usr/portage $ du -sk * | sort -n | tail -20
# find large files
kattoo@roadrunner /usr/portage $ find . -type f -size +10000000c -exec ls -l \{} \; | sort -n -k 5,5 | tail -10
View address_decorator.rb
Deface::Override.new(:name => "remove billing address form",
:virtual_path => "spree/checkout/_address",
:remove => "#billing[data-hook]"
)
Deface::Override.new(:name => "remove use billing address checkbox",
:virtual_path => "spree/checkout/_address",
:remove => "[data-hook='use_billing']"
)