Skip to content

Instantly share code, notes, and snippets.

View cslasher's full-sized avatar
🧉
Balance 粋

Edwin L cslasher

🧉
Balance 粋
  • Taipei
View GitHub Profile
@cslasher
cslasher / README-Template.md
Created November 26, 2017 02:18 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@cslasher
cslasher / .htaccess
Last active October 1, 2017 10:13
AWS Wordpress Notes
Options +FollowSymlinks
RewriteEngine on
rewriterule ^wp-content/uploads/(.*)$ http://[cloudfrontURL]/$1 [r=301,nc]
# BEGIN WordPress
# END WordPress
@cslasher
cslasher / Tools
Last active June 13, 2017 10:41
Dev stacks
API
Postman
Terminal
iterm
itermocil
zsh
prezto or oh-my-zsh
DB
Robomongo
<join>
<multicast enabled="false">
<multicast-group>224.2.2.3</multicast-group>
<multicast-port>54327</multicast-port>
</multicast>
<tcp-ip enabled="true">
<member>10.200.12.66:5701</member>
<member>10.200.12.67:5701</member>
<member>10.200.12.68:5701</member>
<member>10.200.12.69:5701</member>
To have launchd start elasticsearch at login:
ln -sfv /usr/local/opt/elasticsearch/*.plist ~/Library/LaunchAgents
Then to load elasticsearch now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
Or, if you don't want/need launchctl, you can just run:
elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml
Logstash 1.4 emits an unhelpful error if you try to start it without config.
Please read the getting started guide located at:
http://logstash.net/docs/latest/tutorials/getting-started-with-logstash
@cslasher
cslasher / 0_reuse_code.js
Last active August 29, 2015 14:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console