Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@cmeon
cmeon / README
Last active February 24, 2017 02:09
Temporary solution for maven_aar dependency issue.
When adding aar artifacts with resource dependencies, aar_import does not get the other
dependencies automatically from the POM file in the repository.
@cmeon
cmeon / env_replace.go
Last active September 26, 2016 11:15
Replace an environment variable in config ( derived from mozilla/heka )
package main
import (
"bufio"
"bytes"
"errors"
"flag"
"io"
"io/ioutil"
"log"
@cmeon
cmeon / jabber-hipchat.el
Created June 15, 2016 03:07 — forked from egh/jabber-hipchat.el
jabber.el hipchat setup
(require 's)
(require 'request)
(require 'seq)
(require 'jabber)
(defvar hipchat--user-info-for-completion nil)
(defcustom hipchat-nickname "Full name" "Hipchat real name (see see https://hipchat.com/account/xmpp)."
:type '(string)
@cmeon
cmeon / pre-push.sh
Created January 21, 2016 09:21 — forked from pixelhandler/pre-push.sh
Git pre-push hook to prevent force pushing master branch
#!/bin/sh
# Called by "git push" after it has checked the remote status,
# but before anything has been pushed.
#
# If this script exits with a non-zero status nothing will be pushed.
#
# Steps to install, from the root directory of your repo...
# 1. Copy the file into your repo at `.git/hooks/pre-push`
# 2. Set executable permissions, run `chmod +x .git/hooks/pre-push`
@cmeon
cmeon / install-arangodb.sh
Created August 5, 2015 12:08
Install arangodb in Ubuntu and making database setup easy. Especially for Amazon AWS EC2
#!/bin/sh
RELEASE_VERSION=$(lsb_release -r | sed -e 's/Release:[\t]*//')
wget http://www.arangodb.org/repositories/arangodb/xUbuntu_${RELEASE_VERSION}/Release.key
sudo apt-key add - < Release.key
echo "deb http://www.arangodb.org/repositories/arangodb/xUbuntu_${RELEASE_VERSION}/ /" >> $HOME/arangodb.list
sudo mv ~/arangodb.list /etc/apt/sources.list.d/
@cmeon
cmeon / groupfiles.sh
Created August 5, 2015 12:03
This file groups every file according to its filename
#!/bin/bash
# This file groups every file according to its filename
# Inspiration came from wanting to group different classes
# and their header files in separate folders
# Get filenames
echo "Getting filenames"
FILE_LIST=$(basename -as .h *)
class TwitterWidgetIdExtractor
WIDGET_SETTING_URL = "https://twitter.com/settings/widgets/new/user?screen_name="
SIGNIN_URL = "https://twitter.com/login"
attr_accessor :screen_name, :twitter_username, :twitter_password
def initialize(screen_name, twitter_username, twitter_password)
@screen_name = screen_name
@twitter_username = twitter_username
@twitter_password = twitter_password