Skip to content

Instantly share code, notes, and snippets.

Avatar

Emmanuel emmanuelstroem

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@emmanuelstroem
emmanuelstroem / setup_wp.sh
Last active Oct 3, 2019
setup_wordpress_ubuntu
View setup_wp.sh
#!/bin/sh
export DEBIAN_FRONTEND="noninteractive"
# command line arguments
if [ $# -gt 0 ]; then
echo "Your command line contains $# arguments"
domain_name="$1"
else
echo "Your command line contains no arguments"
domain_name="emmanuelopio"
@emmanuelstroem
emmanuelstroem / RootChecker.java
Created May 27, 2016 — forked from Fuzion24/RootChecker.java
A few different mechanisms to check for root on an Android device
View RootChecker.java
package com.test.rootchecker;
import java.io.File;
import java.util.List;
import java.util.Map;
import android.content.Context;
import android.content.pm.ApplicationInfo;
public class RootChecker {
@emmanuelstroem
emmanuelstroem / gist:9f38f4ac2be17f7b92dc
Created Jan 29, 2016 — forked from prime31/gist:5675017
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
View gist:9f38f4ac2be17f7b92dc
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array
@emmanuelstroem
emmanuelstroem / Vector2D.lua
Created Jul 30, 2012 — forked from brandontreb/Vector2D.lua
A simple Vector2D class used in Corona SDK games.
View Vector2D.lua
Vector2D = {}
function Vector2D:new(x, y)
local object = { x = x, y = y }
setmetatable(object, { __index = Vector2D })
return object
end
function Vector2D:copy()
return Vector2D:new(self.x, self.y)