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
#!/bin/bash | |
set -x | |
cp -r /Applications/Firefox.app . | |
find Firefox.app -type f -exec codesign --remove-signature {} \; | |
xattr -cr Firefox.app | |
cat << EOF > empty.xml | |
<?xml version="1.0" encoding="UTF-8"?> |
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
set -x | |
cp -r /Applications/Firefox.app . | |
find Firefox.app -type f -exec codesign --remove-signature {} \; | |
xattr -cr Firefox.app | |
codesign -v --force --sign ${CSID} --options runtime \ | |
--entitlements ${MOZILLA_CENTRAL}/security/mac/hardenedruntime/v2/production/plugin-container.xml \ | |
Firefox.app/Contents/MacOS/plugin-container.app |
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
#import <Foundation/Foundation.h> | |
#include <ApplicationServices/ApplicationServices.h> | |
// | |
// Given a single PID on the command line, print the process' | |
// signature and the launching process' signature. The process' | |
// signature is a field in the ProcessInfoRec structure. | |
// | |
// For converting the process signature 4 byte field to a string. |
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
#!/bin/bash | |
# Create a .dmg from the provided .app. Accepts a single argument | |
# which should be something like | |
# | |
# ~/mybuilds/Firefox.app | |
# | |
# Uses a 1024m disk image file. Increase as necessary. | |
set -x |
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
#!/usr/bin/python | |
# This Source Code Form is subject to the terms of the Mozilla Public | |
# License, v. 2.0. If a copy of the MPL was not distributed with this | |
# file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
import sys | |
from AppKit import NSScreen | |
def print_screen(name, screen): | |
print("%20s: scale:%.0f at origin (%6d, %6d) with size %5d by %5d" % |
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
#!/usr/bin/python | |
# This Source Code Form is subject to the terms of the Mozilla Public | |
# License, v. 2.0. If a copy of the MPL was not distributed with this | |
# file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
from AppKit import NSScreen, NSWorkspace | |
def main(): | |
focussedScreen = NSScreen.mainScreen() | |
if not focussedScreen: |
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
[extensions] | |
histedit = | |
rebase = | |
strip = | |
[alias] | |
down = up -r "p1(p1())" | |
outpg = log -G -r outp --color=always --template allfiles | |
[revsetalias] | |
outp = parents(outgoing())|outgoing() | |
[templates] |
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
#!/usr/bin/python | |
import argparse | |
import ctypes | |
import errno | |
import os | |
import sys | |
SUCCESS_EXIT_CODE = 0 | |
ERROR_EXIT_CODE = 1 |