Skip to content

Instantly share code, notes, and snippets.

View yomybaby's full-sized avatar

Jong Eun Lee yomybaby

View GitHub Profile
@yomybaby
yomybaby / .eslintrc
Created November 17, 2018 13:25 — forked from radiovisual/.eslintrc
React Native AirBnB ESLint Config
{
"parser": "babel-eslint",
"plugins": [
"react",
"react-native"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
@yomybaby
yomybaby / .eslintrc
Created October 27, 2018 00:30 — forked from chourobin/.eslintrc
React Native General Eslint File
{
"parser": "babel-eslint",
"env": {
"browser": true
},
"plugins": [
"babel",
"react",
"react-native"
],
@yomybaby
yomybaby / 00_nginx.config
Created July 5, 2018 05:16 — forked from 480/00_nginx.config
자주 쓰는 ebextensions 설정
# 장시간 http 연결로 인한 끊어짐을 방지키 위해 long idle time out 허용 하기
# nginx proxy 에 셋팅 + ELB 의 idle timeout 수정
#
# https://medium.com/tomincode/extending-gateway-timeouts-with-node-js-elastic-beanstalk-applications-5cb256f08f4b
# https://cloudavail.com/2015/10/18/allowing-long-idle-timeouts-when-using-aws-elasticbeanstalk-and-docker/
# https://github.com/metabase/metabase/tree/b9533d43881090a72d97562fb112a6133cd94127/bin/aws-eb-docker
files:
"/etc/nginx/conf.d/proxy.conf":
mode: "000644"
@yomybaby
yomybaby / mongodb-s3-backup.sh
Last active July 16, 2019 15:15 — forked from eladnava/mongodb-s3-backup.sh
Automatically backup a MongoDB database to S3 using mongodump, tar, and awscli (Ubuntu 14.04 LTS) (using bitnami image)
#!/bin/sh
# Make sure to:
# 1) Name this file `backup.sh` and place it in /home/ubuntu
# 2) Run sudo apt-get install awscli to install the AWSCLI
# 3) Run aws configure (enter s3-authorized IAM user and specify region)
# 4) Fill in DB host + name
# 5) Create S3 bucket for the backups and fill it in below (set a lifecycle rule to expire files older than X days in the bucket)
# 6) Run chmod +x backup.sh
# 7) Test it out via ./backup.sh
@yomybaby
yomybaby / README.md
Created May 3, 2016 10:05 — forked from nuno/README.md
Titanium TSS for Transparent NavigationBar / Shadow on iOS

Creating a transparent NavigationBar using Titanium Style Sheets

Appcelerator Titanium offers many ways to style the navigation bar for iOS apps, from changing out the title view all together, or just using simple colors. However, one of the most frequent requests I hear is how to make a truly transparent NavigationBar. This tutorial will cover that.

Getting started

Lets start with a pretty simple window style in the app.tss. This will ensure that the window style is applied globally.

Note: This can be used in a specific controller *.tss file if you only want this effect on a particular window.

@yomybaby
yomybaby / post-merge
Last active August 29, 2015 14:07 — forked from hcurotta/post-merge
#!/bin/bash
branch_name=$(git symbolic-ref --short HEAD)
if [ "$branch_name" == 'dev' ] || [ "$branch_name" == 'staging' ]
then
git commit --allow-empty -m 'empty commit to trigger deployment'
fi
// Use to clear all cookies from webViews
// - Very useful when logging in users via third party webView login forms.
// Kosso
// October 2012
/*
Usage:
var cookiejar = require('com.hashpan.cookiedroid');
cookiejar.clearCookies();
# 모르는것
# archetype, post_serializer
# incase net/http is not required
require "net/http"
require "uri"
require "json"
# ...?
require_dependency 'rate_limiter'
#!/bin/bash
#
# Build and iPhone Simulator Helper Script
# Shazron Abdullah 2011
#
# WARN: - if your .xcodeproj name is not the same as your .app name,
# this won't work without modifications
# - you must run this script in where your .xcodeproj file is
PROJECTNAME=$1
@yomybaby
yomybaby / LICENSE.md
Last active December 16, 2015 20:39 — forked from brandonb927/LICENSE.md
       DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
               Version 2, December 2004

Copyright (C) 2012 Brandon B. brandon@brandonbrown.io

Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE