This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<match> | |
<test name="family"><string>sans-serif</string></test> | |
<edit name="family" mode="prepend" binding="weak"> | |
<!-- <string>Twemoji</string> --> | |
<string>PT Sans</string> | |
</edit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export RESTIC_REPOSITORY=rest:http://************ | |
export RESTIC_PASSWORD='*************' | |
EXCLUDES=/home/sergej/.duplicity-exclude | |
case "$1" in | |
"") | |
restic backup /home --exclude-file $EXCLUDES | |
;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export PASSPHRASE=$(secret-tool lookup name duplicity-backup) | |
duplicity --verbosity 5 \ | |
--full-if-older-than 1M \ | |
--exclude-filelist /home/sergej/.duplicity-exclude \ | |
/home/sergej sftp://backup//backups/volga | |
unset PASSPHRASE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
convert dsc_2034.jpg -rotate 90 -font DejaVu-Sans -pointsize 8 -gravity SouthWest -fill '#FFF4' -annotate +4+4 '© My Name' -rotate -90 output.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load-module module-remap-sink sink_name=reverse-stereo master=0 channels=2 master_channel_map=front-right,front-left channel_map=front-left,front-right | |
set-default-sink reverse-stereo | |
set-sink-volume 0 6553 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function()%20{%20var%20fileref%20=%20document.createElement('link');fileref.setAttribute('rel',%20'stylesheet');fileref.setAttribute('type',%20'text/css');fileref.setAttribute('href',%20'https://code.cdn.mozilla.net/fonts/fira.css');document.getElementsByTagName('head')[0].appendChild(fileref);%20document.body.style.fontFamily%20=%20"Fira%20Sans";%20})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Put these lines into /usr/share/rubber/rules.ini | |
; -- SVG to PDF conversion using Inkscape | |
[svgtopdf] | |
target = (.*)\.pdf | |
source = \1.{svg,svgz} | |
cost = 2 | |
rule = shell | |
command = inkscape -D -z --file=$source --export-pdf=$target | |
message = converting $source into $target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fullscreen Margins plugin backported for Gedit 2 | |
Version for Gedit 3 can be found at | |
https://github.com/sergejx/gedit-fullscreen-margins | |
Installation: Copy files fullscreen_margins.gedit-plugin and fullscreen_margins.py to | |
~/.gnome-2/gedit/plugins and enable plugin in Gedit preferences. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gi.repository import Gtk | |
settings = Gtk.Settings.get_default() | |
settings.set_property("gtk-application-prefer-dark-theme", True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Metaclass for caching objects based on constructor argument | |
class Cached(type): | |
def __new__(cls, name, bases, dct): | |
dct['_cache'] = {} | |
return super(Cached, cls).__new__(cls, name, bases, dct) | |
def __call__(cls, a): | |
try: | |
return cls._cache[a] | |
except KeyError: |
NewerOlder