Skip to content

Instantly share code, notes, and snippets.

View readme.md

Keybase proof

I hereby claim:

  • I am cemo on github.
  • I am cemo (https://keybase.io/cemo) on keybase.
  • I have a public key whose fingerprint is 34D6 0B1E 2F59 6BA1 2E10 E476 427D 912F 0D3A 06E7

To claim this, I am signing this object:

@cemo
cemo / idea.vmoptions
Created Nov 1, 2016
IntelliJ IDEA vm options
View idea.vmoptions
-server
-Xss256k
-Xms1536m
-Xmx1536m
-Xmn512m
-XX:PermSize=350m
-XX:MaxPermSize=350m
-XX:MetaspaceSize=350m
-XX:MaxMetaspaceSize=350m
-XX:+UseParNewGC
@cemo
cemo / web-servers.md
Created Oct 12, 2016 — forked from willurd/web-servers.md
Big list of http static server one-liners
View web-servers.md

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@cemo
cemo / slackNotify.js
Created Jun 20, 2016 — forked from delemach/slackNotify.js
Parse SNS notification from Elastic Beanstalk and publish to Slack channel
View slackNotify.js
var http = require('https');
var querystring = require('querystring');
// set the post request options
var reqOptions = {
hostname: 'hooks.slack.com',
port: 443,
path: '/services/YOUR/SLACK/HOOK_HERE',
method: 'POST'
};
@cemo
cemo / .bashrc
Created Oct 26, 2015 — forked from vsouza/.bashrc
Golang 1.4.1 setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell or bash.
View .bashrc
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
@cemo
cemo / sniff.txt
Created Oct 22, 2015 — forked from manifestinteractive/sniff.txt
A friendly formatter for curl requests to help with debugging.
View sniff.txt
\n
============= HOST: ==========\n
\n
local_ip: %{local_ip}\n
local_port: %{local_port}\n
remote_ip: %{remote_ip}\n
remote_port: %{remote_port}\n
\n
======= CONNECTION: ==========\n
\n
View Fire in the hole
Docker
- https://github.com/wsargent/docker-cheat-sheet
ECS
- https://www.youtube.com/watch?v=MRoPaHUttoA
View CachedRefreshable.java
public abstract class CachedRefreshable<P, T> extends Refreshable<P, T> {
protected abstract Observable<T> getSourceObservable(P parameters);
/**
* Return the Observable that gets data from a cached source.
*
* @return Observable from cache item, or null if the cache misses.
*/
protected abstract Observable<T> getCachedObservable(P parameters);
@cemo
cemo / SearchViewFormatter.java
Last active Sep 13, 2015 — forked from ademar111190/SearchViewFormatter.java
An easy way to format SearchView's
View SearchViewFormatter.java
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
import android.text.style.ImageSpan;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.SearchView;
import android.widget.TextView;
@cemo
cemo / tinder-api-documentation.md
Last active Aug 29, 2015 — forked from rtt/tinder-api-documentation.md
Tinder API Documentation
View tinder-api-documentation.md

Tinder API documentation

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

Note: this was written in April/May 2014 and the API may have changed since

API Details