This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SomeViewController.swift | |
// | |
// Created by Boy van Amstel on 15/08/16. | |
// Copyright © 2016 Danger Cove. All rights reserved. | |
// | |
// To change the background color, simply modify .backgroundColors: [NSColor] | |
import Cocoa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"cmd": ["pod", "install"], | |
"selector": "Podfile" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run irssi if it's not already running | |
ps cax | grep irssi > /dev/null | |
if ! [ $? -eq 0 ]; then | |
yn="y" # Set the default, if the timeout expires | |
echo -n "Run irssi? [yn] " | |
read -t 3 yn | |
case $yn in | |
[Yy]* ) irssi;; | |
* ) ;; | |
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the Danger Cove Active Menu plugin | |
# | |
# Installation: | |
# Place this file in your plugin directory. | |
# | |
# Usage: | |
# class="{% dcactivemenu checkfor.html [/another] %}" | |
# | |
# Returns 'active' when the checkfor.html occurs in the page.url | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Via: http://blog.suda.pl/2012/01/auto-increment-build-number-in-xcode-4-2-fixed/ | |
# Just add “Run Script” build phase with this script (remember to move it before | |
# “Copy Bundle Resources” phase) and set your CFBundleVersion to an integer. | |
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" ${PROJECT_DIR}/${PROJECT_NAME}/${PROJECT_NAME}-Info.plist) | |
buildNumber=$(($buildNumber + 1)) | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" ${PROJECT_DIR}/${PROJECT_NAME}/${PROJECT_NAME}-Info.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: http://stackoverflow.com/questions/5572632/firefox-how-can-i-add-modify-toolbars-using-the-add-on-sdk-jetpack | |
// Only works on first window opened.. | |
var data = require("self").data; | |
var {Cc, Ci} = require("chrome"); | |
var mediator = Cc['@mozilla.org/appshell/window-mediator;1'].getService(Ci.nsIWindowMediator); | |
exports.main = function(options, callbacks) { | |
addToolbarButton(); | |
// other stuff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>title</title> | |
<link rel="stylesheet" href="style.css"> | |
<script src="script.js"></script> | |
</head> | |
<body> | |
<!-- page content --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ /Applications/Porthole.app/Contents/MacOS/Porthole -AppleLanguages "(German)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo spctl --master-enable | |
$ sudo spctl --master-disable | |
# Read more: http://forums.appleinsider.com/t/143736/gatekeeper-is-hidden-in-os-x-10-7-3-lion-developers-can-preview-it-now |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ codesign -d -vvv [Application].app | |
# Or use: http://itunes.apple.com/us/app/rb-app-checker-lite/id519421117?mt=12 |