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
| # version: 1.0.1 | |
| # changelog: | |
| # - Support for multiple door sensors | |
| # - Initial release | |
| blueprint: | |
| name: Open Door Notification | |
| description: Send a notification when a door is left open. | |
| domain: automation | |
| input: |
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
| # access aws credentials for a profile from ~/.aws/credentials | |
| import boto3 | |
| profile = 'default' | |
| session = boto3.Session(profile_name=profile) | |
| credentials = session.get_credentials() | |
| credentials.access_key | |
| credentials.secret_key |
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
| while read line; do | |
| mv -v "$line" "${line// - /}" | |
| done < <(find . -name '* .png') |
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
| #!/usr/bin/env bash | |
| # format | |
| sudo mkfs -t ext4 /dev/nvme1n1 | |
| # mount ebs volumne | |
| sudo mkdir -p /mnt/data | |
| sudo mount /dev/nvme1n1 /mnt/data | |
| # fix permissions |
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
| # genome reference | |
| fai_url := s3://broad-references/hg38/v0/Homo_sapiens_assembly38.fasta.fai | |
| fai_file := $(notdir $(fai_url)) | |
| # original clinvar vcf | |
| vcf_url := ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/clinvar_20210710.vcf.gz | |
| raw_vcf := $(notdir $(vcf_url)) | |
| # modified vcf file | |
| mod_vcf := $(raw_vcf:%.vcf.gz=%_modified.vcf.gz) |
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
| library(osfr) | |
| library(purrr) | |
| library(tibble) | |
| # functions --------------------------------------------------------------- | |
| # id: project GUID | |
| .osf_list_wikis <- function(id) { | |
| api_path <- sprintf("nodes/%s/wikis", id) |
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
| #!/usr/bin/env bash | |
| # variables | |
| ############# | |
| tilevcf="dist/bin/tiledbvcf" | |
| tmpdir="/mnt/data/tmp" | |
| samplefile="$tmpdir/samples.txt" | |
| output_dir="data" | |
| export_dir="$output_dir/exports" |
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
| - alias: Announce Door Open | |
| trigger: | |
| - platform: state | |
| entity_id: | |
| - binary_sensor.back_door | |
| - binary_sensor.front_door | |
| to: 'on' | |
| for: | |
| seconds: 30 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| ../bootstrap --prefix=../dist | |
| -- The C compiler identification is AppleClang 11.0.3.11030032 | |
| -- The CXX compiler identification is AppleClang 11.0.3.11030032 | |
| -- Check for working C compiler: /usr/bin/gcc | |
| -- Check for working C compiler: /usr/bin/gcc - works | |
| -- Detecting C compiler ABI info | |
| -- Detecting C compiler ABI info - done | |
| -- Detecting C compile features | |
| -- Detecting C compile features - done | |
| -- Check for working CXX compiler: /usr/bin/g++ |