Skip to content

Instantly share code, notes, and snippets.

View carlthewebmaster's full-sized avatar

Carl Leubsdorf, Jr. carlthewebmaster

View GitHub Profile
# -*- 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.
@carlthewebmaster
carlthewebmaster / apt-get-new.sh
Last active August 29, 2015 14:00
apt-get for new linux setup - ubuntu
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
@carlthewebmaster
carlthewebmaster / example.md
Last active August 29, 2015 14:04
Github markdown syntax highlighting

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
@carlthewebmaster
carlthewebmaster / Annotum2Go-preview-29-aug-README
Created August 30, 2011 02:36
Annotum2Go preview-beta initial release README
------------------------------
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.
@carlthewebmaster
carlthewebmaster / gist:1186992
Created September 1, 2011 19:13
WordPress Article Post Page UI Reset
Delete from `wp_usermeta` where `user_id` = 1 and `meta_key` like '%_article'
@carlthewebmaster
carlthewebmaster / gist:1187548
Created September 1, 2011 23:14
Wipe Article Editor UI Customizations
<?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' ) ;

This is a heading

And this is not

  • Here is
  • a list
  • of stuff