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 Plantuml < SimpleDelegator | |
end | |
module IRuby | |
module Display | |
module Registry | |
type { Plantuml } | |
format 'image/svg+xml' do |obj| | |
Tempfile.open('uml') do |uml| | |
uml.write(obj) |
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
{% if 'servmon' in grains['roles'] %} | |
f2bpath: /var/log/httpd/error_log | |
{% elif 'webserver' in grains['roles'] %} | |
f2bpath: /home/*/log/error_log | |
{% endif %} |
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
ufw: | |
pkg.installed | |
enable ufw: | |
cmd.run: | |
- name: ufw enable | |
- require: | |
- pkg: ufw | |
enable ssh: |
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
# This could be called a "function factory". | |
# It is a function that creates, then returns, new functions. | |
def generic_site_fn(url_template): | |
# Define an inner function ... | |
def generic_site_submit(url): | |
generic_site_url = url_template.format(url=url) | |
requests.get(generic_site_url) | |
# ... that is returned by the factory function. | |
return generic_site_submit |
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
from functools import partial | |
def tracecalls(cls): | |
def my__getattribute__(self, name): | |
attr = super(cls, self).__getattribute__(name) | |
return attr if not callable(attr) else partial(whencalled, attr) | |
cls.__getattribute__ = my__getattribute__ |
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
# System: | |
# OSX 10.7.4 | |
# Qt 4.8.0 | |
# PySide 1.1.1 | |
from enaml.stdlib.radio_group import RadioGroup | |
DEFAULT_TRIGGER_METHOD_NAME = 'request_refresh_task' | |
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
This is what worked for me to install it on Squeeze 64-bit: | |
$ sudo aptitude install libqt4-dev g++ libgpgme11-dev libgpg-error-dev libupnp-dev libssl-dev libgnome-keyring-dev libxss-dev gnupg-agent | |
If this asks you to remove packages, DO NOT CONTINUE. The above line should only INSTALL packages. Fix your system first. | |
$ wget http://sourceforge.net/projects/retroshare/files/RetroShare/0.5.3c/RetroShare-v0.5.3c.tar.gz/download | |
$ tar xzvf RetroShare-v0.5.3c.tar.gz | |
$ cd trunk/libbitdht/src | |
$ qmake && make |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<title>WebFaction Control Panel</title> | |
<meta name="description" content="The WebFaction control panel. This site allows WebFaction customers to manage their accounts and websites." /> | |
<link href="https://my.webfaction.com/media/css/screen.r1337180865.css" rel="stylesheet" type="text/css" /> |
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
/* | |
File: FindPanelLayoutAppDelegate.m | |
Abstract: Creates interface elements and lays out the window | |
Version: 1.2 | |
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple | |
Inc. ("Apple") in consideration of your agreement to the following | |
terms, and your use, installation, modification or redistribution of | |
this Apple software constitutes acceptance of these terms. If you do | |
not agree with these terms, please do not use, install, modify or |
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
/* | |
95Apr17 From golden spud @ Golden Spud's Greasehouse, matt.org | |
Also, | |
BRENT. After you left the "not-together", DP, scorpio, and I wrote a Citadel | |
in less than 30 minutes on FRuG's computer, in Borland C++. | |
We aptly named it FuckCitPie release 5.12, and everybody else that was still | |
there challenged us to run two instances of it at the same time and see if it | |
would multitask. |