Skip to content

Instantly share code, notes, and snippets.

fish touching

青鸟 blue-bird1

fish touching
View GitHub Profile
blue-bird1 / optparse
Last active Oct 9, 2018
optparse #python
View optparse
from optparse import OptionParser, OptionGroup, OptionError
from setting import IS_WIN
except ImportError as e:
errmsg = e.message.split('named')[0]
print errmsg
blue-bird1 / char draw
Last active Oct 9, 2018
char draw #python
View char draw
#! /usr/bin/env python
# coding:utf-8
# Author qingniao
import pyfiglet as pyfiglet
def banner(char):
"""char draw
:param char:
:return:char draw
blue-bird1 / golang http set header
Last active Oct 10, 2018
go http set header #golang
View golang http set header
client := &http.Client{}
req, err := http.NewRequest("POST", "",string.NewReader(postData))
req.Header.Add("User-Agent", "myClient")
resp, err := client.Do(req)
defer resp.Body.Close()
blue-bird1 /
Last active Oct 9, 2018 — forked from mamiu/
Install fish shell in Debian 8 (commands from the original fish shell website). #debian
echo 'deb /' >> /etc/apt/sources.list.d/fish.list
apt-get update
wget -qO - | apt-key add -
apt-get update
apt-get install -y fish
blue-bird1 /
Last active Oct 9, 2018 — forked from jacoelho/
Install golang debian/ubuntu #debian
export GOLANG_VERSION=1.10.2
export GOLANG_DOWNLOAD_URL=$GOLANG_VERSION.linux-amd64.tar.gz
export GOLANG_DOWNLOAD_SHA256=4b677d698c65370afa33757b6954ade60347aaca310ea92a63ed717d7cb0c2ff
apt-get update -qq
apt-get install -y --no-install-recommends \
g++ \
blue-bird1 /
Last active Oct 10, 2018
kubernetes install #debian
go get -d
cd $GOPATH/src/
apt-get install rsync
View 来源
#!/usr/bin/env bash
export PATH
# System Required: CentOS 6,7, Debian, Ubuntu #
# Description: One click Install ShadowsocksR Server #
# Author: Teddysun <> #
# Thanks: @breakwa11 <> #
# Intro: #
blue-bird1 /
Last active Oct 10, 2018
ssh key setup #debian
cd ~/.ssh
cat >> authorized_keys
chmod 600 authorized_keys
chmod 700 ~/.ssh
service sshd restart
blue-bird1 /
Last active Oct 9, 2018 — forked from bmaupin/
Install apktool in Linux #debian
# Get latest version from
export apktool_version=2.3.1
sudo -E sh -c 'wget$apktool_version.jar -O /usr/local/bin/apktool.jar'
sudo chmod +r /usr/local/bin/apktool.jar
sudo sh -c 'wget -O /usr/local/bin/apktool'
sudo chmod +x /usr/local/bin/apktool
# To use:
# apktool d TelephonyProvider.apk -o TelephonyProvider
blue-bird1 /
Last active Oct 9, 2018 — forked from yamishi13/
Vsftpd Installer #debian
#actualiza repos e instala vsftpd
sudo apt-get update
sudo apt-get install vsftpd -y
#remplaza opcioes para activar/desactivar en el archivo de configuracion
sudo sed -i -e 's/anonymous_enable=YES/anonymous_enable=NO/g' /etc/vsftpd.conf
sudo sed -i -e 's/#local_enable=YES/local_enable=YES/g' /etc/vsftpd.conf
sudo sed -i -e 's/#write_enable=YES/write_enable=YES/g' /etc/vsftpd.conf