Skip to content

Instantly share code, notes, and snippets.

View falsefalse's full-sized avatar

Illia Furman falsefalse

View GitHub Profile
[info] INFO DbValidate - Validated 50 migrations (execution time 00:00.428s)
[info] WARN DBMigrator - Creating db backup
[info] ERROR DBMigrator - Failed to apply migrations
[info] java.lang.RuntimeException: Could not backup before applying migration
[info] at scala.sys.package$.error(package.scala:27)
[info] at com.keenprint.migration.DBMigrator$$anon$1.<init>(DBMigrator.scala:68)
[info] at com.keenprint.migration.DBMigrator.migrate(DBMigrator.scala:50)
[info] at bootstrap.liftweb.Boot.boot(Boot.scala:59)
[info] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[info] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
Exception occured while processing /admin/store/122
Message: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
scala.runtime.BoxesRunTime.unboxToBoolean(BoxesRunTime.java:90)
com.keenprint.lift.helpers.FormField$$anon$2.ajaxText(FormField.scala:82)
com.keenprint.lift.helpers.FormField$$anonfun$cssSelector$1.apply(FormField.scala:61)
com.keenprint.lift.helpers.FormField$$anonfun$cssSelector$1.apply(FormField.scala:61)
net.liftweb.util.CanBind$$anon$17.apply(CssSel.scala:808)
net.liftweb.util.ToCssBindPromoter$$anon$1.calculate(CssSel.scala:905)
net.liftweb.util.SelectorMap$SlurpedAttrs.applyRule(CssSel.scala:403)
net.liftweb.util.SelectorMap$SlurpedAttrs.applyRule(CssSel.scala:188)
@falsefalse
falsefalse / .gitconfig
Created July 31, 2014 11:00
Start with this
# mostly taken from http://cheat.errtheblog.com/s/git
[core]
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
# display tab as 2 spaces instead of 8
# http://www.liferay.com/web/raymond.auge/blog/-/blogs/setting-tabwidths-to-match-the-project-settings-in-git-and-vi
pager = less -FXRS -x2
[color]
ui = auto
[color "branch"]
current = yellow reverse
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
#! /usr/bin/env bash
function nEnabled {
system_profiler -detailLevel mini SPAirPortDataType | grep -e 'Supported PHY Modes: .*n'
}
until nEnabled && sleep 5 && nEnabled;
do
echo 'resetting airport'
networksetup -setairportpower en1 off; networksetup -setairportpower en1 on
@falsefalse
falsefalse / gist:439444
Created June 15, 2010 18:08
afair, this prints dimensions for all background images on the page
console.clear && console.clear();
var images = [];
var elements = document.querySelectorAll('#global div');
for (var i = 0, l = elements.length; i < l; i++) {
var element = elements[i];
var bgImg = document.defaultView.getComputedStyle(element, null).getPropertyValue('background-image');
if (bgImg == 'none') {
continue;
}
var match = bgImg.match(/url\((.+)\)/);
@falsefalse
falsefalse / mongrel.sh
Created March 22, 2011 21:35
manage mongrel in development enviroment
We couldn’t find that file to show.
// swap name and last name in JIRA
// that way is convenient to find people as you type
Array.prototype.forEach.call($('#assignee option[value!=-1]'), function(o) {
var t = o.innerText;
o.innerText = t.split(' ').reverse().join(' ');
});
@falsefalse
falsefalse / .gitignore
Created November 20, 2011 00:05
Add all LaterLoop unread links to Instapaper
node_modules
@falsefalse
falsefalse / list.txt
Last active October 11, 2015 12:37
Spy movies
Spy Game, 2001
The Good Shepherd, 2006
The Ghost Writer, 2010
Ronin, 1998
The Spy Who Came in from the Cold, 1965
Tinker Tailor Soldier Spy, 2011
The American, 2010
A Most Wanted Man, 2014