Skip to content

Instantly share code, notes, and snippets.

View soule's full-sized avatar

Souleiman Benhida soule

View GitHub Profile
@wh1tney
wh1tney / deploy-static-site-heroku.md
Last active September 15, 2024 22:48
How to deploy a static website to Heroku

Gist

This is a quick tutorial explaining how to get a static website hosted on Heroku.

Why do this?

Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.

Basic Assumptions

@ugoletti
ugoletti / MySql2Sqlite.php
Created January 30, 2011 23:01
MySql2Sqlite
#!/usr/bin/php
<?php
showMessage( "MySql2Sqlite v1.0" );
showMessage( "by Daniele Ugoletti" );
showMessage( "-------------------" );
// check the arguments
if ( $argc < 5)
{
showMessageAndDie( "Usage: ".$argv[ 0 ]." <mysql_host> <mysql_username> <mysql_password> <dbName> [<outSqliteFile] [useUTF8 true|false]" );