Skip to content

Instantly share code, notes, and snippets.

View taisyo7333's full-sized avatar

Daisuke Inoue taisyo7333

View GitHub Profile
@uasi
uasi / git-svn.markdown
Last active May 27, 2024 04:48
git-svn の使い方メモ

git-svn の使い方メモ

git-svn の使い方をメモする。他によいプラクティスがあれば指摘していただけるとありがたい。

用語

SVN のブランチと git のブランチが混在しているため、ここではブランチという語を以下のように区別する。

  • ブランチ、 SVN ブランチ:$SVN_REPO/branches 以下にあるディレクトリ
  • ローカルブランチ:git のローカルブランチ
  • リモートブランチ:git のリモートブランチ
@ianblenke
ianblenke / .ebextensions_00_tune_ec2.config_.yaml
Created July 23, 2015 19:12
Tuning EC2 with an ElasticBeanstalk ebextension
packages:
yum:
wget: []
curl: []
commands:
00_remove_99_swap.conf.bak:
command: rm -f /etc/sysctl.d/99_swap.conf.bak
test: test -f /etc/sysctl.d/99_swap.conf.bak
ignoreErrors: true
00_remove_99_filesystem.conf.bak:
@reiz
reiz / Seamless web deployment with 1 loadbalancer and 3 application servers
Created August 13, 2015 08:16
Ansible Playbook for seamless deployment with Docker.
---
- hosts: app_server_1
user: ubuntu
sudo: true
roles:
- docker_rails_app_build
- hosts: app_loadbalancer
user: ubuntu
@thejmazz
thejmazz / .babelrc
Created February 16, 2016 18:17
async/await with webpack+babel
{
"presets": ["es2015"],
"plugins": ["transform-async-to-generator"]
}
@glogiotatidis
glogiotatidis / remove-gpg-user.sh
Created May 24, 2016 11:50
Git-crypt remove user.
#!/bin/bash
#
# Script to remove GPG key from git-crypt
#
# It will re-initialize git-crypt for the repository and re-add all keys except
# the one requested for removal.
#
# Note: You still need to change all your secrets to fully protect yourself.
# Removing a user will prevent them from reading future changes but they will
# still have a copy of the data up to the point of their removal.
@gre
gre / README.md
Last active August 22, 2016 15:51

This is a PoC that will be later a PR to react-native-view-snapshot to implement the feature for Android.

We still need to wait React Native to have the addUIBlock feature provided by this PR.

Also, I'll wait react-native-view-snapshot to implement the same API as the current RN takeSnapshot on iOS allowing the options.

Usage

import {NativeModules, findNodeHandle} from "react-native";
@taisyo7333
taisyo7333 / connect-to-postgres.md
Last active March 17, 2017 07:14
AWS ElasticBeansTalk Docker : リモートログインしてPostgresql に接続する手順

Postgresqlに接続するまでの手順

  1. log in docker container in ec2-user
  2. apt-get update
  3. apt-get install -y postgresql
  4. apt-get install -y dnsutils
  • this package is for nslookup
  1. nslookup xxxx.yyyyyy.us-west-2.rds.amazonaws.com
  2. psql -h <private-ip-address> -U <user-name> -d <database-name>
@mumoshu
mumoshu / helmify-kustomize
Last active August 30, 2024 05:32
Run `helmify-kustomize build $chart $env` in order to generate a local helm chart at `$chart/`, from kustomize overlay at `${chart}-kustomize/overlays/$env`
#!/usr/bin/env bash
cmd=$1
chart=$2
env=$3
dir=${chart}-kustomize
chart=${chart/.\//}
build() {