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
package 'apache' | |
file '/etc/apache.conf' | |
service 'httpd' | |
1.to_f | |
=> 1.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
#!/usr/bin/env ruby | |
# Extract pwned twitter accounts. | |
require 'open-uri' | |
pbs = ['Kc9ng18h', 'vCMndK2L', 'JdQkuYwG', 'fw43srjY', 'jv4LBjPX'] | |
pbs.each{ |pb| puts open("http://pastebin.com/raw.php?i=#{pb}").read } |
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 -*- | |
# Author: Douglas Creager <dcreager@dcreager.net> | |
# This file is placed into the public domain. | |
# Calculates the current version number. If possible, this is the | |
# output of “git describe”, modified to conform to the versioning | |
# scheme that setuptools uses. If “git describe” returns an error | |
# (most likely because we're in an unpacked copy of a release tarball, | |
# rather than in a git working copy), then we fall back on reading the | |
# contents of the RELEASE-VERSION file. |
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
Yes I very enjoyful pictures. | |
Thank you very much. There are all the people is my fathers and uncles | |
and our people. | |
as you know your grandfa is also of them from North Korea at 1948. | |
Just 2 year before on Korean War-it was June 25, 1950 | |
isnt it amaging country Korea 1950 and 2010? | |
just 60 year over, But totaly changed as you see.. | |
I love really i love my contry and proud in mine. |
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
minute = if new_resource.minute | |
new_resource.minute | |
else | |
'*/5' | |
end | |
cron new_resource.name do | |
only_if { valid_node } | |
minute minute | |
command cron_cmd |
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 fabric.api | |
import fabric.state | |
@fabric.api.parallel | |
def _sudo(cmd): | |
"""Wraps ``fabric.operations.sudo`` with custom stuff.""" | |
fabric.operations.sudo("sudo gba %s" % cmd) | |
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 logging | |
import kiss | |
import kiss.constants | |
# Change the constants here: | |
kiss.constants.LOG_LEVEL = logging.DEBUG | |
# or, to change the log format |
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 threading | |
import aprs | |
class APRSMessage(object): | |
def __init__(self): |
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
http://chortle.ccsu.edu/java5/index.html | |
http://www.javacodegeeks.com/ | |
http://www.tutorialspoint.com/java/index.htm |