Skip to content

Instantly share code, notes, and snippets.

View dcarral's full-sized avatar

Daniel Carral dcarral

View GitHub Profile
@dcarral
dcarral / timer.rb
Last active November 17, 2017 20:16 — forked from coreyhaines/timer.rb
Timer for coderetreat session
#!/usr/bin/env ruby
# Uso: ruby timer.rb "mensaje anunciando el final del ciclo"
# o alternativamente: chmod +x timer.rb and ./timer.rb
# + info en http://archive.coderetreat.org/profiles/blogs/new-session-idea-baby-steps
message = ARGV[0] || "Time over"
minutes = 2
seconds = minutes * 60
while(true)
@dcarral
dcarral / close_accepted_revisions.sh
Last active September 10, 2015 17:50
Bash one-liner to close acepted code revisions through arcanist. Avoids the annoying "close-revision requires exactly one revision" warning.
#!/usr/bin/env bash
arc list | awk '/.*Accepted.*/ {print $2}' | tr -d ":" | xargs -n 1 arc close-revision
@dcarral
dcarral / rubocop
Last active January 25, 2016 17:14
Allows rubocop linting with newer ruby versions in legacy codebases
#!/usr/bin/env bash
rvm 2.1.5 do rubocop "$@"
diff --git a/apps/link/models.py b/apps/link/models.py
index f9b726c..a5b445c 100755
--- a/apps/link/models.py
+++ b/apps/link/models.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-# Copyright (c) 2012 Fabian Barkhau <[email protected]>
-# License: MIT (see LICENSE.TXT file)
+# Copyright (c) 2012 Fabian Barkhau <[email protected]>
+# License: MIT (see LICENSE.TXT file)