This file contains 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
function doAdvertising() { | |
console.log("starting advertise"); | |
require("ble_ibeacon").advertise({ | |
uuid : ['a', 2, 3, 4, 'b', 6, 'c', 3, 0, 'd', 8, 'e', 7, 'f', 3, 'g'], // ibeacon uuid | |
major : 0x0001, // optional | |
minor : 0x0001, // optional | |
rssi : -59 // optional RSSI at 1 meter distance in dBm | |
}); | |
console.log("started"); | |
} |
This file contains 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 | |
if [[ ! $(which hcledit) ]]; then | |
echo "'hcledit' is not installed. Install via '$ brew install minamijoyo/hcledit/hcledit'" | |
echo " See https://github.com/minamijoyo/hcledit" | |
exit 1 | |
fi | |
POSITIONAL_ARGS=() | |
HCLEDIT_ACTIONS_TO_TAKE=() |
This file contains 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
package main | |
import ( | |
"fmt" | |
"github.com/myoung34/uptycs-client-go/uptycs" | |
"os" | |
) | |
func main() { | |
c, _ := uptycs.NewClient(uptycs.UptycsConfig{ |
This file contains 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
package main | |
import ( | |
"fmt" | |
"os" | |
"github.com/myoung34/uptycs-client-go/uptycs" | |
) | |
func main() { | |
c, _ := uptycs.NewClient(uptycs.UptycsConfig{ |
This file contains 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 os | |
import sys | |
from typing import List | |
import math | |
import requests | |
if len(sys.argv) == 1: | |
print('Usage: \n travis.py orgname') | |
exit(1) |
This file contains 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
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
namespace: default | |
name: vault-auth | |
--- | |
# Source: vault/templates/injector-serviceaccount.yaml | |
apiVersion: v1 | |
kind: ServiceAccount |
This file contains 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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: app | |
labels: | |
app: vault-agent-demo | |
spec: | |
selector: | |
matchLabels: | |
app: vault-agent-demo |
This file contains 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
# Default values for Traefik | |
image: | |
name: traefik | |
tag: 2.3 | |
pullPolicy: IfNotPresent | |
# | |
# Configure the deployment | |
# | |
deployment: |
This file contains 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 | |
# shellcheck disable=SC2086,SC2034 | |
vpc_id=$1 | |
pritunl_security_group=$2 | |
[[ -z ${vpc_id} ]] && exit 1 | |
[[ -z ${pritunl_security_group} ]] && exit 1 | |
subnets=$(aws ec2 describe-subnets --filters Name=vpc-id,Values=${vpc_id} | jq -r .Subnets[].SubnetId) |
This file contains 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
{ | |
"format_version": "0.1", | |
"terraform_version": "0.12.9", | |
"variables": { | |
"region": { | |
"value": "us-east-1" | |
} | |
}, | |
"planned_values": { | |
"root_module": { |
NewerOlder