Terminal command to zip up files excluding unwanted Icon and DS_Store files
zip my_zip_file.zip -r dir_to_zip -x "*Icon*" "*.DS_Store"| #!/bin/bash | |
| set -euo pipefail | |
| xcrun altool --upload-app --type ios --file "path/to/foo.ipa" --username "$ITC_USER" --password "$ITC_PASSWORD" |
Terminal command to zip up files excluding unwanted Icon and DS_Store files
zip my_zip_file.zip -r dir_to_zip -x "*Icon*" "*.DS_Store"| # Run this in an elevated PowerShell prompt | |
| <# This script worked on a fresh Windows Server 2012 VM in Azure and the following were the latest versions of each package at the time: | |
| * Chocolatey 0.9.8.27 | |
| * java.jdk 7.0.60.1 | |
| * apache.ant 1.8.4 | |
| * android-sdk 22.6.2 | |
| * cordova 3.5.0-0.2.6 | |
| * nodejs.install 0.10.29 | |
| #> | |
| # Note: there is one bit that requires user input (accepting the Android SDK license terms) |
Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.
Prerequisites (for Homebrew at a minimum, lots of other tools need these too):
xcode-select --install will prompt up a dialog)Install Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
| <!DOCTYPE html> | |
| <html ng-app="docsTimeDirective"> | |
| <head> | |
| <meta name="description" content="Simple Angular JS countdown timer" /> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.min.js"></script> | |
| <meta charset=utf-8 /> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <div ng-controller="Ctrl2"> |
| // 1. Go to page https://www.linkedin.com/settings/email-frequency | |
| // 2. You may need to login | |
| // 3. Open JS console | |
| // ([How to?](http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers)) | |
| // 4. Copy the following code in and execute | |
| // 5. No more emails | |
| // | |
| // Bookmarklet version: | |
| // http://chengyin.github.io/linkedin-unsubscribed/ |
| [ | |
| {"US":"United States"}, | |
| {"CA":"Canada"}, | |
| {"AF":"Afghanistan"}, | |
| {"AL":"Albania"}, | |
| {"DZ":"Algeria"}, | |
| {"DS":"American Samoa"}, | |
| {"AD":"Andorra"}, | |
| {"AO":"Angola"}, | |
| {"AI":"Anguilla"}, |
| # CSS/JS auto-versioning | |
| RewriteEngine On | |
| RewriteRule ^(.*)\.[\d]{10}\.(css|js)$ $1.$2 [L] |
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
| function encrypt(text){ | |
| var cipher = crypto.createCipher('aes-256-cbc','d6F3Efeq') | |
| var crypted = cipher.update(text,'utf8','hex') | |
| crypted += cipher.final('hex'); | |
| return crypted; | |
| } | |
| function decrypt(text){ | |
| var decipher = crypto.createDecipher('aes-256-cbc','d6F3Efeq') | |
| var dec = decipher.update(text,'hex','utf8') |