This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -ex | |
REPO_NAME=${PWD##*/} | |
TARGET_ORG="jenkinsci" | |
#TODO: fetch from GitHib API | |
#TODO: if no, process parameters correctly | |
GITHUB_PR_NUMBER=${1} | |
FROM_USER=${2} | |
BRANCH=${3} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func ExamplePrintToPDF() { | |
ctx, cancel := chromedp.NewContext(context.Background()) | |
defer cancel() | |
var buf []byte | |
if err := chromedp.Run(ctx, | |
chromedp.Navigate(`https://godoc.org/github.com/chromedp/chromedp`), | |
chromedp.ActionFunc(func(ctx context.Context) error { | |
var err error | |
buf, _, err = page.PrintToPDF(). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
table=$1 | |
filename=$2 | |
cqlsh -e "COPY $table TO './$filename' WITH HEADER = true;" |
OlderNewer