Run the following command
$ update-locale LC_ALL="en_US.UTF-8"
If it failed, you will need to add the following to /var/lib/locales/supported.d/local file
en_US.UTF-8 UTF-8
# | |
# Based upon the NCSA server configuration files originally by Rob McCool. | |
# | |
# This is the main Apache server configuration file. It contains the | |
# configuration directives that give the server its instructions. | |
# See http://httpd.apache.org/docs/2.2/ for detailed information about | |
# the directives. | |
# | |
# Do NOT simply read the instructions in here without understanding | |
# what they do. They're here only as hints or reminders. If you are unsure |
<?php | |
/* | |
TESTING: | |
http://programmers.stackexchange.com/questions/120378/is-error-suppression-acceptable-in-role-of-logic-mechanism/120386#120386 | |
Elapsed Time[µseconds] | |
Check, Exists : | |
50000 - Check, Exists : 94718 (user), 342 (system) | |
EACH - Check, Exists : 1.89436E-6 (user), 6.84E-9 (system) |
<?php | |
/* | |
Plugin Name: Disable plugins when doing local dev | |
Description: If the WP_LOCAL_DEV constant is true, disables plugins that you specify | |
Version: 0.1 | |
License: GPL version 2 or any later version | |
Author: Mark Jaquith | |
Author URI: http://coveredwebservices.com/ | |
*/ |
#!/bin/bash | |
# | |
# git-svn-diff originally by (http://mojodna.net/2009/02/24/my-work-git-workflow.html) | |
# modified by [email protected] | |
# modified by aconway@[redacted] - handle diffs that introduce new files | |
# modified by [email protected] - fixes diffs that introduce new files | |
# modified by [email protected] - fix sed syntax issue in OS X | |
# | |
# Generate an SVN-compatible diff against the tip of the tracking branch |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Write New Post</title> | |
<link rel="stylesheet" | |
href="http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css"> | |
<style type="text/css"> | |
body { | |
padding-top: 60px; | |
} |
#!/usr/bin/env python | |
# | |
# Self contained version of: | |
# http://github.com/dustin/py-github/blob/master/src/githubsync.py | |
# (simply has github.py merged into githubsync.py) | |
# | |
# Copyright (c) 2005-2008 Dustin Sallings <[email protected]> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal |
node "submitz" inherits default { | |
include django | |
include supervisor | |
django::resource::project {'submitz': | |
ensure => present, | |
location => '/opt/submitz/submitz', | |
source => '[email protected]:xipax/submitz.git', | |
user => 'submitz', |
#Newbie programmer | |
def factorial(x): | |
if x == 0: | |
return 1 | |
else: | |
return x * factorial(x - 1) | |
print factorial(6) | |
#First year programmer, studied Pascal |
#!/bin/bash | |
# args | |
MSG=${1-'deploy from git'} | |
BRANCH=${2-'trunk'} | |
# paths | |
SRC_DIR=$(git rev-parse --show-toplevel) | |
DIR_NAME=$(basename $SRC_DIR) | |
DEST_DIR=~/svn/wp-plugins/$DIR_NAME/$BRANCH |