Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <?php | |
| /* | |
| Description: Adds a taxonomy filter in the admin list page for a custom post type. | |
| Written for: http://wordpress.stackexchange.com/posts/582/ | |
| By: Mike Schinkel - http://mikeschinkel.com/custom-workpress-plugins | |
| Instructions: Put this code in your theme's functions.php file or inside your own plugin. Edit to suite your post types and taxonomies. Hope this helps... | |
| */ | |
| add_filter('manage_listing_posts_columns', 'add_businesses_column_to_listing_list'); | |
| function add_businesses_column_to_listing_list( $posts_columns ) { | |
| if (!isset($posts_columns['author'])) { |
| # !/bin/bash | |
| # Copyright (c) 2011 Float Mobile Learning | |
| # http://www.floatlearning.com/ | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining | |
| # a copy of this software and associated documentation files (the "Software"), | |
| # to deal in the Software without restriction, including without limitation | |
| # the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
| # and/or sell copies of the Software, and to permit persons to whom the |
| /** | |
| * terms_clauses | |
| * | |
| * filter the terms clauses in get_terms(), allow post_type arg | |
| * | |
| * @param $clauses array | |
| * @param $taxonomy string | |
| * @param $args array | |
| * @return array | |
| * @author Jessica Yazbek |
| #!/usr/bin/env php | |
| <?php | |
| /* | |
| Copyright 2013 Stuart Carnie and other contributors | |
| Permission is hereby granted, free of charge, to any person obtaining | |
| a copy of this software and associated documentation files (the | |
| "Software"), to deal in the Software without restriction, including | |
| without limitation the rights to use, copy, modify, merge, publish, | |
| distribute, sublicense, and/or sell copies of the Software, and to |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| { | |
| "name": "hechoendrupal/composer-ui", | |
| "description": "Composer UI", | |
| "minimum-stability": "dev", | |
| "authors": [ | |
| { | |
| "name": "David Flore", | |
| "email": "dmouse.x@gmail.com" | |
| } | |
| ], |
| #!/usr/bin/env python2 | |
| from PIL import Image | |
| import sys | |
| import struct | |
| def r8(f): | |
| return ord(f.read(1)) | |
| if len(sys.argv) <= 2: | |
| print("Usage: %s <input> <output>" % sys.argv[0]) |