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
/** | |
* @abstract | |
* @class MyApp.EnumBase | |
*/ | |
Ext.define('MyApp.EnumBase', { | |
inheritableStatics: { | |
/** | |
* @return {Array.<MyApp.EnumBase>} | |
*/ |
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
# How to encrypt/decrypt your text/blob secret with AWS KMS with AWS cli | |
KEY_ID=alias/my-key | |
SECRET_BLOB_PATH=fileb://my-secret-blob | |
SECRET_TEXT="my secret text" | |
ENCRYPTED_SECRET_AS_BLOB=encrypted_secret_blob | |
DECRYPTED_SECRET_AS_BLOB=decrypted_secret_blob # Result of decrypt-blob target | |
encrypt-text: |
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
# 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 |
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 | |
# 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__=() |
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
import org.scalatest.{Matchers, WordSpec} | |
import spray.json._ | |
object JsonHelper { | |
implicit class JsObjectWrap(obj: JsObject) { | |
def removeEmptyValues: JsObject = JsObject(obj.fields | |
.map { | |
case (key, value: JsObject) => (key, value.removeEmptyValues) |
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
SHELL := /bin/bash | |
openssl := /usr/local/opt/[email protected]/bin/openssl | |
work_dir := __work | |
message_digest_type := sha256 | |
ifneq ($(wildcard __override.mk),) | |
include __override.mk | |
endif |
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
# 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) |
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
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 \ |
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
# 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)' |
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
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 |
OlderNewer