Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # Get Sublime Text to use your rvm ruby without hardcoding a `$USER`. | |
| # | |
| # Include the configurations below the commend in the appropriate file listed below: | |
| # | |
| # - OS X ST2: ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build | |
| # - OS X ST3: ~/Library/Application Support/Sublime Text 3/Packages/User/Ruby.sublime-build | |
| # - Linux ST2: ~/.config/sublime-text-2/Packages/Ruby/Ruby.sublime-build | |
| # - Linux ST3: ~/.config/sublime-text-3/Packages/User/Ruby.sublime-build | |
| { |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #include <Carbon/Carbon.h> | |
| typedef void *CGSConnectionID; | |
| extern CGSConnectionID _CGSDefaultConnection(void); | |
| #define CGSDefaultConnection _CGSDefaultConnection() | |
| typedef uint64_t CGSSpace; | |
| typedef enum _CGSSpaceType { | |
| kCGSSpaceUser, | |
| kCGSSpaceFullscreen, |
| /* WITH MODS TO ORIG -- iOS Browser Bookmarklets to launch other apps and stuff */ | |
| /* ver 2014-04-14a */ | |
| /* backing up my "Open In" bookmarks */ | |
| // note iOS6 requires some changes to these | |
| // BEGIN TESTING STUFF -- IN PROFRESS LIKELY NOT WORKING | |
| // SOME WORK, MOST tests are not WORK -- | |
| // PINNER APP TEST STUFF (as a private one) | |
| // the page title as the title and your selected text as the description. |
Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages and install them manually as needed.
| #import <Foundation/Foundation.h> | |
| @interface AClass (ACategory) | |
| @end |
| class Object | |
| def self.attr_indexed var, custom_methods = {} | |
| key = var.to_s | |
| capitalized_key = key.capitalize[0] + key[1..-1] | |
| methods = { | |
| :size => lambda { instance_variable_get("@#{var}").size }, | |
| :at => lambda { |idx| instance_variable_get("@#{var}")[idx] }, | |
| :insert => lambda { |obj, idx| instance_variable_get("@#{var}").insert(idx, obj) }, | |
| :delete_at => lambda { |idx| instance_variable_get("@#{var}").delete_at(idx) } |
| void *_MAZeroingWeakRefClassPresentToken = &_MAZeroingWeakRefClassPresentToken; | |
| void *_MAZeroingWeakRefClassNativeWeakReferenceNotAllowedTable[256] = { | |
| [0x3] = (void *[256]) { // 1 | |
| [0x5b] = (void *[256]) { // 2 | |
| [0x81] = (void *[256]) { // 3 | |
| [0x42] = (void *[256]) { // 4 | |
| [0xa2] = (void *[256]) { // 5 | |
| [0xe] = (void *[256]) { // 6 | |
| [0x20] = (void *[256]) { // 7 | |
| [0xd7] = (void *[256]) { // 8 |
| #!/usr/bin/env ruby | |
| FSCRIPT_PATH = "/Library/Frameworks/FScript.framework" | |
| if ARGV.empty? | |
| puts "Usage: #{$0} process_name" | |
| exit | |
| end | |
| GDB = IO.popen("gdb", 'w') |