View clone_files.go
package main
import (
"fmt"
"io/ioutil"
"os"
"syscall"
"time"
)
View playbook.yml
---
- hosts: all
connection: local
gather_facts: no
vars:
ruby_an_api_base_path: /path/to/base/dir
ruby_an_api_version: 2.X.Y
sudo: no
tasks:
- name: confirm create a symlink
View netcat.pl
use strict;
use warnings;
use Socket;
use Getopt::Long;
GetOptions(\my %opts, qw/x/);
if (scalar(@ARGV) < 2) {
print "usage: $0 [-x] HOST PORT\n";
View README.md

alpineでparamikoをインストール

docker run --rm -it alpine /bin/sh
apk update
apk add musl-dev openssl-dev libffi-dev
apk add python python-dev py-pin
apk add gcc
pip install paramiko
View .vimrc
set nocompatible
set backspace=indent,eol,start
set cursorline
set completeopt=menuone
set noswapfile
set autochdir
set ignorecase
View utils.py
# -*- coding: utf-8 -*-
from ast import literal_eval
def parse_bool(value):
"""test
>>> parse_bool("True")
True
>>> parse_bool("False")
False
View main.go
package main
import (
"fmt"
"net"
"os"
"time"
)
func main() {
View fabfile.py
# -*- coding: utf-8 -*-
from fabric.api import task
from fabric.api import env
# コマンドラインから`stage.production`ではなく`production`と指定できるように関数をインポートする
from stage import production, integration, staging, testing, development
import myapp # アプリケーションごとにモジュールをわける
# import myapp2