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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -eu | |
| OWNER=${1:?"repo onwer required"} | |
| URL_BASE="https://api.github.com" | |
| REPOS_URL="/users/$OWNER/repos?per_page=100" | |
| PULLS_URL="/repos/$OWNER/%s/pulls" | |
| ISSUES_URL="/repos/$OWNER/%s/issues" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "os" | |
| "strings" | |
| ) | |
| const ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| import "log" | |
| import "os" | |
| import "strconv" | |
| import "syscall" | |
| func main() { | |
| var err error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "syscall" | |
| "time" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .vagrant/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .vagrant/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible | |
| set backspace=indent,eol,start | |
| set cursorline | |
| set completeopt=menuone | |
| set noswapfile | |
| set autochdir | |
| set ignorecase |