- example
- example
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/env ruby | |
require 'rubygems' | |
FILEPATH = ARGV.shift | |
text = File.read(FILEPATH) | |
text.gsub!(/^.*IOHIDEventQueue.c, line: 512.*$\n/, "") | |
File.open(FILEPATH, 'w') {|file| file.puts text} |
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
@interface NSUserDefaults (Fix15115056) | |
- (void)synchronizeAndSetAsUnprotected; | |
@end | |
@implementation NSUserDefaults (Fix15115056) | |
- (void)synchronizeAndSetAsUnprotected; | |
{ |
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
Knock 1.1.7 ships with beta support for entering your password into Mac OS X's admin password request dialogs. | |
To try it out, enter the following command in Terminal. You'll need to restart Knock for these changes to take effect. | |
defaults write com.knock.mac enableSecurityAgentSupportKey -bool true | |
To disable it again: | |
defaults write com.knock.mac enableSecurityAgentSupportKey -bool false |
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
**Tourers (CL appears to have a max query length so you now need to run this search in two parts)** | |
Part 1: | |
tourismo|Specialissima|520|620|720|Expedition|Sequoia|Voyageur|Passage|Portage|Alyeska | |
Part 2: | |
Kodiak|Panasonic|Nishiki|Miyata|Bridgestone|waterford|tour|tourer|touring | |
**Mountain Bikes** | |
stumpjumper|cascade|mb|Highpath|Overbury|ritchey |
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
// Props to the fine folks on this thread http://bbs.iosre.com/forum.php?mod=viewthread&tid=694 | |
// | |
// Example output of a call to dailyUsageStasticsForBundleIdentifier or weeklyUsageStasticsForBundleIdentifier | |
// Inline comments are educated guesses at meaning | |
// { | |
// Airdrop = 0; // Has App used Airdrop | |
// Airplay = 0; // Has App used Airplay | |
// BBCondition = 0; // ?? BB = Backboard? This number is a float (ie 24.8766038700895) | |
// | |
// // No idea what the below units are, or what BLD means |
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/env swift | |
// Inspired by @AlgebraFact, https://twitter.com/AlgebraFact/status/636205354544726017 | |
import Foundation | |
// | |
// A factorion is a number that is equal to the sum of the factorials of its digits. | |
// There are only 4 factorions. | |
// 1 = 1! |
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
function kudo { | |
export fullcmd="" | |
for i in "$@"; do export fullcmd="$fullcmd '${i}'";done | |
osascript -s so -e "do shell script \"$fullcmd 2>&1\" with administrator privileges" | |
} |
Dear Apple,
As developers on the Mac and iOS platforms, we think its time to reflect on Apple's App Store review policies.
There are some wonderful things about the App Stores' protection mechanisms. We believe Apple's policy of not allowing every App on the App Stores, while occasionally problematic, acts overall in the interest of users and high quality software. We're happy that Apple has the ability to delist and remove software that violates user privacy, contains egregious security issues, or otherwise puts users and their data at risk.
That said, we believe that the current policy of manually reviewing App updates places an undue burden on developers, and ultimately harms user experience. It should be reformed.
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
ogr2ogr -f GeoJSON test.json "https://www.portlandmaps.com/arcgis/rest/services/Public/BPS_ReadOnly/MapServer/15/query?f=json&where=RECID%20%3E%200%20AND%20Category%20IN%20('Centers%20and%20Corridors')&returnGeometry=true&spatialRel=esriSpatialRelIntersects&maxAllowableOffset=38&geometryType=esriGeometryEnvelope&inSR=102100&outFields=*&outSR=4326" OGRGeoJSON |
OlderNewer