Couldn't find the text of this for a while...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // REMOVE POST META BOXES | |
| function remove_my_post_metaboxes() { | |
| remove_meta_box( 'authordiv','post','normal' ); // Author Metabox | |
| remove_meta_box( 'commentstatusdiv','post','normal' ); // Comments Status Metabox | |
| remove_meta_box( 'commentsdiv','post','normal' ); // Comments Metabox | |
| remove_meta_box( 'postcustom','post','normal' ); // Custom Fields Metabox | |
| remove_meta_box( 'postexcerpt','post','normal' ); // Excerpt Metabox | |
| remove_meta_box( 'revisionsdiv','post','normal' ); // Revisions Metabox | |
| remove_meta_box( 'slugdiv','post','normal' ); // Slug Metabox | |
| remove_meta_box( 'trackbacksdiv','post','normal' ); // Trackback Metabox |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // REMOVE PAGE META BOXES | |
| function remove_my_page_metaboxes() { | |
| remove_meta_box( 'postcustom','page','normal' ); // Custom Fields Metabox | |
| remove_meta_box( 'postexcerpt','page','normal' ); // Excerpt Metabox | |
| remove_meta_box( 'commentstatusdiv','page','normal' ); // Comments Status Metabox | |
| remove_meta_box( 'commentsdiv', 'page','normal' ); // Comments Metabox | |
| remove_meta_box( 'trackbacksdiv','page','normal' ); // Talkback Metabox | |
| remove_meta_box( 'slugdiv','page','normal' ); // Slug Metabox | |
| remove_meta_box( 'authordiv','page','normal' ); // Author Metabox | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Photoshop Script to Create iPhone Icons from iTunesArtwork | |
| // | |
| // WARNING!!! In the rare case that there are name collisions, this script will | |
| // overwrite (delete perminently) files in the same folder in which the selected | |
| // iTunesArtwork file is located. Therefore, to be safe, before running the | |
| // script, it's best to make sure the selected iTuensArtwork file is the only | |
| // file in its containing folder. | |
| // | |
| // Copyright (c) 2010 Matt Di Pasquale | |
| // Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var spawn = require('child_process').spawn, | |
| aws2js = require('aws2js'), | |
| http = require('http'), | |
| urlutil = require('url') | |
| mime = require('mime'), | |
| Buffers = require('buffers'); | |
| var settings = { | |
| s3: { | |
| key: 'key', |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # download libpng 1.4.x (1.5 didn't work yet with GraphicsMagick 1.3.12) | |
| ./configure --prefix=$HOME/INST && make && make install | |
| # download libjpeg | |
| ./configure --prefix=$HOME/INST && make && make install | |
| # download GraphicsMagick | |
| CFLAGS=-I$HOME/INST/include LDFLAGS=-L$HOME/INST/lib ./configure --prefix=$HOME/INST --disable-openmp --disable-openmp-slow && make && make install |
Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages