I hereby claim:
- I am wongzigii on github.
- I am wongzigii (https://keybase.io/wongzigii) on keybase.
- I have a public key ASAb5qnlXCScoULbvie73Z6joBONE8xKk3zaEn-TTEmPigo
To claim this, I am signing this object:
| /* | |
| For example, you use Core Data sqlite. | |
| It is necessary, because sqlite database stores data in single file. | |
| Whole database is single file. | |
| Now you have two options. | |
| 1. Delete all data from all tables | |
| 2. Delete database sqlite file | |
| Second option is clean but complex. |
| #!/bin/bash | |
| find -E $(xcode-select --print-path) -regex '.*___\.(c|h|m|swift)' -print0 | xargs -0 -n 1 sed -i '' '1,/^$/d' |
| //\n//.+\n//.+\n//\n//.+\n// Copyright.+$\n//\n\n |
| pbpaste | egrep '\.[0-9]+ms' | sort -t "." -k 1 -n | tail -10 |
| @interface ViewController () | |
| @property (strong, nonatomic) UIScrollView* vScrollView; | |
| @end | |
| @implementation ViewController | |
| - (void)viewDidLoad | |
| { | |
| [super viewDidLoad]; | |
| //clang++ -std=c++11 -stdlib=libc++ -framework Foundation nsarray.mm -o nsarray | |
| /* Note: | |
| * - libstdc++ has been frozen by Apple at a pre-C++11 version, so you must opt | |
| for the newer, BSD-licensed libc++ | |
| * - Apple clang 4.0 (based on LLVM 3.1svn) does not default to C++11 yet, so | |
| you must explicitly specify this language standard. */ | |
| /* @file nsarray.mm | |
| * @author Jeremy W. Sherman | |
| * | |
| * Demonstrates three different approaches to converting a std::vector |
| # Create a container from the mongo image, | |
| # run is as a daemon (-d), expose the port 27017 (-p), | |
| # set it to auto start (--restart) | |
| # and with mongo authentication (--auth) | |
| # Image used is https://hub.docker.com/_/mongo/ | |
| docker pull mongo | |
| docker run --name YOURCONTAINERNAME --restart=always -d -p 27017:27017 mongo mongod --auth | |
| # Using the mongo "localhost exception" (https://docs.mongodb.org/v3.0/core/security-users/#localhost-exception) | |
| # add a root user |
| cd ~ | |
| rm -rf .old_itmstransporter/ | |
| mv .itmstransporter/ .old_itmstransporter/ | |
| "/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter" |
| ### Keybase proof | |
| I hereby claim: | |
| * I am wongzigii on github. | |
| * I am wongzigii (https://keybase.io/wongzigii) on keybase. | |
| * I have a public key ASCn8Mg_ycB69aLhl5yqh9KBIc7kx_ted1_YDWtnWYh8Qwo | |
| To claim this, I am signing this object: |
I hereby claim:
To claim this, I am signing this object: