Skip to content

Instantly share code, notes, and snippets.

🤖
Beep boop.

Marc Bernstein MarcBernstein

Block or report user

Report or block MarcBernstein

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
@MarcBernstein
MarcBernstein / slackstatus.sh
Last active Apr 14, 2017
Sets Slack status using new Status API. Save the script somewhere in your $PATH and set it executable.
View slackstatus.sh
#!/bin/bash
# Sets Slack status using new Status API.
# Save the script somewhere in your $PATH and set it executable.
slacktoken=<Your auth token, get one here https://api.slack.com/custom-integrations/legacy-tokens>
apiurl="https://slack.com/api/users.profile.set?token="$slacktoken"&profile="
if ! [ $# -eq 0 ] && ! [ $# -eq 2 ]; then
echo "Script takes exactly 0 (remove status ) or 2 arguments (emoji and status (in quotes if more than one word)).";
exit 1;
View keybase.md

Keybase proof

I hereby claim:

  • I am marcbernstein on github.
  • I am marcbernstein (https://keybase.io/marcbernstein) on keybase.
  • I have a public key ASAD_hdJfxN_NV6kKzJpo7X5Qlf0pdCe2T89DCTCbAcpuwo

To claim this, I am signing this object:

@MarcBernstein
MarcBernstein / .gitignore
Created Apr 15, 2015
This is the .gitignore that Android Studio creates by default for a new project.
View .gitignore
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
View ExifUtil.java
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.os.Build;
You can’t perform that action at this time.