Skip to content

Instantly share code, notes, and snippets.

View mtcmorris's full-sized avatar

Michael Morris mtcmorris

  • Melbourne, Australia
View GitHub Profile
@jtadeulopes
jtadeulopes / server.md
Last active January 6, 2024 16:58
Server setup with ubuntu, nginx and puma for rails app.

Update and upgrade the system

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove
sudo reboot

Configure timezone

@joho
joho / application.html.erb
Created September 5, 2011 06:24 — forked from mtcmorris/gist:1194204
Mustaches for everyone!!
<% if moustaches? %>
<script type="text/javascript">
$(document).ready(function() {
$(".thumbnail img").each(function() {
$(this).attr("src", "http://mustachify.me/?src=" + $(this).attr("src"));
});
});
</script>
<% end %>