Github Synxax highlighting
Some Ruby:
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
Some C++:
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
sudo apt-get install vim wget curl git subversion zip ssmtp | |
sudo apt-get install tasksel | |
sudo tasksel install lamp-server | |
# don't forget these steps for crouton installs! https://github.com/dnschneid/crouton/wiki/Running-servers-in-crouton | |
sudo apt-get install phpmyadmin ssmtp man weather-utils | |
# wordpress setup with a2ensite http://linuxconfig.org/wordpress-installation-ubuntu-linux-apache-mysql |
Github Synxax highlighting
Some Ruby:
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
Some C++:
<?php | |
// Add the following function to a child theme or plugin: | |
function anno_custom_header_size() { | |
Anno_Keeper::keep( 'header_image', new Anno_Header_Image( 'header', array (1265, 110 ) ) ); | |
} | |
// Priority 10 to come in after the annotum's initial template initialization. | |
add_action( 'after_setup_theme', 'anno_custom_header_size', 10 ); |
# Carl's wp updater | |
# assumes wp-cli is aliased to wp | |
wp core check-update | |
read -r -p "Update Core? [y/N] " response | |
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]] | |
then | |
wp core update | |
fi |
.\js\textorum\cakefile | |
.\js\textorum\gemfile | |
.\js\textorum\gemfile.lock | |
.\js\textorum\gruntfile.js | |
.\js\textorum\package.json | |
.\js\textorum\.sass-cache\24a2c23440602c8d374dca58a6d3363f5a397bb2\_jstree.scssc | |
.\js\textorum\.sass-cache\24a2c23440602c8d374dca58a6d3363f5a397bb2\_textorum.scssc | |
.\js\textorum\.sass-cache\24a2c23440602c8d374dca58a6d3363f5a397bb2\editor.scssc | |
.\js\textorum\.sass-cache\24a2c23440602c8d374dca58a6d3363f5a397bb2\plugin.scssc | |
.\js\textorum\.tmp\textorum-rjs.js |
------------------------------ | |
What is Annotum2Go? | |
------------------------------ | |
Annotum2Go is a self-contained version of Annotum based on Timo Haberkern's Server2Go CD-Rom Webserver. | |
It also includes Firefox Portable from PortableApps | |
See http://annotum.wordpress.com for more info on Annotum. | |
See the readme-server2go.txt file for more information about Server2Go -- and please send Timo a donation | |
if you find it useful! The documentation is available via the 'server configuration' link after starting Annotum2Go. |
Delete from `wp_usermeta` where `user_id` = 1 and `meta_key` like '%_article' |
<?php | |
/* Other code linking to this via a button somewhere */ | |
delete_user_meta( $user_id, 'closedpostboxes_article' ) ; | |
delete_user_meta( $user_id, 'screen_layout_article' ) ; | |
delete_user_meta( $user_id, 'metaboxhidden_article' ) ; | |
delete_user_meta( $user_id, 'meta-box-order_article' ) ; |