Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en-us" />
<meta name="robots" content="index,follow" />
<meta name="author" content="organization; example.com" />
<meta name="identifier-url" content="http://example.com" />
<meta name="publisher" content="Organization; example.com" />
# make
g++ -ggdb -Wall -D_FILE_OFFSET_BITS=64 -I/usr/local/include/fuse -pthread -L/usr/local/lib -lfuse -lrt -ldl -lcurl -I/usr/include/libxml2 -lxml2 -lcrypto s3fs.cpp -o s3fs
s3fs.cpp: In function ‘std::string calc_signature(std::string, std::string, std::string, curl_slist*, std::string)’:
s3fs.cpp:426: warning: value computed is not used
s3fs.cpp: In function ‘int put_local_fd(const char*, headers_t, int)’:
s3fs.cpp:759: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 4 has type ‘__off_t’
s3fs.cpp: In function ‘int s3fs_readlink(const char*, char*, size_t)’:
s3fs.cpp:852: warning: comparison between signed and unsigned integer expressions
s3fs.cpp: At global scope:
s3fs.cpp:440: warning: ‘size_t readCallback(void*, size_t, size_t, void*)’ defined but not used
./configure --prefix=/opt/local --mandir=/opt/local/share/man --infodir=/opt/local/share/info --with-config-file-path=/opt/local/etc/php5 --with-config-file-scan-dir=/opt/local/var/db/php5 --enable-calendar --with-iconv=/opt/local --enable-exif --enable-ftp --enable-wddx --with-zlib=/opt/local --with-bz2=/opt/local --without-sqlite --without-pdo-sqlite --with-libxml-dir=/opt/local --with-gettext=/opt/local --with-libexpat-dir=/opt/local --with-xmlrpc --enable-soap --enable-bcmath --enable-mbstring --enable-dba --enable-zip --with-openssl=/opt/local --with-mhash=/opt/local --with-mcrypt=/opt/local --with-mime-magic --with-xsl=/opt/local --with-curl=/opt/local --with-pcre-regex=/opt/local --with-gd --with-jpeg-dir=/opt/local --with-png-dir=/opt/local --enable-gd-native-ttf --with-freetype-dir=/opt/local --with-ldap=/usr --with-kerberos=/usr --with-iodbc=/usr --with-apxs2=/opt/local/apache2/bin/apxs --with-mysql=/opt/local/var/mysql5 --with-pdo-mysql=/opt/local/bin/mysql_config5 --with-mysql-sock=/opt/local/var/
FileETag None
<IfModule mod_rewrite.c>
RewriteEngine On
# Force www
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com$1 [R=301,L]
# Uncomment to Remove www, but comment the above 2 lines out. :)
# Otherwise the world will nend
apt-get install php-apc
├── ee_system
│   ├── codeigniter
│   ├── expressionengine
│   ├── index.html
│   ├── index.php
└── public_html
├── administa.php
├── index.php
├── static
│   ├── css
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Awesomesauce</title>
<link rel="stylesheet" href="{static_url}css/foobar.2010101900.css" type="text/css">
<!--[if IE]><link rel="stylesheet" href="{static_url}css/i-hate-you-ie.2010101900.css" type="text/css"><![endif]-->
</head>
<body>
@gaker
gaker / gist:641332
Created October 22, 2010 20:42
Count hg log committers
hg log | grep '^user\?'|cut -d':' -f2|sort|uniq -c|sort -nr
@gaker
gaker / gist:652402
Created October 28, 2010 21:53
blog post code
<?php
// Gimme the URL helper
$this->EE->load->helper('url');
$this->EE->load->library('typography');
$base_url = $this->EE->config->item('base_url');
/**
* Query
@gaker
gaker / gist:652411
Created October 28, 2010 21:54
Blog post code
{exp:special_sauce}
<h2><a href="entry/{url_title}">{title}</a></h2>
<a href="{url}">
<img src="{avatar}">
</a>
<p>This post is by {screen_name}. They totally Rule!</p>
{summary}