Skip to content

Instantly share code, notes, and snippets.

@mrfabbri
mrfabbri / fsa.py
Last active August 29, 2015 14:11 — forked from danielpunkass/fsa.py
"""
Automate loading of F-Script Anywhere into any app.
By Daniel Jalkut - @danielpunkass - http://indiestack.com/
Revision 0.2 by Marco Fabbri - @mrfabbri - mrfabbri@gmail.com
To set up:
0. Make sure you have FScript.framework installed in /Library/Frameworks (http://www.fscript.org)
1. Copy this script to ~/.lldb/fsa.py
2. Add the following to your ~/.lldbinit file:
@mrfabbri
mrfabbri / fscript-inject.sh
Last active August 29, 2015 14:11
F-Script injection script
#!/usr/bin/env zsh
Frameworks="/Library/Frameworks";
usage() {
echo "Injects F-Script (menu) into a running application (via lldb)"
echo "usage: $(basename $0) [-c] <application-name-or-PID>"
echo
echo "options:"
echo "-c \t\topens F-Script console (useful for apps lacking a menu bar):"
@mrfabbri
mrfabbri / noderunner.js
Last active August 29, 2015 14:12
Noderunner + Dropbox
//The MIT License (MIT)
//Copyright (c) 2014 Dave Winer
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions:
@mrfabbri
mrfabbri / app.js
Created February 4, 2015 23:19
App wide shortcuts in NW.js in "userland" [PoC]
"use strict";
var gui = require("nw.gui");
var AppShortcut = require("./appshortcut")(gui).AppShortcut;
var keycode = require('keycode');
var win = gui.Window.get();
if (process.platform === "darwin") {
var nativeMenuBar = new gui.Menu({type: "menubar"});
Verifying that +mrfabbri is my blockchain ID. https://onename.com/mrfabbri