- Connect to computer via USB
- Backup via iTunes (make sure you choose encrypted backup)
- Transfer purchases via iTunes
- Ensure iCloud backup for Docs and Data is on for the apps that need their data restored
- Force-trigger an iCloud backup (fromthe Settings, on Wi-Fi and connected to power)
- Erase all content and Settings on iOS
- Connect to iTunes and use Restore from Backup
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
export CC='gcc -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon' | |
export CXX='g++ -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon' | |
./configure --without-snapshot | |
make -j4 | |
sudo make install |
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
/* From http://furbo.org/2015/07/09/i-left-my-system-fonts-in-san-francisco/ */ | |
* { font-family: -apple-system-font, HelveticaNeue, LucidaGrande; } | |
/* Dynamic Type feature */ | |
* { font-family: -apple-system-headline1, HelveticaNeue, LucidaGrande; } | |
* { font-family: -apple-system-headline2, HelveticaNeue, LucidaGrande; } | |
* { font-family: -apple-system-body, HelveticaNeue, LucidaGrande; } | |
* { font-family: -apple-system-subheadline1, HelveticaNeue, LucidaGrande; } | |
* { font-family: -apple-system-subheadline2, HelveticaNeue, LucidaGrande; } |
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
// Fancy Underline | |
// Creates a nice underline for links using CSS linear gradient | |
// with control on width, color and distance from baseline | |
// Inspired by Medium's technique ca. 2015 | |
.fancy-underline ( @color: rgba(0, 0, 0, 0.5), @start: 0.05em, @end: 0.15em ) { | |
text-decoration: underline; | |
// Use Modernizr | |
// http://modernizr.com/download/#-cssgradients-printshiv-cssclasses-prefixes-cssclassprefix:has! | |
.has-cssgradients & { | |
text-decoration: none; |
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
// Discussion here: http://stackoverflow.com/questions/845390/javascript-to-get-paragraph-of-selected-text-in-web-page | |
var selection = window.getSelection(); | |
var textNode = selection.anchorNode.parentNode; | |
var text = textNode.innerHTML; |
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
ul li:before { | |
content: "\2022"; | |
margin-left: -1.2em; | |
padding-right: 0.6em; | |
opacity: 0.4; | |
} |
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
(* | |
Speed up Mail.app by vacuuming the Envelope Index | |
Code from: http://www.hawkwings.net/2007/03/03/scripts-to-automate-the-mailapp-envelope-speed-trick/ | |
Originally by "pmbuko" with modifications by Romulo | |
Updated by Brett Terpstra 2012 | |
Updated by Mathias Törnblom 2015 to support V3 in El Capitan and still keep backwards compability | |
*) | |
tell application "Mail" to quit | |
set os_version to do shell script "sw_vers -productVersion" |
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
.*\b((invoice|recei(pts?|ved)|failed|payment|order|sale|authori[zs]ed|sent|statement|confirm(ation|ed)|booking|deliver(y|ed)|complete|transaction|bill|purchased?|account|ready|available|funded|trip)(\b.*?|$)){2}.* | |
.*\s(order|invoice|receipt|payment|renewal).*((\[|-|number|no|#|id).*[A-Z0-9]+).* | |
.*\b(amazon|invoice from).*\b(order|apple).* |
Via brew or other method
In order to work on every connection and on any TLD, dnsmasq
needs to be the first DNS resolver receving the query.
And since dnsmasq
is a local process, all DNS queries need to go to 127.0.0.1
On macOS, /etc/resolv.conf
is automaticaly created, depending on a variety of things (network settings, etc), so it cannot be edited.
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
/* | |
Streamlined Shopify theme development. | |
NOTE: depends on module gulp-shopify-theme | |
npm install --save-dev yargs gulp gulp-sass gulp-changed gulp-sourcemaps gulp-autoprefixer gulp-uglify gulp-concat gulp-replace gulp-plumber gulp-babel browser-sync gulp-if del gulp-add-src gulp-rename gulp-yaml gulp-shopify-theme | |
Highlights: | |
- https proxying via BrowserSync |