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
/* | |
* FiltaQuilla script to move all ticket messages to folder "done" | |
*/ | |
destfolderName = "done"; | |
Components.utils.import("resource:///modules/iteratorUtils.jsm"); | |
Components.utils.import("resource:///modules/MailUtils.js"); | |
let acctmgr = Cc["@mozilla.org/messenger/account-manager;1"].getService(Ci.nsIMsgAccountManager); |
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
#!/bin/bash | |
#1) Ask for host | |
if [ -z $1 ]; | |
then | |
echo -n "Host to backup and press [ENTER]: " | |
read sourcehost | |
else | |
sourcehost=$1 | |
fi |
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
#!/bin/bash | |
TERM="urxvt" | |
killall $TERM | |
killall x2x | |
export DISPLAY=10.1.0.9:0 | |
$TERM -sl 0 -geometry 320x20 -e ~/bin/syslog & | |
$TERM -sl 0 -geometry 320x30+0+265 -e ~/bin/sqllog & | |
$TERM -sl 0 -geometry 320x30+0+660 -e ~/bin/webserverlog & | |
x2x -west -from :0 & |
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
#!/bin/sh | |
cat /etc/nginx/sites-enabled/* | grep server_name | awk '{ print "http://"$2 }' | sort | uniq | sed "s/;/\//" |
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
SELECT * FROM icinga_objects o LEFT JOIN icinga_hoststatus s ON s.host_object_id = o.object_id WHERE object_id IN | |
(SELECT host_object_id FROM icinga_hostgroup_members WHERE hostgroup_id = | |
(SELECT hostgroup_id FROM icinga_hostgroups WHERE hostgroup_object_id = | |
(select object_id FROM icinga_objects WHERE objecttype_id = 3 AND name1 LIKE 'GROUPNAME'))) |
NewerOlder