plist: itms-services://?action=download-manifest&url=https://ssl.pgyer.com/app/plist/{app_id}}/s.plist
This file contains hidden or 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
#include<stdio.h> | |
int main(){ | |
int x = 10; | |
while (x-->0){ | |
printf("%d",x); | |
} | |
} |
This file contains hidden or 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
//defining a block variable | |
typedef void (^Completionhandler)(BOOL success); | |
//creating a block variable | |
Completionhandler myCompletionHandler; |
This file contains hidden or 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>items</key> | |
<array> | |
<dict> | |
<key>assets</key> | |
<array> | |
<dict> |
This file contains hidden or 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 | |
# fix-xcode | |
# Mark Rickert <[email protected]> | |
# Symlinks all your old SDKs to Xcode.app every time it is updated. | |
# Create a directory called /SDKs and run this script. | |
# | |
# Each time you upgrade Xcode, run fix-xcode. |
This file contains hidden or 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
using Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace TestAnalyticsAPI |
This file contains hidden or 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
<script type="text/javascript"> | |
$(document).ready(function () { | |
GetLatestReleaseInfo(); | |
}); | |
function GetLatestReleaseInfo() { | |
$.getJSON("https://api.github.com/repos/ShareX/ShareX/releases/latest").done(function (release) { | |
var asset = release.assets[0]; | |
var downloadCount = 0; | |
for (var i = 0; i < release.assets.length; i++) { |
This file contains hidden or 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
#Get the p12 file, it needs to be converted to the PEM format by executing this command from the terminal: | |
openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12 | |
openssl pkcs12 -nocerts -out apns-dev-key.pem -in apns-dev-key.p12 | |
#If you want to create pem file without passphase, use -nodes | |
openssl pkcs12 -nocerts -out apns-dev-key.pem -in apns-dev-key.p12 -nodes | |
#If you wish to remove the passphrase, either do not set one when exporting/converting or execute: | |
openssl rsa -in apns-dev-key.pem -out apns-dev-key-noenc.pem |
This file contains hidden or 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
#Ref http://stackoverflow.com/a/18354072/317461 | |
#Put your release build and your .dSYM file in the same directory and open terminal | |
$cd directory | |
$lldb MyApp.app | |
(lldb) image lookup -v --address 0x00085f3c |
This file contains hidden or 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
+ (void)removeAllStoredCredentials{ | |
// Delete any cached URLrequests! | |
NSURLCache *sharedCache = [NSURLCache sharedURLCache]; | |
[sharedCache removeAllCachedResponses]; | |
// Also delete all stored cookies! | |
NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage sharedHTTPCookieStorage]; | |
NSArray *cookies = [cookieStorage cookies]; | |
id cookie; | |
for (cookie in cookies) { |
OlderNewer