From | To | Expression |
---|
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 fabric.api import env | |
from functools import wraps | |
def get_target_name(f): | |
@wraps(f) | |
def wrapper(*args, **kwargs): | |
print("I am in the decorator") | |
for key, value in env.project_sites.iteritems(): | |
for k, v in value.iteritems(): |
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
def show_sudo_users_and_groups(ug, nopasswd): | |
""" | |
Helper function that prints out users and groups with sudo (or no passwd sudo) rights. | |
""" | |
ug_users = [] | |
ug_groups = [] | |
nopasswd_string = "" | |
if nopasswd: | |
nopasswd_string = "no password " |
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 os | |
import sys | |
from threading import Thread, Lock | |
from Queue import Queue | |
def report(message): | |
mutex.acquire() | |
print message | |
sys.stdout.flush() | |
mutex.release() |
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 os | |
import sys | |
for roots, dirlist , filelist in os.walk(os.curdir): | |
for file in [os.path.join(roots,filegot) for filegot in filelist]: | |
if "bz2" not in file: | |
print "Compressing %s" % (file) | |
os.system("bzip2 %s" % file) | |
print ":DONE" |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
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
# API Reference¶ | |
The WebFaction [XML-RPC](http://en.wikipedia.org/wiki/XML-RPC) API provides | |
methods to make many account tasks scriptable. This documentation is a | |
complete reference to all of the possible API methods. | |
Please note that XML-RPC parameters are positional (order matters), and many | |
parameters are required. Parameters may only be omitted if omitted parameters | |
have default values and follow all other parameters to which you have supplied | |
a value. |
Prerequisites:
- One or more clients running a UNIX-like OS. Examples are given for Ubuntu 12.04 LTS, although all software components are available for other platforms as well (e.g. OS X). YMMV
- A cheap Ubuntu 12.04 VPS with storage. I recommend Backupsy, they offer 250GB storage for $5/month. Ask Google for coupon codes.
Software components used:
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
// 1. Go to page https://www.linkedin.com/settings/email-frequency | |
// 2. You may need to login | |
// 3. Open JS console | |
// ([How to?](http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers)) | |
// 4. Copy the following code in and execute | |
// 5. No more emails | |
// | |
// Bookmarklet version: | |
// http://chengyin.github.io/linkedin-unsubscribed/ |
OlderNewer