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
The trick is to set "Host:itunes.apple.com" as a header and disable certification verification "-k" | |
Optionally use "-v" for verbose outcome | |
When itunes detects your crawling and returns blank page just swap the IP address. | |
curl -silent -k -A "iMacAppStore/1.0.1 (Macintosh; U; Intel Mac OS X 10.6.7; en) AppleWebKit/533.20.25 " --anyauth -H "Host:itunes.apple.com" -v "https://88.221.6.217:443/WebObjects/MZStore.woa/wa/viewSoftware?mt=12&id=491390884&cc=us" | |
List of IP addresses: | |
88.221.6.217 itunes.apple.com | |
2.21.34.217 itunes.apple.com | |
95.100.210.217 itunes.apple.com |
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
tell application "System Preferences" | |
launch | |
activate | |
reveal anchor "Privacy_Contacts" of pane id "com.apple.preference.security" | |
display alert "RESET CONTACTS APPROVAL LIST" message "This script will reset (clear) the list of applications in the Contacts section of the Privacy system preference pane." & linefeed & linefeed & "This action requires an administrative password, and cannot be undone." as critical buttons {"Cancel", "Reset"} cancel button "Cancel" | |
set show all to true |
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
#Watch symlinks (ls -al) | |
codesign --verbose=4 --deep --strict Mail.app/ | |
--prepared:/Applications/Mail.app/Contents/PlugIns/MailWebPlugIn.webplugin | |
--validated:/Applications/Mail.app/Contents/PlugIns/MailWebPlugIn.webplugin | |
Mail.app/: valid on disk | |
Mail.app/: satisfies its Designated Requirement | |
#http://furbo.org/2015/07/23/code-signing-in-el-capitan/ | |
codesign --verbose=4 --deep --strict xScope.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
+ (NSArray *)tradeDoublerSupportedCountryCodes { | |
return @[@"AR", @"AT", @"BE", @"BR", @"BG", @"CL", @"CO", @"CR", @"CY", @"CZ", @"DK", @"SV", @"EE", @"FI", @"FR", @"DE", @"GR", @"HN", @"HU", @"IE", @"IT", @"LV", @"LT", @"LU", @"MT", @"NL", @"NO", @"PA", @"PY", @"PE", @"PL", @"PT", @"RO", @"SK", @"SI", @"ES", @"SE", @"CH", @"GB"]; | |
} | |
+ (NSArray *)PHGSupportedCountryCodes { | |
return @[@"AI", @"AG", @"AR", @"AM", @"AU", @"AT", @"BS", @"BH", @"BB", @"BY", @"BE", @"BZ", @"BM", @"BO", @"BW", @"BR", @"VG", @"BN", @"BG", @"BF", @"CA", @"CV", @"KY", @"CL", @"CO", @"CR", @"HR", @"CY", @"CZ", @"DK", @"DM", @"EC", @"EG", @"SV", @"EE", @"FJ", @"FI", @"FR", @"GM", @"DE", @"GH", @"GR", @"GD", @"GT", @"GW", @"GY", @"HN", @"HK", @"HU", @"IN", @"ID", @"IE", @"IL", @"IT", @"JM", @"JP", @"JO", @"KZ", @"KE", @"KW", @"KG", @"LV", @"LB", @"LT", @"LU", @"MO", @"MK", @"MY", @"MT", @"MU", @"MX", @"FM", @"MN", @"MZ", @"NA", @"NP", @"NL", @"NZ", @"NI", @"NE", @"NG", @"NO", @"OM", @"PK", @"PA", @"PG", @"PY", @"PE", @"PH", @"PL", @ |
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 | |
# Based on https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
############################################################################### | |
# General UI/UX # | |
############################################################################### | |
# Set computer name (as done via System Preferences → Sharing) | |
scutil --set ComputerName "Edson Alves Junior's MacBook Pro" | |
scutil --set HostName "Edson Alves Junior's MacBook Pro" |
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
//Subclass NSTableView and override the textDidEndEditing method. Then change the custom class of NSTableView instance in IB to the subclass. | |
- (void) textDidEndEditing: (NSNotification *) notification | |
{ | |
NSInteger editedColumn = [self editedColumn]; | |
NSInteger editedRow = [self editedRow]; | |
NSInteger lastRow = [self numberOfRows]; | |
NSInteger lastCol = [self numberOfColumns]; | |
NSDictionary *userInfo = [notification userInfo]; | |
int textMovement = [(NSNumber *)[userInfo valueForKey:@"NSTextMovement"] intValue]; | |
[super textDidEndEditing: notification]; |
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/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
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
int numberOfPairs(NSSet *uniqueNumbers, int difference) { | |
if (difference <= 0 || [uniqueNumbers count] <= 0) { | |
return 0; | |
} | |
//creating set of decremented numbers to do intersection | |
NSMutableSet *setToCompare = [[NSMutableSet alloc] init]; | |
for (NSNumber *number in uniqueNumbers) { | |
[setToCompare addObject:@([number intValue] - difference)]; | |
} |
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
// | |
// main.m | |
// antidebugging | |
// | |
// Created by Vincent Tan on 7/8/15. | |
// Copyright (c) 2015 Vincent Tan. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
#import "AppDelegate.h" |
OlderNewer