Skip to content

Instantly share code, notes, and snippets.

@msabramo
msabramo / build_mac.sh
Last active September 21, 2024 19:16 — forked from SchizoDuckie/build_mac.sh
Build an OSX .pkg installer from Linux using mkbom and xar
#!/bin/bash
# change the values below to match your system.
# target the BUILD_DIR to output from an nw.io build process. nwjs-shell-builder recommended!
# https://github.com/Gisto/nwjs-shell-builder
# BASE_DIR is the target directory for this script, where files will be gathered and packaged to
BUILD_DIR="/var/www/deploy/TMP/osx-ia32/latest-git"
BASE_DIR="/var/www/deploy/osx" 
@msabramo
msabramo / Instructions.md
Last active August 29, 2015 14:25 — forked from dtrapezoid/Instructions.md
Becoming Friends with Cassandra Workshop Instructions

Instructions for "Becoming Friends with Cassandra"

Go here:

https://gitter.im/DataStaxCommunity/Cassandra_Spark

Where do I start?

To start communicating with Cassandra like a champ, Cassandra's Query Language (CQL) is your best bet. CQL is an SQL-like language, which makes it warm and fuzzy for those of us used to SQL, but don't let that fool you...

We still have to think about how we "converse" with Cassandra differently. When we model our data, we need to think about how we will access it before we model it. It's important to emphasize this point, because you can get into some very ugly territory if you model Cassandra like a relational database. Data Modeling with Cassandra is purely query-driven.

@msabramo
msabramo / human_log.py
Last active September 11, 2015 19:30 — forked from cliffano/human_log.py
import os
FIELDS = os.environ.get('ANSIBLE_HUMAN_LOG_FIELDS').split(',')
if not FIELDS:
FIELDS = ['cmd', 'command', 'start', 'end', 'delta', 'msg', 'stdout', 'stderr']
def human_log(res):
if type(res) == type(dict()):
for field in FIELDS:
@msabramo
msabramo / nvaltjournal.applescript
Created August 18, 2012 00:08 — forked from shurain/nvaltjournal
Fix for "Append to nvALT journal" Alfred extension. Handling non-English characters as well.
on alfred_script(q)
set theYear to year of (current date) as string
set theMonth to (month of (current date) as number)
if theMonth < 10 then
set theMonth to "0" & theMonth
else
set theMonth to "" & theMonth
end if
@msabramo
msabramo / pip-cache-install.py
Created May 13, 2012 00:27 — forked from jacobian/pip-cache-install.py
Install a package from your local pip download cache without touching the 'net.
#!/usr/bin/env python
"""
Install a package from your local pip download cache without having to touch
the 'net at all.
You'll need to be using a pip download cache; that is, you'll need the
following in your ~/.pip/pip.cfg:
[install]