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
Processing FactValuesController#create (for 84.17.203.72 at 2012-05-08 14:15:02) [POST] | |
Parameters: {"facts"=>"[FILTERED]", "action"=>"create", "controller"=>"fact_values"} | |
User Load (0.3ms) SELECT * FROM `users` WHERE (`users`.`login` = 'admin') LIMIT 1 | |
Setting current user thread-local variable to admin | |
Host Load (0.3ms) SELECT * FROM `hosts` WHERE (`hosts`.`name` = 'vguest03.unixwarez.org') LIMIT 1 | |
Puppet::Rails::FactValue Load (0.5ms) SELECT * FROM `fact_values` WHERE (`fact_values`.host_id = 33) | |
Puppet::Rails::FactName Load (0.5ms) SELECT * FROM `fact_names` WHERE (`fact_names`.`id` IN (130,81,83,55,57,54,58,51,50,52,26,29,21,23,27,20,22,128,125,127,126,129,6,7,4,5,2,1,70,3,9,77,8,41,45,43,46,40,42,13,19,15,11,10,16,17,12,69,30,32,35,31,36,37,34,39,38,33)) | |
Puppet::Rails::FactValue Delete all (6.2ms) DELETE FROM `fact_values` WHERE (`id` IN (5172440,5172441,5172442,5172443,5172444,5172445,5172446,5172447,5172448,5172449,5172450,5172451,5172452,5172453,5172454,5172455,5172456,517245 |
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
root@virtual:/etc/pve/nodes/virtual/qemu-server# cat 105.conf | |
args: -uuid f160a786-2bc4-4dfd-a031-b979a9aad519 | |
bootdisk: virtio0 | |
cores: 4 | |
ide2: local:iso/rhel-server-6.2-x86_64-dvd.iso,media=cdrom | |
memory: 2048 | |
name: vguest06.unixwarez.org | |
net0: virtio=7A:1A:67:FF:13:53,bridge=vmbr0 | |
ostype: l26 | |
sockets: 1 |
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
augeas { "ntp.conf": | |
context => "/files/etc/ntp.conf", | |
changes => [ | |
"rm server[.]", | |
"set server timehost.tconet.net", | |
"clear server[. = 'timehost.tconet.net']/iburst", | |
"set server[. = 'timehost.tconet.net']/maxpoll 9", | |
"clear server[. = 'timehost.tconet.net']/prefer", | |
], | |
require => Package["ntp"], |
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
<?php return array ( | |
'group' => array ( | |
'users' => array ( | |
'/$user/files/149999_w' => array ( 'class' => 'OC_Filestorage_Local', 'options' => array ( 'datadir' => '/mnt/w', ),), | |
), | |
), | |
); |
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
$ emerge --oneshot --nodeps sys-devel/binutils | |
--- snip --- | |
>>> Unpacking binutils-2.22-patches-1.2.tar.bz2 to /usr/local/gprefix/var/tmp/portage/sys-devel/binutils-2.22-r1/work | |
* Applying various patches (bugfixes/updates) ... | |
* 03_all_binutils-2.15.92.0.2-ppc64-pie.patch ... [ ok ] | |
* 08_all_binutils-RPATH_ENVVAR-smack.patch ... [ ok ] | |
* 10_all_binutils-2.22-ppc-textrels.patch ... [ ok ] | |
* 12_all_sh-targets.patch ... [ ok ] |
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 bash | |
#DEBUG_INFO= &>> debug.log | |
TERM_APP=gnome-terminal | |
DESKTOP=`xdotool get_desktop` | |
echo Desktop: $DESKTOP $DEBUG_INFO | |
SEARCH_CMD="xdotool search --onlyvisible --desktop $DESKTOP --limit 1 --class $TERM_APP" | |
#SEARCH_CMD="xdotool search --onlyvisible --desktop $DESKTOP --limit 0 --class $TERM_APP" | |
echo Search command: $SEARCH_CMD $DEBUG_INFO |
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 | |
# Write some general information | |
echo System Temperatures - `date` | |
uptime | awk '{ print "\nSystem Load:",$10,$11,$12,"\n" }' | |
# Write CPU temperatures | |
echo "CPU Temperature:" | |
sysctl -a | egrep -E "cpu\.[0-9]+\.temp" |
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 | |
# URL https://gist.github.com/Raboo/eda65914c4bcb2af2b32 | |
# add following to sudo | |
# Cmnd_Alias SMARTCTL = /usr/local/sbin/smartctl | |
# daemon ALL=(ALL) NOPASSWD: SMARTCTL | |
# add following to /usr/local/etc/collectd.conf | |
# LoadPlugin exec |
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
class DiskTempPlugin(RRDBase): | |
vertical_label = "Celcius" | |
def get_title(self): | |
title = self.identifier.replace("disk-", "") | |
return 'Disk Temperature (%s)' % title | |
def get_identifiers(self): | |
ids = [] |
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 pprint | |
import httplib | |
try: | |
import json | |
except ImportError: | |
json = None | |
import sys | |
descriptors = list() |
OlderNewer