Skip to content

Instantly share code, notes, and snippets.

View bkilshaw's full-sized avatar

Brad Kilshaw bkilshaw

View GitHub Profile
<?php
/**
* @package WordPress
* @subpackage The Developer
* @since The Developer1.0
*/
?>
<?php get_header(); ?>
deb http://archive.ubuntu.com/ubuntu oneiric main
deb-src http://archive.ubuntu.com/ubuntu oneiric main
deb http://archive.ubuntu.com/ubuntu oneiric-updates main
deb-src http://archive.ubuntu.com/ubuntu oneiric-updates main
deb http://archive.ubuntu.com/ubuntu oneiric universe
deb-src http://archive.ubuntu.com/ubuntu oneiric universe
deb http://archive.ubuntu.com/ubuntu oneiric-updates universe
~$ apt-cache policy nginx
nginx:
Installed: 1.0.15-1~lucid
Candidate: 1.0.15-1~lucid
Version table:
*** 1.0.15-1~lucid 0
500 http://nginx.org/packages/ubuntu/ lucid/nginx i386 Packages
100 /var/lib/dpkg/status
1.0.5-1 0
500 http://archive.ubuntu.com/ubuntu/ oneiric/universe i386 Packages
stanley@home:~$ cat /etc/issue
Ubuntu 11.10 \n \l
stanley@home:~$ cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu oneiric universe
deb-src http://archive.ubuntu.com/ubuntu oneiric universe
deb http://archive.ubuntu.com/ubuntu oneiric-updates universe
deb-src http://archive.ubuntu.com/ubuntu oneiric-updates universe
brad@etylogic:~$ sudo apt-cache search build-essential
sbuild - Tool for building Debian binary packages from Debian sources
devscripts - scripts to make the life of a Debian Package maintainer easier
stanley@home:~$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package build-essential is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'build-essential' has no installation candidate
deb http://archive.ubuntu.com/ubuntu oneiric universe
deb-src http://archive.ubuntu.com/ubuntu oneiric universe
deb http://archive.ubuntu.com/ubuntu oneiric-updates universe
deb-src http://archive.ubuntu.com/ubuntu oneiric-updates universe
deb http://archive.ubuntu.com/ubuntu oneiric-security main
deb-src http://archive.ubuntu.com/ubuntu oneiric-security main
mysql> describe urls;
+---------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| url | text | NO | | NULL | |
| userKey | varchar(255) | YES | | NULL | |
| userIp | varchar(255) | YES | | NULL | |
+---------+--------------+------+-----+---------+----------------+
4 rows in set (0.00 sec)
server {
listen 80;
server_name domain.com www.domain.com;
root /var/www/domain.com/public;
index index.html index.php;
try_files $uri /index.php?id=$uri
location ~ .php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
@bkilshaw
bkilshaw / SQLQuery.php
Created May 6, 2011 05:59
PHP SQLQuery Class
<?php
// Run a query and return results
class SQLQuery {
public $query = "";
private $allowed_query_types = array(
'INSERT'
, 'DELETE'
, 'UPDATE'