To setup a SSH remote workspace for C9 on CentOS do the following on the host:
yum install git
git clone https://github.com/c9/core.git /opt/c9sdk
yum groupinstall "Development Tools"
yum install glibc-static| package main | |
| import ( | |
| "crypto/hmac" | |
| "crypto/sha256" | |
| "fmt" | |
| "io" | |
| ) | |
| func main() { |
| #!/usr/bin/python | |
| import glob | |
| import os | |
| import sys | |
| SRC = sys.argv[1] | |
| # 编译到 linux 64bit | |
| $ GOOS=linux GOARCH=amd64 go build | |
| # 或者可以使用 -o 选项指定生成二进制文件名字 | |
| $ GOOS=linux GOARCH=amd64 go build -o app.linux | |
| # 编译到 linux 32bit | |
| $ GOOS=linux GOARCH=386 go build | |
| # 编译到 windows 64bit |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "net/url" | |
| ) |
| from glob import glob | |
| import os | |
| filelist=glob('MSGS/00/*') | |
| # folder number | |
| for i in range(900): | |
| #os.system("mkdir %03d" %i) | |
| print("mkdir %03d" %i) | |
| #file number in folder |
| #!/usr/bin/perl | |
| $token = "your token"; | |
| $text = "test"; | |
| $cmd = "curl -F channel=#test -F token=\'$token\' -F text=\'$text\' -k https://slack.com/api/chat.postMessage"; | |
| system($cmd); |
| import os | |
| import sys | |
| walk_dir = sys.argv[1] | |
| print('walk_dir = ' + walk_dir) | |
| # If your current working directory may change during script execution, it's recommended to | |
| # immediately convert program arguments to an absolute path. Then the variable root below will | |
| # be an absolute path as well. Example: |
| #!/usr/bin/env python | |
| # -*- mode: python; coding: utf-8-unix -*- | |
| import sys | |
| import os.path | |
| import smtplib | |
| import gzip | |
| import re | |
| from email.utils import make_msgid | |
| from datetime import datetime |