git init <repo>
cd <repo>
git remote add -f origin <url>
This creates an empty repository with your remote, and fetches all objects but doesn't check them out. Then do:
git config core.sparseCheckout true
git init <repo>
cd <repo>
git remote add -f origin <url>
This creates an empty repository with your remote, and fetches all objects but doesn't check them out. Then do:
git config core.sparseCheckout true
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func SayHello(name string) { | |
fmt.Printf("Hello %s!\n", name) | |
} |
GRANT USAGE ON SCHEMA public TO readwrite; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public To readwrite; | |
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readwrite; | |
GRANT USAGE ON SCHEMA schema_name TO readwrite; | |
GRANT SELECT ON ALL TABLES IN SCHEMA schema_name To readwrite; | |
ALTER DEFAULT PRIVILEGES IN SCHEMA schema_name GRANT SELECT ON TABLES TO readwrite; | |
GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA schema_name TO readwrite; | |
GRANT SELECT, UPDATE ON ALL SEQUENCES IN SCHEMA schema_name TO readwrite; |
--- | |
driver: | |
name: vagrant | |
provisioner: | |
name: chef_zero | |
verifier: | |
name: inspec |
op-chef pskhadke$ kitchen test | |
-----> Starting Kitchen (v1.19.0) | |
-----> Cleaning up any prior instances of <default-centos-74> | |
-----> Destroying <default-centos-74>... | |
Finished destroying <default-centos-74> (0m0.00s). | |
-----> Testing <default-centos-74> | |
-----> Creating <default-centos-74>... | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'bento/centos-7.4'... | |
==> default: Matching MAC address for NAT networking... |
node { | |
properties([ | |
parameters([ | |
string(name: 'DEPLOY_ENV', defaultValue: 'TESTING', description: 'The target environment', ) | |
]) | |
]) | |
stage("Initialize") { | |
echo "echo ${params.DEPLOY_ENV}" | |
} |
pipeline { | |
agent any | |
parameters { | |
booleanParam(name: 'isFlag') | |
} | |
stages { | |
stage("Initialize") { | |
steps { |