Using configuration
gcloud deployment-manager deployments create sample-deployment --config vm_config.yaml
# Merge SRC_REPO into a DEST_REPO under its subdirectory NEW_DIR | |
# cf. https://stackoverflow.com/questions/277029/combining-multiple-git-repositories | |
# | |
# Place 2 repository and this Makefile as follows: | |
# | |
# ./ | |
# DEST_REPO/ | |
# Makefile | |
# | |
# Then execute |
#!/bin/bash | |
# Download MP4 files. Run the command with --help option to see more details | |
COMMAND_NAME=./mp4-download.sh | |
LOGFILE=download.log | |
FILENAME="" | |
ARGV_BASE_INDEX=1 | |
ARGV_DEBUG=NO | |
ARGV__=() |
/** | |
* @abstract | |
* @class MyApp.EnumBase | |
*/ | |
Ext.define('MyApp.EnumBase', { | |
inheritableStatics: { | |
/** | |
* @return {Array.<MyApp.EnumBase>} | |
*/ |
FROM ruby:2.5 | |
RUN apt-get update -y \ | |
&& apt-get install -y wget build-essential libtool-bin libc6-dev libssl1.0-dev \ | |
&& mkdir -p /opt \ | |
&& cd /opt \ | |
&& wget http://www.freetds.org/files/stable/freetds-1.1.6.tar.gz \ | |
&& tar -xzf freetds-1.1.6.tar.gz \ | |
&& cd freetds-1.1.6 \ | |
&& ./configure --prefix=/usr/local --with-tdsver=7.3 \ |
# Accessing Kubernetes API server with a service account token | |
service_account_name := default | |
tmp_cacert_file := __cacert.pem | |
check-api: | |
$(MAKE) get-ca-cert > $(tmp_cacert_file) | |
bash -c 'curl $(shell $(MAKE) get-cluster-address)/api \ | |
--header "Authorization: Bearer $(shell $(MAKE) get-api-token)" \ | |
--cacert $(tmp_cacert_file)' |
2019-08-17T00:50:53.531+1000 [DEBUG] plugin.terraform-provider-google_v2.13.0_x4: 2019/08/17 00:50:53 [DEBUG] Google API Request Details: | |
2019-08-17T00:50:53.531+1000 [DEBUG] plugin.terraform-provider-google_v2.13.0_x4: ---[ REQUEST ]--------------------------------------- | |
2019-08-17T00:50:53.531+1000 [DEBUG] plugin.terraform-provider-google_v2.13.0_x4: POST /v1/projects/my-project:getIamPolicy?alt=json&prettyPrint=false HTTP/1.1 | |
2019-08-17T00:50:53.531+1000 [DEBUG] plugin.terraform-provider-google_v2.13.0_x4: Host: cloudresourcemanager.googleapis.com | |
2019-08-17T00:50:53.531+1000 [DEBUG] plugin.terraform-provider-google_v2.13.0_x4: User-Agent: google-api-go-client/0.5 Terraform/0.12.6 (+https://www.terraform.io) terraform-provider-google/2.13.0 | |
2019-08-17T00:50:53.531+1000 [DEBUG] plugin.terraform-provider-google_v2.13.0_x4: Content-Length: 3 | |
2019-08-17T00:50:53.531+1000 [DEBUG] plugin.terraform-provider-google_v2.13.0_x4: Content-Type: application/json | |
2019-08-17T00:50:53.531+1000 [DEBUG] plugin.terraform-pr |
# Encrypt/decrypt a directory using GPG with symmetric key option | |
dir_name := plain-files | |
encrypted_file := encrypted-dir.blob | |
tmp_file := tmp.tgz | |
encrypt-dir: | |
tar czf $(tmp_file) $(dir_name) | |
gpg --no-symkey-cache -o $(encrypted_file) -c $(tmp_file) | |
rm -f $(tmp_file) |
import java.io.*; | |
import java.net.URL; | |
import java.util.Scanner; | |
class GetPage { | |
public static void main(String[] args) throws IOException { | |
String endpoint = System.getProperty("endpoint"); | |
if (endpoint == null) printUsage(); | |
else printPage(endpoint); |
SHELL := /bin/bash | |
openssl := /usr/local/opt/openssl@1.1/bin/openssl | |
work_dir := __work | |
message_digest_type := sha256 | |
ifneq ($(wildcard __override.mk),) | |
include __override.mk | |
endif |