Skip to content

Instantly share code, notes, and snippets.

@qwazix
qwazix / openlocation.lua
Created August 1, 2017 22:12
darktable open image location shortcut
--[[
This file is copyright (c) 2017 Michael Demetriou
It is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This file is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@qwazix
qwazix / inhibit_suspend.py
Last active January 21, 2017 11:04
Inhibit suspend in gnome while rendering in blender
# © Michael Demetriou 2017
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@qwazix
qwazix / backup
Created August 19, 2015 06:12
Backup your owncloud instance to Amazon Glacier
#!/bin/bash
#install glacier-cmd
#set up your ~./glacier-cmd file
#run this in a cron job
name=/home/user/backups/c.d-e.gr_$(date '+%y-%m-%d').tar.gz
mysqldump --lock-tables -h localhost -u dbuser -pdbpass, dbname > /home/owncloud/dbbackup/owncloud-sqlbkp.bak
tar czvf "$name" /home/owncloud
glacier-cmd upload c.d-e.gr $name
@qwazix
qwazix / compilaton error m - c
Created March 23, 2013 12:55
Error building m - c
c++ -o SVGViewElement.o -c -fvisibility=hidden -DMOZ_GLUE_IN_PROGRAM -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES -DSTATIC_EXPORTABLE_JS_API -DNO_NSPR_10_SUPPORT -D_IMPL_NS_LAYOUT -I/home/qwazix/scratchboxenv/mozembed/mozilla-central/content/svg/content/src -I. -I../../../../dist/include -I/home/qwazix/scratchboxenv/mozembed/mozilla-central/objdir-armel/dist/include/nspr -I/home/qwazix/scratchboxenv/mozembed/mozilla-central/objdir-armel/dist/include/nss -I/home/qwazix/scratchboxenv/mozembed/mozilla-central/content/svg/content/src/../../../xml/content/src -I/home/qwazix/scratchboxenv/mozembed/mozilla-central/content/svg/content/src/../../../../dom -I/home/qwazix/scratchboxenv/mozembed/mozilla-central/content/svg/content/src/../../../base/src -I/home/qwazix/scratchboxenv/mozembed/mozilla-central/content/svg/content/src/../../../../layout/generic -I/home/qwazix/scratchboxenv/mozembed/mozilla-central/con