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
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 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 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 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 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 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 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 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 |
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
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> | |
<input name="business" type="hidden" value="[email protected]"> | |
<input name="cmd" type="hidden" value="_donations"> | |
<input name="item_name" type="hidden" value="Stanford Daily Donation"> | |
<input name="item_number" type="hidden" value="From Footer in Page: https://www.stanforddaily.com"> | |
<input name="currency_code" type="hidden" value="USD"> | |
<button name="submit" | |
style="font-family:'IBM Plex Sans Condensed', sans-serif;text-transform:uppercase;line-height:40px;border:none;border-radius:0;background-color:#8C1515;color:#FFFFFF;paddind-left:20px;paddind-right:20px;height:40px;display:inlineBlock;cursor:pointer;font-size:15px;font-weight:700;letter-spacing:1px;outline:0" | |
type="submit">Support the Daily</button> | |
<select name="amount" |
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 fileinput | |
PATH = "website/www/site/content/en/documentation/programming-guide.md" | |
seen = [] | |
STATE_DEFAULT = 0 | |
STATE_IN_HIGHLIGHT = 1 | |
STATE_FINISHED_HIGHLIGHT = 2 | |
STATE_AFTER_HIGHLIGHT_NEWLINE = 3 |
NewerOlder