Skip to content

Instantly share code, notes, and snippets.

View NPoi's full-sized avatar

Daisuke Nakahara NPoi

View GitHub Profile
@NPoi
NPoi / restart-shell.sh
Created March 16, 2014 17:33
シェル再起動
exec $SHELL -l
@NPoi
NPoi / sample.css
Created April 9, 2014 16:39
段組関係
selector {
overflow: hidden;
}
Defaults:system_user !requiretty
@NPoi
NPoi / ansible_sshdconfig.sh
Created October 29, 2014 00:40
Ansibleでsshconfigを利用する
export ANSIBLE_SSH_ARGS=' -F sshconfig'
ansible-playbook -i hosts playbook.yml
rsync --rsync-path="sudo rsync" -a -e "ssh -i /path/to/identity_file" file ec2-user@ip_addr:/path/to/
@NPoi
NPoi / gist:85c0cd88ac0d5c620512
Created January 19, 2015 04:23
Nginx でうまくプロキシ出来ないときの対処法の一つ
# 違うサーバなのに、Permission deniedって怒られる場合の対処
/usr/sbin/setsebool httpd_can_network_connect true
import boto3
session = boto3.session.Session(profile_name=<PROFILE_NAME>)
s3 = session.resource("s3")
@NPoi
NPoi / niigata_community.md
Last active April 26, 2017 00:16
新潟県内のコミュニティについて

新潟県内に関係がありそうなITコミュニティ・ITイベント団体

随時更新中です。掲載希望・掲載拒否は @NPoi まで

No 略称 名称(URL) 分類 活動場所 活動状況
1 NOSS 新潟オープンソース協会 コミュニティ         オープンソースカンファレンスなどを主催
2 Kintone Cafe 新潟支部 コミュニティ
3 NDS 長岡IT開発者勉強会     コミュニティ 長岡市   四半期ごと開催中
@NPoi
NPoi / git-rclean
Last active February 18, 2016 02:59
リモートでマージされてるリモートブランチとローカルブランチを削除するgitサブコマンドのつもり
#!/bin/sh
BRANCH=${1:-"development"}
git checkout ${BRANCH}
git pull
git remote prune origin
DEL_BRANCH=`git branch --merged | grep -v ${BRANCH} | grep -v \'*\'`
if [ -n "$DEL_BRANCH" ]
then
git branch -d $DEL_BRANCH
@NPoi
NPoi / mvim
Created May 2, 2017 08:28
MacVim-kaoriyaの MacVim.app/Contents/bin/mvim を修正したもの
#!/bin/sh
#
# This shell script passes all its arguments to the binary inside the
# MacVim.app application bundle. If you make links to this script as view,
# gvim, etc., then it will peek at the name used to call it and set options
# appropriately.
#
# Based on a script by Wout Mertens and suggestions from Laurent Bihanic. This
# version is the fault of Benji Fisher, 16 May 2005 (with modifications by Nico
# Weber and Bjorn Winckler, Aug 13 2007).