- 实词:名词、动词、形容词、状态词、区别词、数词、量词、代词
- 虚词:副词、介词、连词、助词、拟声词、叹词。
n 名词
nr 人名
| #!/usr/bin/bash | |
| which ansible >/dev/null 2>&1 | |
| if [ $? -ne 0 ]; | |
| then | |
| echo "Installing Ansible..." | |
| sleep 5 | |
| pushd . | |
| cd ~ | |
| pacman -S libyaml-devel python2 tar libffi libffi-devel gcc pkg-config make openssl-devel openssh libcrypt-devel --noconfirm --needed | |
| curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py |
| $server = "IE11WIN7\SQLEXPRESS" | |
| $tablequery = "SELECT name from sys.tables" | |
| $databases = @( | |
| "AdjudicationPanel", | |
| "Ossc", | |
| "Osscahmlr", | |
| "ASADJ", | |
| "CARESTANDARDS", | |
| "CICAP", |
| variable "default_user" {} | |
| variable "default_password" {} | |
| variable "subscription_id" {} | |
| variable "client_id" {} | |
| variable "client_secret" {} | |
| variable "tenant_id" {} | |
| provider "azurerm" { | |
| subscription_id = "${var.subscription_id}" | |
| client_id = "${var.client_id}" |
| variable "default_user" {} | |
| variable "default_password" {} | |
| variable "subscription_id" {} | |
| variable "client_id" {} | |
| variable "client_secret" {} | |
| variable "tenant_id" {} | |
| provider "azurerm" { | |
| subscription_id = "${var.subscription_id}" | |
| client_id = "${var.client_id}" |
| variable "default_user" {} | |
| variable "default_password" {} | |
| variable "subscription_id" {} | |
| variable "client_id" {} | |
| variable "client_secret" {} | |
| variable "tenant_id" {} | |
| provider "azurerm" { | |
| subscription_id = "${var.subscription_id}" | |
| client_id = "${var.client_id}" |
| // groovy -cp $HOME/.m2/repository/com/h2database/h2/1.3.166/h2-1.3.166.jar groovySql | |
| // http://groovy.codehaus.org/Tutorial+6+-+Groovy+SQL | |
| // Grab will not load the driver! but at least we can trigger it to download it and then use groovy -cp option to run this script. | |
| // @Grab('com.h2database:h2:1.3.166') | |
| import groovy.sql.Sql | |
| sql = Sql.newInstance( | |
| 'jdbc:h2:~/test', |
Our db is hosted on Amazon. Our web server can connect to the db. Connections to the db are not allowed outside of the web server.
This creates a tunnel from my local machine to the web server:
ssh -N -L 3307:my-rds-db.us-east-1.rds.amazonaws.com:3306 ec2-my-web-server.compute-1.amazonaws.com