Skip to content

Instantly share code, notes, and snippets.

View iign's full-sized avatar

Ignacio iign

View GitHub Profile
@iign
iign / disable-url-rewrite.htaccess
Created August 10, 2011 14:54
Disable url rewrite for a folder
RewriteRule ^folder_name/.*$ - [PT]
@iign
iign / nonwww-to-www.htaccess
Created August 10, 2011 14:55
Rewrite non-www to www
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.mysitehere.com/$1
@iign
iign / remove-svn-folders.txt
Created August 17, 2011 13:50
Remove all .svn folders and contents
find . -name .svn -print0 | xargs -0 rm -rf
@iign
iign / terminal-targzip
Created May 18, 2012 13:33
Create a .tar.gzip using Terminal
tar -pvczf BackUpDirectory.tar.gz /path/to/dir
@iign
iign / dabblet.css
Created June 28, 2012 02:13
Minesweeper
/**
* Minesweeper
*/
.left{ float:left; }
.right{ float:right; }
button{
@iign
iign / index.html
Created July 16, 2012 18:15
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Minesweeper &middot; CodePen</title>
<!--
Copyright (c) 2012 Ignacio Toledo, http://codepen.io/iign
Permission is hereby granted, free of charge, to any person obtaining
@iign
iign / launch_sublime_from_terminal.markdown
Created October 22, 2012 13:02 — forked from olivierlacan/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation

@iign
iign / demo.php
Last active December 24, 2017 21:24
Get your latest reviews from Letterboxd (letterboxd.com)
<?php require_once('letterboxd.php') ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Letterboxd reviews</title>
<meta name="description" content="Letterboxd reviews demo">
<meta name="author" content="ign <ignacio[at]ign.uy>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
/**
* Z
*/
body{
margin: 50px
}
.cover {
position: relative;
/**
* Z
*/
body{
margin: 50px
}
.cover {
position: relative;