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 $power_mode == "on" | |
#set operation = "up" | |
#else | |
#set operation = "down" | |
#end if | |
cd /etc/SMCIPMITool/ && java -jar /etc/SMCIPMITool/SMCIPMITool.jar "$power_address" "$power_user" "$power_pass" blade $power_id power "$operation" && cd - |
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 Vim settings rather than Vi settings | |
" Required to be at the beginning of file | |
set nocompatible | |
" Required | |
filetype off | |
" Turn on syntax highlighting | |
syntax on |
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 | |
# | |
# gitweb | |
# | |
# chkconfig: 235 20 80 | |
# description: start and stop gitweb | |
# processname: gitweb | |
# pidfle: /var/run/gitweb.pid | |
# Source function library. |
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
Plesk port: 8443 | |
R1Soft CDP port: 1167 | |
cPanel port: WHM over SSL = 2087 | |
cPanel over SSL = 2083 | |
regular WHM = 2086 | |
regular cPanel = 2082 | |
feedback loop information: | |
http://www.eliteemail.com/features/email-delivery/feedback-loops/ |
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
#coding: utf-8 | |
from bottle import route, error, post, get, run, static_file, abort, redirect, response, request, template | |
@route('/') | |
@route('/index.html') | |
def index(): | |
return '<a href="/hello">Go to Hello World page</a>' | |
@route('/hello') | |
def hello(): |
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
from datetime import datetime | |
import calendar | |
def epoch_to_iso8601(timestamp): | |
""" | |
epoch_to_iso8601 - convert the unix epoch time into a iso8601 formatted date | |
>>> epoch_to_iso8601(1341866722) | |
'2012-07-09T22:45:22' | |
""" |
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
<?php | |
function it($m,$p){echo ($p?'✔︎':'✘')." It $m\n"; if(!$p){$GLOBALS['f']=1;}}function done(){if(@$GLOBALS['f'])die(1);} |
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
;; TinyWM is written by Nick Welch <mack@incise.org>, 2005. | |
;; Ported to Chicken by César L. B. Silveira <cesarbs@gmail.com>, 2011. | |
;; | |
;; Original TinyWM website: http://incise.org/tinywm.html | |
;; | |
;; This software is in the public domain | |
;; and is provided AS IS, with NO WARRANTY. | |
(require-extension xlib) |
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
/* | |
String interpolation method for underscore.js | |
Usage: | |
var props = { | |
first: 'Jos', | |
last: 'de Jong' | |
}; | |
var message = _.interpolate('Hello $first $last, welcome!', props); |
OlderNewer