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
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # use: $ echo "safelink" | safelinks2rapid.py | |
| import pycurl | |
| import sys | |
| import StringIO | |
| def vtors(a): | |
| r= a.split('|') |
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
| bundle agent sysuses(sysuse) { | |
| vars: | |
| "depends[dev_cpk]" slist => { "dev_python" }; | |
| "packages[dev_cpk]" slist => { "apg" }; | |
| #"depends[dev_python]" slist => { "cf_null" }; | |
| "packages[dev_python]" slist => { "setuptools" }; | |
| classes: | |
| "abort_bundle" not => "sysuse_${sysuse}"; |
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
| bundle agent sysuses { | |
| vars: | |
| "packages[dev_cpk]" slist => { "apg" }; | |
| "packages[dev_python]" slist => { "python-setuptools" }; | |
| classes: | |
| # here defines dependencies | |
| "sysuse_dev_python" expression => "sysuse_dev_cpk"; | |
| methods: |
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
| Message: 1 | |
| Date: Tue, 10 Apr 2012 14:26:02 -0400 | |
| From: "Fred Teeboom" <[email protected]> | |
| To: <[email protected]> | |
| Subject: This software is a rip-off; request a full refund | |
| Message-ID: <001c01cd1747$62ffa390$28feeab0$@net> | |
| Content-Type: text/plain; charset="us-ascii" | |
| Hello: |
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
| .filter("id > %d" % self.last_id())) | |
| #.filter("id > :last_id") | |
| #.params(last_id = self.last_id())) |
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
| desc 'export issues from given project(s) and having given tracker' | |
| require 'config/environment' | |
| require 'csv' | |
| task :export_stories, :project, :tracker, :outfile, :recursive do |t, args| | |
| #puts "args: #{args}" | |
| args = args.to_hash | |
| if args.empty? then | |
| puts "Usage: <project-identifier>,<tracker-name>,<outfile>,<recursive> |
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
| #!/var/cfengine/bin/cf-agent -f | |
| # vim: foldmethod=marker:foldmarker={,} | |
| # version: cfengine-community-3.2.1-1 | |
| body common control { | |
| bundlesequence => { | |
| g, | |
| }; | |
| } |
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
| # kvm -drive file=${HDA} -net nic,macaddr=${MAC},model=virtio -net tap,ifname=${TAPDEV},script=no,downscript=no -m ${MEM} -vnc ${VNC} -usb -usbdevice host:1b1c:1a03 | |
| qemu-system-x86_64: usb_create: no bus specified, using "usb.0" for "usb-host" | |
| inet_parse: ipv4 parse error (2) |
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
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from httplib import HTTPConnection as C | |
| def do_shit(): | |
| c = C('www.google.com') | |
| c.request("GET", "/") | |
| r = c.getresponse() |
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
| function confirmRemove() { | |
| var allElements = document.getElementsByTagName('input'); | |
| for (var i = 0; i < allElements.length; i++) | |
| { | |
| if (allElements[i].getAttribute('type') == 'button') { | |
| if (allElements[i].getAttribute('name') == 'remove') { | |
| allElements[i].click() | |
| }}}} | |
| function rm(el) { |
OlderNewer