Skip to content

Instantly share code, notes, and snippets.

@ctkjose
ctkjose / macoswebdev.md
Last active May 9, 2023 14:13
Mac OS X Web Development Notes

Setting a Mac for Web Development

These notes were update for 10.15 (Catalina)

Install brew

I use Brew to install libraries and software.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
@ctkjose
ctkjose / gist:06063b48707d187742a7
Last active August 29, 2015 14:12
Web Development Tools
@ctkjose
ctkjose / gist:328324b1dd5f28ff744d
Last active August 29, 2015 14:13
Playing with Docker on Mac Notes

###Start boot2docker from the command line

boot2docker init
boot2docker up

###Stop boot2docker from the command line

boot2docker stop
boot2docker poweroff
@ctkjose
ctkjose / gist:2759204141a4db5d12f1
Last active August 29, 2015 14:23
KOMODO9 Observers Listen and Send

https://github.com/Komodo/KomodoEdit/wiki/138-events-and-notifications

var obsSvc = Components.classes['@mozilla.org/observer-service;1'].getService(Components.interfaces.nsIObserverService);
var listener = {
    observe: function(subject, topic, data) {
        alert("received observer subject: " + subject);
    }
};
obsSvc.addObserver(listener, "application-activated", false);
@ctkjose
ctkjose / jsc.md
Last active August 27, 2021 21:14
Enable Javascript CLI on OS-X

You can run the JavaScriptCore Framework from the CLI to run javascript code.

All we have to do is create an alias to access the jsc binary easily from the CLI.

sudo ln -s /System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc /bin/jsc

To see the CLI options available visit the WebKit wiki. http://trac.webkit.org/wiki/JSC

@ctkjose
ctkjose / svn.md
Last active September 13, 2015 12:10
SVN on OS X

Using FileMerge as Diff Tool

Create a svndiff.sh file

mkdir ~/bin/
cp /dev/null ~/bin/svndiff.sh
chmod +x ~/bin/svndiff.sh
@ctkjose
ctkjose / webdev_tools.md
Last active June 26, 2021 04:37
Web Development Tools

Convert files to PDF

for line in $(ls SHCDRROP*); do cupsfilter -o landscape -o media=legal -o PageSize=legal -o fitplot=true $line > ~/COHORT_REPORTS/${line}.pdf 2> /dev/null; done
//A Basic Build Tool
function run(){
var p = binder.ko.projectGetPath();
if ( p.length <= 0) return;
var pd = binder.ko.pathJoin(p, "config.build.js");
//alert(pd);
var ok = binder.ko.pathExists(pd);
if(!ok){