Skip to content

Instantly share code, notes, and snippets.

View wnoguchi's full-sized avatar
😀

Wataru Noguchi wnoguchi

😀
View GitHub Profile
@wnoguchi
wnoguchi / con.sh
Last active June 26, 2019 23:11
serial console screen wrapper script.
#!/bin/bash
session_name=$1
case $1 in
"SW1")
devname=/dev/tty.usbserial-AL00LMJ1
;;
"SW2")
devname=/dev/tty.usbserial-A504CVAJ
;;
VPC1
ip 192.168.0.1 255.255.255.0 192.168.0.254
VPC2
ip 10.1.1.1 255.255.255.0 10.1.1.254
conf t
router ospf 1
@wnoguchi
wnoguchi / junkfile.go
Created March 17, 2018 14:42
Open junkfile golang windows version.
package main
import (
"fmt"
"time"
"bufio"
"io/ioutil"
"os"
"os/exec"
"strings"
@wnoguchi
wnoguchi / capistrano.md
Created December 18, 2017 00:12 — forked from makinuk/capistrano.md
Capistrano Configuration with Gitlab

Capistrano Configuration

Configure Server

  • configure deploy user
groupadd deployers
adduser deploy
usermod -a -G deployers deploy
  • to give the deployers group the permissions, run the following and edit the /etc/sudoers file: visudo
@wnoguchi
wnoguchi / mattermost-gitlab.patch
Created November 17, 2017 02:08
Mattermost Installation with Omnibus GitLab
--- /etc/gitlab/gitlab.rb.ssl 2017-11-17 01:32:09.200968784 +0000
+++ /etc/gitlab/gitlab.rb 2017-11-17 01:52:59.928804825 +0000
@@ -1068,7 +1068,7 @@
##! Docs: https://docs.gitlab.com/omnibus/gitlab-mattermost
################################################################################
-#mattermost_external_url 'https://mattermost.demo.pg1x.com'
+mattermost_external_url 'https://mattermost.demo.pg1x.com'
#mattermost['enable'] = false
@wnoguchi
wnoguchi / tenkaichi-git.md
Created October 1, 2017 14:25 — forked from teppeis/tenkaichi-git.md
天下一gitconfig大会

天下一gitconfig大会(サイボウズ社内git勉強会@2012/11/20)の@teppeisの資料です。

ぎっとぎとにしてやんよ

DojoCat

  • gistでmarkdown書いたらbookmarkletでプレゼンになるよ。
@wnoguchi
wnoguchi / error.md
Created July 9, 2017 05:40
virtual box error on ubuntu1604
wataru@uni-wn-nb-0002:~/vagrant/lpic/lpic2/centos6$ sudo dpkg-reconfigure virtualbox-5.1
[sudo] wataru のパスワード: 
addgroup: グループ `vboxusers' はシステムグループとしてすでに存在しています。終了します。
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.
@wnoguchi
wnoguchi / gitlab-omnibus-9.3-install.md
Created June 23, 2017 10:46
GitLab 9.3 Omnibus on Ubuntu Server Installation Memo
@wnoguchi
wnoguchi / INSTALL.md
Last active January 4, 2017 14:02
PCPT(Pearson IT Certification Practice Test) Software Installation register phase fails over 2016/12/25

PCPT(Pearson IT Certification Practice Test) Software Installation register phase fails over 2016/12/25

You can download PCPT Software following URL:

http://www.pearsonitcertification.com/content/downloads/pcpt/engine.zip

But Version 1.0.0.26 2016/04/27 Could not register software because of register endpoint suddenly not support TLS 1.0 Client Hello negotiation. But above url still distributed 1.0.0.26 version.