**注意:**工作坊要求 Unix-like 的操作系统,如 Mac/Linux 或者通过虚拟机方式运行的 Linux。
- 安装 geth
- 安装 testrpc 和 truffle
**注意:**工作坊要求 Unix-like 的操作系统,如 Mac/Linux 或者通过虚拟机方式运行的 Linux。
| #/bin/bash | |
| mycp="/bin/cp -vrf" | |
| file_types=key,crt,kubeconfig | |
| for file_type in $(echo $file_types | tr "," "\n") | |
| do | |
| $mycp /root/.oc/profiles/sunwayxiyi/config/master/*.$file_type /root/.oc/profiles/landaojia/config/master/ | |
| $mycp /root/.oc/profiles/sunwayxiyi/config/node-10.27.232.232/*.$file_type /root/.oc/profiles/landaojia/config/node-10.27.232.232/ | |
| done |
| <?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'"); |
| global searchTerm | |
| property emailList : {} | |
| set searchTerm to "[email protected]" | |
| tell application "Mail" | |
| set theInbox to inbox | |
| set firstMessage to 1 |
| global pScriptname | |
| set pScriptname to "main.scpt" | |
| -- display informational dialog about this script | |
| my DisplayAbout() | |
| log_event("Starting DeleteJunkMailScript") | |
| -- get a list of all Mail accounts with automatic checking currently enabled |
| 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 |