Skip to content

Instantly share code, notes, and snippets.

View esganzerla's full-sized avatar

Eduardo Sganzerla esganzerla

  • Booking.com
  • Amsterdam, NL
View GitHub Profile
root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
[*.{js,json,html,php}]
indent_style = space
{
printWidth: 80,
tabWidth: 2,
parser: 'flow',
singleQuote: true,
semi: false,
trailingComma: 'none',
bracketSpacing: true
}
@esganzerla
esganzerla / .tmux.conf
Created September 13, 2016 03:22
My TMUX conf
### INSTALLATION NOTES ###
# 1. Install Homebrew (https://github.com/mxcl/homebrew)
# 2. brew install zsh
# 3. Install OhMyZsh (https://github.com/robbyrussell/oh-my-zsh)
# 4. brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace
# 5. Install iTerm2
# 6. In iTerm2 preferences for your profile set:
# Character Encoding: Unicode (UTF-8)
# Report Terminal Type: xterm-256color
# 7. Put itunesartist and itunestrack into PATH
@esganzerla
esganzerla / index.php
Created September 13, 2016 03:20
Index Of/ - Better UX on mobile
<?php
// Check the current path based on the query string or the current URL
$path = (isset($_GET['path'])) ? $_GET['path'] : $_SERVER['REQUEST_URI'];
?>
<html>
<head>
<meta charset="utf-8">
<title>Index of <?=$path;?></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>