- Create arbitrary .svg file in Inkscape
- Limit draving area to the drawed entities ( File / Document Properties) + add 1 cm on each side
- Set the drawin area width to 29cm (or width of the cutter).
- Possible add random circles to to extend the drawing to the top.
- Possible - convert all fonts into Paths ( Path / Object To Path )
- Save that .svg
- Open .svg in Robocut
- Load landscape A4 media to plotter, add few milimeters extra
This file contains hidden or 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
" Vim Syntax detect file | |
" Upload this to ~/.vim/ftdetect/icinga2.vim | |
au BufRead,BufNewFile /etc/icinga2/*.conf set filetype=icinga2 |
This file contains hidden or 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
>>> a_list = ['this is a list'] | |
>>> def empty(something): | |
... del a_list[:] | |
... | |
>>> a_list | |
['this is a list'] | |
>>> empty(a_list) | |
>>> a_list | |
[] |
This file contains hidden or 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
import unicodedata | |
unicode_string = u'Šílená kráva' | |
unicodedata.normalize('NFKD', unicode_string).encode('ASCII', 'ignore') | |
# out: 'Silena krava' |
This file contains hidden or 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
#!/usr/bin/env python | |
from pythonzimbra.tools import auth | |
from pythonzimbra.communication import Communication | |
SOAP_URL = 'https://zimbra.random.eu/service/soap/' | |
SOAP_ADMIN_URL = 'https://zimbra.random.eu:7071/service/admin/soap/' | |
USER = 'admin' | |
PASSWORD = 'password' |
This file contains hidden or 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
$messages_prune = '30 day' | |
cron{ 'bacula::catalog: Prune old messages from catalog': | |
command => | |
"mysql --user='${dbuser}' --password='${dbpassword}' --host='${dbhost}' --execute='DELETE FROM Log where Time < (now() - INTERVAL ${messages_prune});' ${dbname}", | |
hour => [23,07], | |
minute => 16, | |
user => bacula, | |
} |
This file contains hidden or 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
#!/usr/bin/env python | |
# -*- encoding: iso8859-2 -*- | |
WEB_2001 = '83.240.XX.XXX' | |
WEB_2008 = '193.19.XXX.XX' | |
MAIL_2001 = '83.240.39.188' | |
MAIL_2008 = '193.19.XXX.XX' | |
DEF_IP = WEB_2008 |
This file contains hidden or 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
filter { | |
# if it looks like json, tag it | |
if [type] == 'syslog' and [message] =~ '{.*}' { | |
json { | |
source => 'message' | |
target => 'json_data' | |
add_tag => ['has_json'] | |
} | |
} |
This file contains hidden or 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 django.db import connection | |
connection.vendor | |
# 'postgresql' or 'sqlite' | |
# via: http://stackoverflow.com/questions/18846174/django-detect-database-backend/18849255#18849255 |
This file contains hidden or 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
object CheckCommand "check_windows_disk_nrpe" { | |
import "plugin-check-command" | |
command = [ Socksify, "/usr/lib/nagios/plugins/check_nrpe" ] | |
arguments = { | |
"-H" = "$host.address$" | |
"-c" = "CheckDriveSize" | |
"-a" = { | |
value = "$nrpe_args$" | |
repeat_key = false |