Skip to content

Instantly share code, notes, and snippets.

View doxaras's full-sized avatar
💭
Busy building things

John Doxaras doxaras

💭
Busy building things
View GitHub Profile
@doxaras
doxaras / install-redis.sh
Created October 29, 2021 13:42 — forked from jpickwell/install-redis.sh
Installing Redis 5.0.0 on Amazon Linux
#!/bin/bash
###############################################
# To use:
# chmod +x install-redis.sh
# ./install-redis.sh
###############################################
version=5.0.0
# Install ARM Homebrew
mkdir /opt/homebrew
sudo chown -R $(whoami) /opt/homebrew
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C /opt/homebrew
# Install x86 Homebrew
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# ZSH aliases and path variables
echo "alias brew=\"/opt/homebrew/bin/brew\"" >> ~/.zshrc
[MASTER]
disable=
C0114, # missing-module-docstring

Keybase proof

I hereby claim:

  • I am doxaras on github.
  • I am doxaras (https://keybase.io/doxaras) on keybase.
  • I have a public key ASAVqXvQbwr6MDXwWCuqk-PXXcuUYYopX2I4f_FNX51UcAo

To claim this, I am signing this object:

@doxaras
doxaras / objective five
Created June 26, 2012 09:28
Windows SDK
curl https://www.google.com/accounts/ClientLogin -d
Email=your_account -d "Passwd=your_passwd" -d accountType=GOOGLE
-d source=Google-cURL-Example -d service=ac2dm
@doxaras
doxaras / objective 18
Created June 25, 2012 08:32
Android SDK Extended Integration Guide
//Logs the user current coarse location, only if the location is in 10km distance from the previous recorded location.
static void logLocation(Context context, CallbackReceiver<java.lang.Void> r)
@doxaras
doxaras / objective four
Created June 25, 2012 08:25
Android SDK Quick Integration Guide
WarpRegistrar.subscribeAuto(this);
@doxaras
doxaras / objective one
Created June 25, 2012 08:21
Create a Google C2DM active account
curl https://www.google.com/accounts/ClientLogin -d
Email=your_account -d "Passwd=your_passwd" -d accountType=GOOGLE
-d source=Google-cURL-Example -d service=ac2dm
</pre>
<p>and the response should look like that</p>
<pre>
SID={DQAA.....OotsjGFE}
LSID={DQAAA.....b6_7AKRUi7}
Auth={DQAAAM.......AAAxCX4}
@doxaras
doxaras / objective five
Created June 25, 2012 08:07
IOS sdk Extended Intregration
/* ENABLED LOCATION MANAGER */
#define MANAGER_LOCATION_CLASS @"NBLocationManager"
/* DISABLED LOCATION MANAGER*/
#define MANAGER_LOCATION_CLASS @""
@doxaras
doxaras / add_to_project
Created June 25, 2012 07:48
ios_sdk_quick
///////////////////////////////////////////////////////////////////////
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[NBAppService launch:launchOptions];
/* YOUR CODE HERE */
}