NOTE: If you use ansicon make sure it is not loaded
Download the Oniguruma library.
I have had good luck with 5.9.1 and 5.9.2.
I used C:\Users\gthiesfeld\Work\repo\onig-5.9.2.
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Created: 2010/12/05 | |
// Updated: 2018/09/12 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
// |
# Upstream to abstract backend connection(s) for php | |
upstream php { | |
server unix:/tmp/php-cgi.socket; | |
server 127.0.0.1:9000; | |
} | |
server { | |
server_name example.com; | |
root /var/www; |
NOTE: If you use ansicon make sure it is not loaded
I have had good luck with 5.9.1 and 5.9.2.
I used C:\Users\gthiesfeld\Work\repo\onig-5.9.2.
#! /usr/bin/env python | |
import MySQLdb | |
host = "localhost" | |
passwd = "" | |
user = "root" | |
dbname = "mydbname" | |
db = MySQLdb.connect(host=host, user=user, passwd=passwd, db=dbname) | |
cursor = db.cursor() |
// Assumes you are using <html> conditional classes as described here: | |
// http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ | |
.lt-ie7 { | |
// blockquote small:before{content:'\2014 \00A0';} | |
blockquote small:before{content:"";} | |
// [class*="span"]{display:inline;float:left;margin-left:20px;} | |
.span1{display:inline;float:left;margin-left:20px;} | |
.span2{display:inline;float:left;margin-left:20px;} | |
.span3{display:inline;float:left;margin-left:20px;} | |
.span4{display:inline;float:left;margin-left:20px;} |
/** | |
* Set the theme compat theme properties | |
* | |
* @since bbPress (r3311) | |
* | |
* @global bbPress $bbp | |
* @param BBP_Theme_Compat $theme | |
* @uses current_theme_supports() | |
*/ | |
function bbp_setup_new_theme_compat() { |
<?php | |
/* | |
Plugin Name: Gisted | |
Plugin URI: http://jeffsebring.com/wordpress/plugins/gisted | |
Description: Print your Github Gists as HTML on your WordPress blog | |
Author: Jeff Sebring | |
Version: 0.1.2 | |
Author URI: http://jeffsebring.com/ | |
Copyright 2012 Jeff Sebring |
<?php | |
/* | |
Plugin Name: Simple Press to bbPress | |
Plugin URI: http://www.4-14.org.uk/ | |
Description: Import Simple Press forums to bbPress | |
Author: Mark Barnes | |
Version: 0.1 | |
Author URI: http://www.4-14.org.uk/ | |
*/ |
# SVN override to prevent commits that try to implicitly commit more than one file. | |
# Has weaned me off of svn ci -m very effectively. I now almost always use svn ci, | |
# which usually results in me writing longer and more helpful commit messages. | |
# Also, it prevents me from committing unrelated code, so there's that. | |
# | |
# Also checks for error_log, var_dump, and console.log, and rejects these commits. | |
function svn() { | |
if [ "$1" == "ci" ] && [ "$2" == "-m" ] && [ -z "$4" ] && [ "$(svn stat --ignore-externals | grep '^[^?X]' | wc -l | awk '{print $1}')" -gt 1 ]; then | |
svn stat --ignore-externals | grep '^[^?X]' |
#!/bin/bash | |
# cd into the directory | |
cd ~/gitsync/github-wordpress-sync/; | |
# Make sure we are not already running | |
if [ -f .sync-running ];then | |
if test ! `find ".sync-running" -mmin +10`;then | |
# Currently running, but not stuck | |
exit 1; | |
fi | |
fi; |