Skip to content

Instantly share code, notes, and snippets.

View satyadeepk's full-sized avatar

Satyadeep satyadeepk

View GitHub Profile
// more information here: http://blog.tomtasche.at/2012/10/use-built-in-feedback-mechanism-on.html
try {
int i = 3 / 0;
} catch (Exception e) {
ApplicationErrorReport report = new ApplicationErrorReport();
report.packageName = report.processName = getApplication()
.getPackageName();
report.time = System.currentTimeMillis();
report.type = ApplicationErrorReport.TYPE_CRASH;
@satyadeepk
satyadeepk / ParseProxyObject.java
Last active October 5, 2015 14:27 — forked from janakagamini/ParseProxyObject.java
A Parse.com Serializable ParseObject Proxy for passing around activities
import com.parse.ParseFile;
import com.parse.ParseGeoPoint;
import com.parse.ParseObject;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
public class ParseProxyObject implements Serializable {
@satyadeepk
satyadeepk / downgrademysql.md
Last active January 27, 2018 17:18 — forked from Voronenko/downgrademysql.md
Downgrade mysql to mysql 5.6 on Ubuntu 16.04 xenial

Install MySQL 5.6 in Ubuntu 16.04

Ubuntu 16.04 only provides packages for MySQL 5.7 which has a range of backwards compatibility issues with code written against older MySQL versions.

Oracle maintains a list of official APT repositories for MySQL 5.6, but those repositories do not yet support Ubuntu 16.04. However, the 15.10 repos will work for 16.04.

Uninstall existing mysql 5.7 if any

sudo apt remove mysql-client mysql-server libmysqlclient-dev mysql-common
@satyadeepk
satyadeepk / git-make-empty-root.sh
Last active April 24, 2019 13:42 — forked from nicktoumpelis/git-make-empty-root.sh
Create an empty initial commit for a pull request for new project
git checkout --orphan temp
git rm -rf .
git commit --allow-empty -m 'Make initial root commit'
git rebase --onto temp --root develop
git push origin --force develop:develop
git push origin temp:master
git branch -D temp