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
<frameset cols="180,*"> | |
<frame src="side.php" name="side" frameborder="0"> | |
<!-- <frame src="main.php" name="main" frameborder="0"> --> | |
<frame src="/cgi-bin/nagios3/status.cgi?host=all" name="main" frameborder="0"> | |
<noframes> |
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
server { | |
listen 127.0.0.1:80; | |
server_name localhost; | |
access_log /var/log/nginx/gunicorn-access.log; | |
error_log /var/log/nginx/gunicorn-error.log debug; | |
location / { | |
try_files $uri @gunicorn_proxy; | |
} |
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 | |
URL=http://www.mythic-beasts.com/cgi-bin/job.pl | |
curl -s ${URL} | | |
gawk ' | |
/Evaluate/ { | |
gsub (/([[:alpha:]]|[[:space:]]|[,.<>/])/,"", $0); | |
print $0 |& "bc"; | |
"bc" |& getline res; |
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/awk -f | |
BEGIN { | |
ss_start=0 | |
ss_maybe=0 | |
} | |
/<SS>/ { | |
ss_start=1 | |
print $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
awk '/_cube21/ { print tolower($1) }' /srv/ftp/pub/CentraStar/pxe/nodes | xargs -I % ln -f /tftpboot/pxelinux.cfg/default-124 /tftpboot/pxelinux.cfg/01-% |
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 | |
VBoxManage list runningvms | sed -n -e 's/"\(.*\)" .*/\1/p'| \ | |
while read vm; do | |
ip=$(VBoxManage guestproperty enumerate "${vm}" | awk '/V4\/IP/ { gsub(",", "", $4); print $4 }') | |
echo "\""$vm"\" IP:"$ip | |
done |
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
import os | |
from flask import Flask, request, redirect, url_for | |
from werkzeug import secure_filename | |
UPLOAD_FOLDER = '/webroot/gunicorn/uploads' | |
ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif']) | |
app = Flask(__name__) | |
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER |
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
- name: Set the hostname in rc.conf | |
lineinfile: dest=/etc/rc.conf regexp="^hostname" line='hostname="{{ hostname }}"' | |
register: hostnamestatus | |
- name: Set the hostname | |
command: hostname {{ hostname }} | |
when: hostnamestatus.changed |
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/env python | |
# | |
# | |
import time | |
import re | |
import subprocess | |
import xerox | |
bt_cmd = "/usr/bin/qbittorrent" |
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/env python | |
import re | |
class Bob: | |
def hey(self, msg): | |
if msg is None or not msg.strip(): | |
return 'Fine. Be that way!' | |
elif msg == msg.upper(): |