As configured in my dotfiles.
start new:
tmux
start new with session name:
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
module Player | |
describe MovieList, "with optional description" do | |
it "is pending example, so that you can write ones quickly" | |
it "is already working example that we want to suspend from failing temporarily" do | |
pending("working on another feature that temporarily breaks this one") |
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/ |
#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(): |
#!/bin/bash | |
# | |
# gitweb | |
# | |
# chkconfig: 235 20 80 | |
# description: start and stop gitweb | |
# processname: gitweb | |
# pidfle: /var/run/gitweb.pid | |
# Source function library. |
As configured in my dotfiles.
start new:
tmux
start new with session name:
;; 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) |
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' | |
""" |
#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 - |
import paramiko | |
bastion_ip='ip' # you have to edit and provide valid IP address | |
bastion_pass='pass' # you have to edit it and provide valid password | |
ssh = paramiko.SSHClient() | |
ssh.set_missing_host_key_policy( paramiko.AutoAddPolicy() ) | |
ssh.connect(bastion_ip, username='root', password=bastion_pass) | |
chan = ssh.invoke_shell() |