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 | |
# This script create a new repo on github.com, then pushes the local repo from the current directory to the new remote. | |
# It is a fork of https://gist.github.com/robwierzbowski/5430952/. Some of Rob's lines just didn't work for me, and to fix them I needed to make it more verbose so that a mere electrical engineer could understand it. | |
# This script gets a username from .gitconfig. If it indicates that your default username is an empty string, you can set it with | |
# git config --add github.user YOUR_GIT_USERNAME | |
# Gather constant vars |
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
******************************************************** | |
*** STEPS TO SYMBOLIZE A CRASH DUMP OR EXCEPTION LOG *** | |
******************************************************** | |
1) Move/copy both the crashing .app and the relevant.dSYM files into the same directory. | |
2) If the crash was in a framework, dynamic library, or bundle, you have position-independent code and must work out the *slide*. Otherwise, skip up to step 9 and use slide=0. | |
3a) If you have a crash dump, look in the *Binary Images* part of the crash log and find the framework, dynamic libray or bundle in which the crash occurred. Read the first column of the output. This is the address at which the __TEXT segment was loaded. We call it the *Actual Load Address* and denote it as *A*. |
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 <Cocoa/Cocoa.h> | |
#import "BkmxAppDel.h" | |
#import "BkmxGlobals.h" | |
enum BkmxParentingAction_enum | |
{ | |
BkmxParentingActionNone, // 0 | |
BkmxParentingAdd, // 1 | |
BkmxParentingRemove, // 2 | |
BkmxParentingCopy, // 3 |
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/perl | |
=com | |
PURPOSE | |
This script will | |
Force you through a comprehensive quality-control checklist | |
Run Deploymate | |
Get the latest version number by reading it from product's 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>CheckBuildDirXattrs</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/Users/jk/bin/CheckAndClearXattrs.sh</string> | |
<string>/Users/jk/Documents/Programming/Builds</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
#!/usr/bin/perl | |
use strict ; | |
use IPC::Run ; | |
use File::Basename ; | |
use File::Util ; | |
# Sometimes this is necessary for modules in this directory to be found at compile time when running on my Mac: | |
use lib '/Users/jk/Documents/Programming/Scripts' ; |
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/perl | |
=com | |
This script takes one parameter, the path/to/Members subdirectory of a YaBB 2.4 directory. It deletes files of any members who have registered more than 72 hours ago, and have never posted any posts that have not been removed. Presumably such members were registered by spammers' robots. | |
It also modifies the 'memberlist.txt' and 'memberinfo.txt' files in there appropriately, deleting the culled members. It does not touch the 'memberlist.inactive', which appears to be records of "new members who have not yet registered". | |
This script has been tested in Mac OS X and should work in any Unix system. |
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
-- Version: Substantially rewrote on 2020 09 06 to use Graphics > Export Pages instead of | |
File > Print > Save as PDF. Also now works with Finale 26 and macOS 10.11 Big Sur (Beta 6). | |
Have not tested with earlier versions. | |
-------------------------------------------------- | |
-- Begin Parameters which you should edit | |
-------------------------------------------------- | |
-- Set saveDirPath to the path to the directory you always save your PDF outputs saved to. | |
-- Possibly starting with OS X 10.10.2, the "~" in the following no longer expands to your home folder. Path must start with /Users/<yourShortName> |
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
(* Actually running this script requires that several other tools be included into | |
the script's package. The entire package, which should include the latest version of | |
this script, may be downloaded from here: | |
http://sheepsystems.com/files/SSYTroubleZipper.zip *) | |
property scriptVersion : "0255 published 2014-12-04" | |
property companyUTI : "com.sheepsystems" | |
property ourProcessNames : {"Bookdog", "Bookwatchdog", "BookMacster", "Markster", "Smarky", "Synkmark", "Sheep-Sys-Worker", "Sheep-Sys-Quatch", "Sheep-Sys-Thomas", "Sheep-Sys-UrlHandler", "FileAliasWorker"} | |
-- The above are all acted upon in 'try' blocks, so it's OK if some don't exist in certain context(s). | |
property companyName : "Sheep Systems" |
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
-- To load this library, see section titled "-- Using a handler in a .scpt library" at the top of One_Liners.scpt. | |
on testJerryLib() | |
return 0 | |
end testJerryLib | |
(* The bad thing about this handler is that it always asks the user for admin credentials whether or not they are actually needed to answer the question on the given path. | |
Obviously, you can remove the 'with adminstrator privileges'. Unfortunately, this will cause the method to return 'false' if an existing path cannot be probed because of bad permissions. I can't see any way to differentiate between inadequate permissions and nonexisting file because they both set errNumber = 54. | |
The -e checks for directories or files. To require that the given path be a directory, use -d. For file, use -f. For more variations, see: | |
http://www.cyberciti.biz/tips/find-out-if-file-exists-with-conditional-expressions.html *) |
OlderNewer