**注意:**工作坊要求 Unix-like 的操作系统,如 Mac/Linux 或者通过虚拟机方式运行的 Linux。
- 安装 geth
- 安装 testrpc 和 truffle
**注意:**工作坊要求 Unix-like 的操作系统,如 Mac/Linux 或者通过虚拟机方式运行的 Linux。
| <?php | |
| # Fill our vars and run on cli | |
| # $ php -f db-connect-test.php | |
| $dbname = 'name'; | |
| $dbuser = 'user'; | |
| $dbpass = 'pass'; | |
| $dbhost = 'host'; | |
| $link = mysqli_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'"); |
| git archive --format zip --output /full/path/to/zipfile.zip master |
| #coding: utf-8 | |
| from cStringIO import StringIO | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| from email.header import Header | |
| from email import Charset | |
| from email.generator import Generator | |
| import smtplib | |
| # Example address data |
| /opt/nginx/logs/*.log { | |
| daily | |
| missingok | |
| rotate 52 | |
| compress | |
| delaycompress | |
| notifempty | |
| create 640 root adm | |
| sharedscripts | |
| postrotate |
| source "https://rubygems.org" | |
| gem 'eventmachine' | |
| #gem 'rubysl-stringio' | |
| gem 'sinatra' | |
| gem 'yajl-ruby', require: 'yajl' | |
| gem 'thin' | |
| gem 'em-websocket', :git=>'https://github.com/igrigorik/em-websocket.git' |
| gang@debian:~$ sudo apt-get install netcat-openbsd | |
| gang@debian:~$ cat /usr/local/bin/git-proxy-wrapper | |
| #!/bin/bash | |
| nc -xlocalhost:1080 -X5 $* | |
| gang@debian:~$ export GIT_PROXY_COMMAND=/usr/local/bin/git-proxy-wrapper |
| @echo off | |
| REM You may need to add `cd %WORKSPACE%` in the jenkins project prior to | |
| REM calling this script. I have it in mine and didn't test without. | |
| REM Correct paths to respective applications as-needed | |
| SET PATH=%PATH%;C:\Program Files (x86)\nodejs;C:\Program Files (x86)\Git\bin;%AppData%\npm;C:\Ruby200-x64\bin | |
| echo Installing or updating bower... |