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
case $(xrandr|grep LVDS|sed -e 's/(.*$//'|cut -d" " -f5) in | |
"") # Screen is not rotated, we should rotate it right (90°) | |
xrandr -o 3 | |
;; | |
*) # screen is rotated, we should set it normal (0°) | |
xrandr -o 0 |
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
if (!DB.jndiJdbcConnAvailable_?) DB.defineConnectionManager(MySqlDbVendor(("jdbc:mysql://localhost:3306/example", "user", "password") |
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
if($_SERVER['HTTP_HOST'] === 'example.com') | |
{ | |
$config['View_Helper_CSS']['basePath'] = '/temaplateA/'; | |
}else{ | |
$config['View_Helper_CSS']['basePath'] = '/temaplateB/'; | |
} |
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
#!/usr/bin/python | |
DOCUMENTATION = ''' | |
--- | |
module: qvm | |
short_description: check state presence/absence/running/halted of a qubes vm | |
description: | |
- check presence/absence/running/halted of a qubes vm. If a vm is not | |
running it will be started. If vm is not halted it will be stopped. | |
options: |
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/python | |
import fcntl | |
from ansible.callbacks import vvv, vv | |
from ansible import errors | |
from ansible import utils | |
from qubes.qubes import QubesVmCollection | |
import subprocess | |
import os | |
import logging | |
log = logging.getLogger('Ansible Qubes Connection') |
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/bash | |
# | |
###################################################################### | |
# | |
# Author: Andrwe Lord Weber | |
# Mail: lord-weber-andrwe<at>renona-studios<dot>org | |
# Version: 0.2 | |
# URL: http://andrwe.dyndns.org/doku.php/blog/scripting/bash/privoxy-blocklist | |
# | |
################## |
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
(setq org-agenda-prefix-format | |
'((timeline . | |
"%-12:c %(concat \"[ \"(org-format-outline-path (org-get-outline-path)) \"]\") " | |
)) | |
) |
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
my role X::Comp { ... } | |
my class X::ControlFlow { ... } | |
my class Exception { | |
has $!ex; | |
has $!bt; | |
method backtrace(Exception:D:) { | |
if $!bt { $!bt } | |
elsif nqp::isconcrete($!ex) { |
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
use v6; | |
use Inline::Perl5; | |
use Text::Haml:from<Perl5>; | |
my $haml = Text::Haml.new; | |
my $html = $haml.render_file('index.haml'); | |
say $html; |
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 | |
set -e | |
# vim: fdm=marker sw=4 ts=4 tw=80 | |
# Author: Bahtiar `kalkin-` Gadimov <bahtiar@gadimov.de> | |
print_help() { | |
echo "Usage: vmm [-hHKRSX] [-n VM_NAME] [COMMAND]" | |
echo | |
echo "Execute an action or command on currently focused domain" | |
echo 'Commands:' |
OlderNewer