Skip to content

Instantly share code, notes, and snippets.

@ctaloi
ctaloi / help.js
Last active August 29, 2015 14:24
Meteor Need Parent Data
// Data
{
"name": "Chris Aloi",
"email": "chris@chris.com",
"groups":
[
{
"name": "Engineering",
"id": "engineering",
"member": true,
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.

~/D/StatusBoardDev ❯❯❯ ./script/run.sh
OS Platform: darwin
[[[[[ ~/Desktop/StatusBoardDev/meteor ]]]]]
=> Started proxy.
=> Started MongoDB.
=> Started your app.
=> App running at: https://localhost:3000
I20150501-16:55:25.527(-4)? Kadira: completed instrumenting the app
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'
@ctaloi
ctaloi / gist:7541a509fcd9b2eef4e2
Created February 10, 2015 17:56
How do I loop through an each - adding a break (row) every x?
Template.gallery.helpers({
getPictures: function() {
return Pictures.find({}, {
sort: {
createdAt: -1
}
});
// What I have
// If getPicture is contains 20 pictures, I get 20 rows
# 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
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@ctaloi
ctaloi / nxlog
Created November 15, 2014 01:39
NXLOG Config to fork Syslogs to localhost and PaperTrail
## This is a sample configuration file. See the nxlog reference manual about the
## configuration options. It should be installed locally and is also available
## online at http://nxlog.org/nxlog-docs/en/nxlog-reference-manual.html
## Please set the ROOT to the folder your nxlog was installed into,
## otherwise it will not start.
# Exec parse_syslog_ietf();
#define ROOT C:\Program Files\nxlog

ILOM ( Integrated Lights out Manager)

The Sun Fire X64 family of servers implement a technology called ILOM - Integrated Lights Out Manager

ILOM uses a hierarchical namespace It contains a predefined tree /SP namespace manages the ILOM.
e.g. to manage users and clock settings.
The SP namespace is generic over all platforms using the ILOM.

The /SYS namespace manages the host system.

noc@syr-switchboard:~/docker/switchboard$ sudo docker run -it --rm --name app --link meteor:web ctaloi/python env
HOME=/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=4416b4f15c68
TERM=xterm
WEB_PORT=tcp://172.17.0.2:3000
WEB_PORT_3000_TCP=tcp://172.17.0.2:3000
WEB_PORT_3000_TCP_ADDR=172.17.0.2
WEB_PORT_3000_TCP_PORT=3000
WEB_PORT_3000_TCP_PROTO=tcp