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
| yt-dlp "https://www.youtube.com/watch?v=XXX" -k | |
| yt-dlp "https://www.youtube.com/watch?v=XXX" -k -x --audio-format mp3 |
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 forward='function _forward() { | |
| aws ssm start-session \ | |
| --target $INSTANCE_ID \ | |
| --document-name AWS-StartPortForwardingSession \ | |
| --parameters "{\"portNumber\":[\"$1\"],\"localPortNumber\":[\"$1\"]}" | |
| }; _forward' | |
| # Usage: | |
| # forward 8080 |
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
| https://github.com/cisagov/cool-dns-cyber.dhs.gov | |
| go install github.com/terraform-docs/[email protected] | |
| terraform-docs markdown --anchor=false --html=false --lockfile=false . |
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 { spawn } from "child_process"; | |
| import * as readline from "readline"; | |
| const proc = spawn('node', ['/tmp/exec.js'], { stdio: 'pipe' }); | |
| const readInterface = readline.createInterface({ input: proc.stdout }); | |
| const readInterfaceStderr = readline.createInterface({ input: proc.stderr }); | |
| await new Promise((resolve, reject) => { | |
| readInterfaceStderr.on('line', (e: string) => { | |
| console.error(e); | |
| stderr += e + "\n"; | |
| }); |
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
| def peek(self, size: int): | |
| b = bytearray() | |
| for i in range(0, min(size, len(self.__buf))): | |
| b.extend(self.__buf[i]) | |
| return bytes(b)[:size] |
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
| tail -n +1 * | nc termbin.com 9999 |
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
| diskutil list | |
| diskutil unmountDisk force /dev/DRIVENAME | |
| diskutil eraseDisk FAT32 NEWNAME /dev/DRIVENAME |
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
| // When gzip files are padded with null bytes at the end (for example, | |
| // bsdtar does this when outputting a .tar.gz to stdout), we should | |
| // just read past the null bytes. | |
| while (strm->avail_in >= 1 && *(strm->next_in) == '\0') { | |
| // printf("\tlarger %d, avail_in %u, total_in %u, next_in %p - %u\n", (uint64_t) ftell_(index->fd, index->f) >= index->compressed_size ? 1 : 0, strm->avail_in, strm->total_in, strm->next_in, *(strm->next_in)); | |
| strm->next_in++; | |
| strm->avail_in--; | |
| } |
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
| # Install htslib (for bgzip) | |
| RUN mkdir /opt/htslib | |
| RUN curl -L https://github.com/samtools/htslib/releases/download/1.11/htslib-1.11.tar.bz2 --out htslib-1.11.tar.bz2 && \ | |
| tar -xf htslib-1.11.tar.bz2 && \ | |
| cd htslib-1.11 && \ | |
| ./configure --disable-bz2 --disable-lzma --prefix=/opt/htslib/ && \ | |
| make && \ | |
| make install | |
| ENV PATH="${PATH}:/opt/htslib/bin" |
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
| name: Docs | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| name: Build docs |
NewerOlder