Skip to content

Instantly share code, notes, and snippets.

Surendhar Reddy surendharreddy

Block or report user

Report or block surendharreddy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

surendharreddy /
Created Jun 19, 2019 — forked from nepsilon/
How to change your commit messages in Git? — First published in issue #55

How to change your commit messages in Git?

At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.

Not pushed + most recent commit:

git commit --amend

This will open your $EDITOR and let you change the message. Continue with your usual git push origin master.

View gist:991f4e86c53b0d78441c2a3d382bb7a6
//This is a Redacted version to be used as a benchmark/example for React Native Router Flux
import React, {
} from 'react-native';
surendharreddy /
Created May 2, 2019 — forked from santisbon/
Bring your feature branch up to date with master. Deploying from Git branches adds flexibility. Bring your branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master

surendharreddy / app.jsx
Created Jan 16, 2019 — forked from axemclion/app.jsx
CodePush + Push Notifications for A/B Testing
View app.jsx
import Push from 'mobile-center-push';
import CodePush from 'react-native-code-push';
import { AppState } from 'react-native';
export default class MyApp extends Component {
// Component Logic ...
pushNotificationReceived: function (pushNotification) {
View Change "origin" of your GIT repository
$ git remote rm origin
$ git remote add origin
$ git config master.remote origin
$ git config master.merge refs/heads/master
View gist:020345c6518f5fe3dc264af62e0cc5e5
// The trick is to link the DeviceSupport folder from the beta to the stable version.
// Updated on Oct 9th, 2018 for Xcode 10
ln -s /Applications/\ \(16B5068g\) /Applications/
// Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versions
// sudo needed if you run the Mac App Store version. Always download the dmg instead... you'll thank me later :)
surendharreddy /
Last active Sep 19, 2018
Mobile Development Tips


Record iPhone Simulator

  • Run the following command to record iPhone Simulator xcrun simctl io booted recordVideo video-name.mp4


Taking screen shots on Geny motion

surendharreddy /
Last active Sep 28, 2018
Fixes for React Native most common errors.

[Android] app crashes with Fatal Exception: java.lang.NoClassDefFoundError okhttp3.OkHttpClient$Builder

/* Add following dependency to dependencies in android/app/build.gradle */ implementation ''

Import the following dependencies in import; import android.content.Context;

and add

surendharreddy /
Created Sep 13, 2018
Add mutlidex support to react native android application
// Add `implementation ''` to dependencies in android/app/build.gradle
// Update with following code with following
public class MainApplication extends MultiDexApplication implements ReactApplication {
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
protected List<ReactPackage> getPackages() {
You can’t perform that action at this time.