Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
| #!/bin/sh | |
| # Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
| # CREATE block and create them in separate commands _after_ all the INSERTs. | |
| # Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
| # The mysqldump file is traversed only once. | |
| # Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
| # Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
| # 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 |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| 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', |
| // 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 |
Couldn't find the text of this for a while...
| // 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 | |
| } |