Skip to content

Instantly share code, notes, and snippets.

View bohemima's full-sized avatar

Henrik bohemima

  • Stockholm, Sweden
View GitHub Profile
package com.geekorum.geekdroid.navigation
import android.content.Context
import android.os.Bundle
import android.util.AttributeSet
import androidx.core.content.res.use
import androidx.core.os.bundleOf
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
...
"deploy": {
"staging" : {
"user": "ec2-user",
"host": "x",
"ref": "origin/master",
"repo": "git@github.com:x/x.git",
"path": "/home/ec2-user/api",
"post-deploy": "npm install && pm2 gracefulReload ecosystem.json",
"env": {
@bohemima
bohemima / README.md
Last active July 10, 2016 17:56
Quick & dirty re-upload of pffiles, used to migrate files from hosted parse.com to self-hosted parse-server

Quick & dirty PFFiles migration script

Transfers PFFiles hosted on parse.com (files.parsetffs.com) to your self-hosted parse-server by simply downloading, re-uploading them and saving the object again. Beware that this will cause all of your rows containing a PFFile to get a new updatedAt date

Running

To run, make sure you install the dependencies using composer.phar install Edit the constants found in migrate.php, also edit the $mapping variable to match your classes and column names that contains PFFile's