Skip to content

Instantly share code, notes, and snippets.

View wnoguchi's full-sized avatar
😀

Wataru Noguchi wnoguchi

😀
View GitHub Profile
@wnoguchi
wnoguchi / chatwork-api.cs
Created January 29, 2014 14:37
ChatWork APIを叩くサンプル。
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Windows.Forms;
namespace ChatWorkMessenger
{
public partial class Form1 : Form
{
@wnoguchi
wnoguchi / gist:8846251
Created February 6, 2014 15:22
NTPサーバーの設定とか
ntp.nict.jp
NTP/推奨公開サーバ - wiki@nothing
http://wiki.nothing.sh/page/NTP/%BF%E4%BE%A9%B8%F8%B3%AB%A5%B5%A1%BC%A5%D0
@wnoguchi
wnoguchi / main.m
Created March 16, 2014 05:04
Objective-C sample.
#import <Foundation/Foundation.h>
#import "MyTestClass.h"
int main(int argc, const char * argv[])
{
@autoreleasepool {
// insert code here...
NSLog(@"Hello, World!");
@wnoguchi
wnoguchi / .pryrc
Created April 2, 2014 11:56
pryの設定ファイルとか
Pry.commands.alias_command 'c', 'continue'
Pry.commands.alias_command 's', 'step'
Pry.commands.alias_command 'n', 'next'
Pry.commands.alias_command 'f', 'finish'
Pry.commands.alias_command 'q', 'quit'
Pry.commands.alias_command 'b', 'break'
Pry.commands.alias_command 'r', 'reload-method'
@wnoguchi
wnoguchi / config
Created July 8, 2014 13:51
SSH config常套句。
ServerAliveInterval 15
Host *
ServerAliveInterval 120
@wnoguchi
wnoguchi / Vagrantfile-2nodes-provisioned.rb
Created July 21, 2014 10:20
第60回: SerfとConsulでシステム運用を楽しくしよう!http://connpass.com/event/7322/ : 今回の実験使用したVagrantfileの一覧
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "chef/centos-6.5"
@wnoguchi
wnoguchi / .vimrc
Created August 3, 2014 05:13
vimrc generic.
set title
syntax on
set tabstop=2
set smartindent
set ignorecase
set smartcase
set wrapscan
set autoindent
set incsearch
@wnoguchi
wnoguchi / README.md
Created August 4, 2014 14:28
Insecure Development SSH configurations !
@wnoguchi
wnoguchi / README.md
Last active August 29, 2015 14:05
SSH key generation Tips.

SSH key generation Tips

OpenSSH

Generate SSH key pair

ssh-keygen -t rsa -b 2048 secure-private-key