git update-index --skip-worktree <file>
git update-index --no-skip-worktree <file>
git update-index --assume-unchanged <file>
StringWriter writer = new StringWriter(); | |
IOUtils.copy(stream, writer, "UTF-8"); | |
String theString = writer.toString(); |
To fix missing provisioning profiles when running ionic build ios
run the following command to copy the profiles to the correct directory for ionic.
sudo cp -r ~/Library/MobileDevice/ /Library/MobileDevice/
Open android SDK tools at
Users/user-name/Library/Android/sdk/tools/android
and go through and accept new licenses and download updates.
RSpec.configure do |config| | |
config.before(:suite) do | |
DatabaseCleaner.clean_with(:truncation) | |
end | |
config.before(:each) do | |
DatabaseCleaner.strategy = :transaction | |
end | |
config.before(:each, js: true) do |
{ | |
"env": { | |
"browser": true, | |
"node": true | |
}, | |
"extends": "google", | |
"installedESLint": true, | |
"plugins": [ | |
"react" | |
], |
The following will allow you to use a sql dump to overwrite an existing database.
gunzip name_of_file.sql.gz
mysql -uusername –p database_name < file.sql
mysql -uhomestead -p homestead < file.sql
Or this if the above is outputting a bunch of help text:
New rules cause a Transport Security Error in XCode when trying to test an app using an emulator that connects to a localhost without an SSL certificate. You can add the following code to allow testing on a development server.
Add the following to the platforms/ios/yourappname/YourAppName-Info.plist
file
<key>NSAppTransportSecurity</key>
<dict>
NSExceptionDomains
##Ionic, EACCESS, File Permission, and Xcode signing
Recently, Ionic and Xcode 6 have not been playing nicely. I believe I have targeted the error to file permissions that are set when Ionic adds a platform.
I kept getting an Exit Code 1 error when I would try to build my iOS app. Running the following from the terminal from within the project directory solved the error.
sudo chmod -R a+rwx platforms
###Error During iOS App Archiving