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)
@falsefalse
falsefalse / bookmarklet.js
Last active June 26, 2016 14:09
FriendFeed bookmarklet that ain't broken in Chrome (and other sane webkits)
javascript:void((function(){var%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('src','https://cdn.rawgit.com/falsefalse/dc7bb726add8b19a741c/raw/bcb52121789465edc635ca9f244c21a997b00d04/share.js');document.body.appendChild(e)})())
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 / Грехи.md
Last active September 16, 2016 09:35
Грехи

Что же касается злодеяний, то они таковы:

пренебрежение к добру и любовь к убийствам, склонность говорить одно, а думать другое, предпочитать говорить за спиной то, что не говорится в лицо, отворачиваться от праведного и честного, подавлять нижестоящих, лгать вышестоящим, бунтовать, находясь на службе, не испытывать благодарности за сделанное тебе добро, брать взятки у людей, нарушивших закон, следовать кривде и извращать правду, ставить личное выше общественного, наказывать невиновного, разрушать чужие семьи, присваивать имущество других людей, вредить здоровью других, лишать других людей положения, притеснять мудрецов, казнить сдавшихся в плен, клеветать на бессмертных и совершенномудрых, причинять вред мужам Дао-Пути, стрелять по летящим птицам, вырезать зародыши из материнского тела, разбивать яйца птиц, охотиться весной и летом, кощунствовать и поносить божественное и одухотворенное, учить людей дурному, отрицать добрые качества других, устрашать людей ради собственного спокойствия, обирать других ради

# 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 -x2
excludesfile = /Users/falsefalse/.gitignore_global
[color]
ui = auto
// browserstack (read: IE11) config
const karma = require('./karma.common.js')
const appComponents = require('./app_components.js')
const browserStackLauncher = {
ie11: {
'base': 'BrowserStack',
'browser': 'ie',
'browser_version': '11.0',
'os': 'Windows',
@falsefalse
falsefalse / run_active_file_in_terminus.py
Last active July 25, 2023 14:17
Run active file in the terminus terminal, similar to vscode "Run active file in active terminal" command
import sublime
import sublime_plugin
from os.path import relpath
class RunActiveFileInTerminusCommand(sublime_plugin.TextCommand):
def relative_path(self, filename):
return min(
(
relpath(filename, folder)
for folder in sublime.active_window().folders()