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
| pip install lifelines | |
| # ############################################################################# | |
| # # TCGA-BRCA Multiomics Data Integration and Survival Analysis | |
| # ############################################################################# | |
| # | |
| # This notebook demonstrates the integration of Transcriptomics (mRNA), Copy Number Variation (CNV), | |
| # and Clinical data for Breast Invasive Carcinoma (BRCA) from The Cancer Genome Atlas (TCGA). | |
| # | |
| # **ASSUMPTION:** You have downloaded the following files from a source like the | |
| # UCSC Xena Browser and placed them in the same directory as this notebook: |
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
| Disable-BitLocker -MountPoint "C:" -erroraction silentlycontinue | |
| $bl = Get-BitLockerVolume -MountPoint "c:" | select-object -expandproperty VolumeStatus | |
| Do {Get-BitLockerVolume -MountPoint "c:" | select-object -expandproperty VolumeStatus | out-null} Until ($bl = "FullyDecrypted") | |
| $sizemin = Get-PartitionSupportedSize -driveletter c | select-object -expandproperty SizeMin | |
| $result = $sizemin / 10 | |
| $final = $sizemin + $result | |
| Resize-Partition -driveletter c -size $final | |
| Import-Module Appx |
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 | |
| # A bash script to update a Cloudflare DNS A record with the external IP of the source machine | |
| # Used to provide DDNS service for my home | |
| # Needs the DNS record pre-creating on Cloudflare | |
| # Proxy - uncomment and provide details if using a proxy | |
| #export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport> | |
| # Cloudflare zone is the zone which holds the record |
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
| # Long version | |
| # Input variable to mount remote UNC Path as a local drive | |
| $mountAsUser='domain\serviceAccount' | |
| $mountAsPassword='somecomplexpassword' | |
| $uncPath='\\server009\share01\public' | |
| # Scan for next available drive letter, excluding D "CD Rom" and H "Home" | |
| $unavailableDriveLetters=(Get-Volume).DriveLetter|sort | |
| $availableDriveLetters=.{(65..90|%{[char]$_})|?{$_ -notin $unavailableDriveLetters}} | |
| [char]$firstAvailableDriveLetter=$availableDriveLetters[0] |
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
| # Victron modbus connection | |
| modbus: | |
| - name: camper-victron | |
| type: tcp | |
| host: 1.2.3.4 | |
| port: 502 | |
| sensors: | |
| - name: System DC Load | |
| unit_of_measurement: 'W' | |
| device_class: power |
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
| blueprint: | |
| name: Zooz ZEN34 Remote scene control | |
| description: | | |
| Use the Zooz ZEN34 remote to trigger Scenes and control devices based on varying scenes. | |
| This Blueprint is currently configured for the zwaveJS platform. | |
| 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
| - hosts: all | |
| become: true | |
| become_user: root | |
| gather_facts: False | |
| tasks: | |
| - name: 1. Adding Intel® oneAPI repository key | |
| shell: | |
| cmd: wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null | |
| - name: 2. Adding Intel® oneAPI repository |
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
| cat /dev/urandom | tr -dc '0-9A-F' | fold -w 32 | head -n 1 | sed -e 's/\(..\)/0x\1, /g' -e 's/, $//' |
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
| # Source: https://gist.github.com/48f44d3974db698d3127f52b6e7cd0d3 | |
| ########################################################### | |
| # Automation of Everything # | |
| # How To Combine Argo Events, Workflows, CD, and Rollouts # | |
| # https://youtu.be/XNXJtxkUKeY # | |
| ########################################################### | |
| # Requirements: | |
| # - k8s v1.19+ cluster with nginx Ingress |
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
| aws lambda invoke --function-name my-function out --log-type Tail |
NewerOlder