Skip to content

Instantly share code, notes, and snippets.

View rayshan's full-sized avatar
🕵️‍♀️
Inspecting stocks...

Ray Shan rayshan

🕵️‍♀️
Inspecting stocks...
View GitHub Profile
@rayshan
rayshan / default.conf
Created August 24, 2016 21:22
Default nginx/conf.d/default.conf
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
@rayshan
rayshan / nginx.conf
Last active May 22, 2021 11:21
Default nginx/nginx.conf
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
@rayshan
rayshan / montage-info.md
Last active August 29, 2015 14:20
Montage .info (draft)

Montage .info

  • TOC {:toc}
  • Live side-by-side to component, not nested inside .reel b/c not everything has .reel
  • Tests should eventually be moved to .info so they can be run by-component; should include both unit & E2E tests
  • Rename .meta to blueprint.mjson, then moving into .info dir, which contains metadata of component, only needed for Studio
  • Eventually would contain other .mjson files, which would contain serialization that serve other purposes other than blueprint, e.g. paths for flow.reel or animation specs, can be used in other serialization
@rayshan
rayshan / component-build-in-build-out.md
Last active August 29, 2015 14:17
Montage Component Build-in / Build-out Animation

Montage Component Build-in / Build-out Animation

  • TOC {:toc}

For Stand-alone Components

Using CSS Transition

@rayshan
rayshan / montage-templates.md
Last active August 29, 2015 14:15
Montage Templates

layout: docs title: MontageJS Components

this-page: montagejs-templates ---o

MontageJS Templates

@rayshan
rayshan / STYLE.md
Last active June 12, 2018 21:31
Montage Framework Style Guide (draft)

Montage Framework Style Guide (draft)

This style guide includes recommended practices for consistency. If any of the rules conflicts with readability in a particular case, ignore the rules and chose readability.

Table of Contents

@rayshan
rayshan / .gitconfig
Created August 25, 2014 17:01
useful global .gitconfig options
# set with git config --global tag.sort version:refname
# writes to:
# C:\Users\MyLogin
# ~/.gitconfig
# git config --global tag.sort version:refname
# sorts git tag output smartly since git 2.0

Keybase proof

I hereby claim:

  • I am rayshan on github.
  • I am rayshan (https://keybase.io/rayshan) on keybase.
  • I have a public key whose fingerprint is C28E 141A ABDE 135E A97A C6F3 0ABD B469 1C24 9574

To claim this, I am signing this object:

@rayshan
rayshan / travis-ci-script.sh
Last active December 22, 2015 09:25 — forked from kzap/gist:5819745
mkdir ~/travis-ci-key && cd ~/travis-ci-key
# generate your private key
ssh-keygen -t rsa -f travis-ci-key
# put the public key on the server you will be connecting to
cat travis-ci-key.pub | ssh [email protected] "cat >> ~/.ssh/authorized_keys"
# generate the password/secret you will store encrypted in the .travis.yml and use to encrypt your private key
cat /dev/urandom | head -c 10000 | openssl sha1 > ./secret
@rayshan
rayshan / 1.readme.md
Last active January 4, 2016 19:49
Number to / from roman numeral converter

Created by Matthew, Daniel, Corey and Ray during JS Study Group: Algorithms.

Converts numbers to and from roman numerals, up to 3999.

There are more mathmetical solutions to the problem but this works.