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:
| 'use strict'; | |
| const aws = require('aws-sdk'); | |
| const s3 = new aws.S3({ apiVersion: '2006-03-01' }); | |
| exports.handler = (event, context, callback) => { | |
| const key = decodeURIComponent(event.Records[0].s3.object.key); | |
| const meta = key.split('/'); |
I hereby claim:
To claim this, I am signing this object:
| -server | |
| -Xss256k | |
| -Xms1536m | |
| -Xmx1536m | |
| -Xmn512m | |
| -XX:PermSize=350m | |
| -XX:MaxPermSize=350m | |
| -XX:MetaspaceSize=350m | |
| -XX:MaxMetaspaceSize=350m | |
| -XX:+UseParNewGC |
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.
$ python -m SimpleHTTPServer 8000| 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' | |
| }; |
| # 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 |
| \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 |
| Docker | |
| - https://github.com/wsargent/docker-cheat-sheet | |
| ECS | |
| - https://www.youtube.com/watch?v=MRoPaHUttoA |
| 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); |
| 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; |