/app
/app/index.js
/app/package.json
/app/spec/helpers/junit_reporter.js
/app/spec/support/jasmine.json
/app/spec/tests/helloworld.spec.js
This file contains 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 node | |
// .meteor/android_fix_google_play_services.js | |
console.log('Running android_fix_google_play_services.js to use exact play services version for current Meteor target SDK 26'); | |
var fs = require('fs'); | |
var pluginxml = 'plugins/cordova-plugin-googleplus/plugin.xml'; | |
var gradlePath = 'platforms/android/build.gradle'; | |
var projectProps = 'platforms/android/project.properties'; |
This file contains 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
const fs = require('fs'); | |
const lines = fs.readFileSync('source.txt', { encoding: 'utf8' }); | |
const unique_lines = [...new Set(lines.split("\n"))]; | |
fs.writeFileSync('output.txt', unique_lines.join(",")); |
This file contains 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
# www to non-www | |
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | |
RewriteRule ^(.*)$ https://example.com/$1 [R=301,L] | |
# non-www to www: | |
RewriteCond %{HTTP_HOST} ^example.com [NC] | |
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC] |
This file contains 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
<VirtualHost *:80> | |
DocumentRoot /path/to/www/ | |
ServerName domain.com | |
ServerAlias www.domain.com | |
<Directory "/path/to/www/"> | |
Options FollowSymLinks MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec | |
AllowOverride All | |
Require all granted | |
</Directory> | |
</VirtualHost> |
This file contains 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
var i = 0; | |
var orphans = 0; | |
db.fs.chunks.find({}, { files_id: 1 }).forEach(function(chunk) { | |
i++; | |
if (i % 100 === 0) { | |
print(i); | |
} | |
if (!db.fs.files.findOne({ _id: chunk.files_id }, { _id: 1 })) { | |
print("orphan " + chunk._id); | |
db.fs.chunks.remove({ _id: chunk._id }); |