Skip to content

Instantly share code, notes, and snippets.

# A little Meteor CheatSheet about Iron-Router. (updated on a weekly basis)
# Check our Studio: https://gentlenode.com/
meteor add iron:router
meteor update iron:router
# Iron Router > Configuration
import os
from progressbar import ProgressBar, Percentage, Bar, ETA
print "----------------- Icon Generator ------------------"
print "Usage: icon-generator.py"
print "See files_ios { } in icon-generator.py"
print "icon-ios.png and icon-android.png"
print "---------------------------------------------------"
input_ios = './icon-ios.png'
title date tags
Managing Brainfog when Programming
2015-06-03 09:32 CDT
soft skills, health

A while back I saw some questions on a Facebook group referring to dealing with the problem of your mind becoming cloudy and almost like your brain just stops working when trying to solve a problem. Brain fog is where you feel that you just cannot work through some logic, and maybe you even begin to get exhausted. What do you do when that happens? READMORE

Brain fog is something that I deal with on a daily basis, but can be managed and the effects can be reduced significantly. Here are some of the most important tips I can muster to get you through it.

@ctaloi
ctaloi / main.yml
Created July 20, 2016 19:57 — forked from rothgar/main.yml
Generate /etc/hosts with Ansible
# Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source.
# Will include all hosts the playbook is run on.
# Inspired from http://xmeblog.blogspot.com/2013/06/ansible-dynamicaly-update-etchosts.html
- name: "Build hosts file"
lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present
when: hostvars[item].ansible_default_ipv4.address is defined
with_items: groups['all']