Skip to content

Instantly share code, notes, and snippets.

@seafooler
seafooler / install-software-on-ubuntu.sh
Created January 6, 2018 06:57
A shell script to install basic sofawares on a freshly installed ubuntu:14.04
#! /bin/bash
sudo apt-get update
cd /tmp
###########################################
################ install chrome ################
###########################################
#Download from qiniu (https://www.qiniu.com)
@seafooler
seafooler / push-image-to-dockerhub.md
Created January 6, 2018 13:28
Push an image to Dockerhub
@seafooler
seafooler / process-with-specific-port.md
Created January 7, 2018 05:34
Check the process id with specific port

Take port 8080 for example

netstat -ap | grep 8080
@seafooler
seafooler / process-with-specific-port.md
Created January 7, 2018 05:34
Check the process id with specific port

Take port 8080 for example

netstat -ap | grep 8080
@seafooler
seafooler / install-ctags-st3-ubuntu.md
Created January 7, 2018 05:58
Install ctags in Sublime Text3 on Ubuntu:14.04

Install Package 'Ctags' on Sublime Text3

Install ctags

sudo apt-get install ctags
@seafooler
seafooler / install-fabric-tools-ubuntu.sh
Last active January 23, 2018 01:47
Install tools related to Hyperledger fabric on Ubuntu
#! /bin/bash
########################################
############ Install Docker ############
########################################
sudo apt-get remove docker docker-engine docker.io
sudo apt-get update
sudo apt-get install -y\
apt-transport-https \
ca-certificates \
@seafooler
seafooler / ssh-remote-port-forwarding.md
Last active January 23, 2018 13:49
SSH remote port forwarding

Objective

A host(target-host) in the lab is behind the NAT. A host(public-host) in the aliyun has a public IP (120.79.47.78) I want to connect to the target-host from somewhere else (e.g., my dormitory)

Steps

Refer to ssh远程端口转发 for more details

  1. At public-host
# Modify the Line "#GatewayPorts no" to "GatewayPorts yes"
@seafooler
seafooler / fix-ltdl.md
Created January 24, 2018 15:00
Fix bugs in compiling the Hyperledger Fabric

Problem

# github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11
vendor/github.com/miekg/pkcs11/pkcs11.go:29:18: fatal error: ltdl.h: No such file or directory
#include <ltdl.h>
                 ^
compilation terminated.
make: *** [build/bin/orderer] Error 2
@seafooler
seafooler / install-solc-ubuntu.md
Created February 22, 2018 14:03
Install solc on Ubuntu
sudo add-apt-repository ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install solc
@seafooler
seafooler / install-geth-ubuntu.md
Created February 22, 2018 14:05
Install geth on Ubuntu
sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum