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
# Python script to parse google voice takeout messages into csv | |
# command line arguments | |
from bs4 import BeautifulSoup | |
import pandas as pd | |
import os | |
import argparse | |
# construct the argument parser and parse the arguments | |
ap = argparse.ArgumentParser() |
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
# create ram disk | |
sudo mount -t tmpfs -o size=8G tmpfs /mnt/ramdisk | |
# initial sync without --delete | |
rsync -avP /path/to/your/workspace/ /mnt/ramdisk | |
# keep in sync with 5 sec delay to min overehad | |
chokidar "**/*" --delay 5000 \ | |
--command "rsync -avP --delete /path/to/your/workspace/ /mnt/ramdisk" |
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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"$id": "dns-record.schema.json", | |
"$title": "DNS Record Schema", | |
"type": "object", | |
"oneOf": [ | |
{ | |
"$ref": "#/components/records/A" | |
}, | |
{ |
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
#!/usr/bin/env bash | |
# $1 : relative filename | |
file_path() { | |
echo "$(cd "$(dirname "$1")" && pwd)/$(basename "$1")" | |
} | |
output() { |
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
#!/usr/bin/env bash | |
# Ditch snap on kubuntu - including the bs ubuntu does | |
# Run on a new systems without downloading by | |
# `$ wget -O - https://gist.githubusercontent.com/tomdavidson/33b42eb24a23adff47b7afe4387f8cf5/raw/0e7e298f519e894790c8b46d667b0210033f0c11/no-snap.sh | bash` | |
sudo systemctl disable snapd | |
sudo systemctl disable snapd.service |
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
// @ts-nocheck | |
import { env } from 'node:process'; | |
import comments from 'eslint-plugin-eslint-comments'; | |
import imprt from 'eslint-plugin-import'; // 'import' is ambiguous and prettier had trouble | |
import jest from 'eslint-plugin-jest'; | |
import jestFmt from 'eslint-plugin-jest-formatting'; | |
import n from 'eslint-plugin-n'; | |
import nextjs from '@next/eslint-plugin-next'; | |
import prettierConfig from 'eslint-config-prettier'; |
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
commit efcfd6e9de598a8fc151d25afed99c479760ed3c | |
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | |
Date: Wed Jun 29 04:31:48 2022 +0000 | |
Bump turbo from 1.2.9 to 1.3.1 (#17) | |
Bumps [turbo](https://github.com/vercel/turborepo) from 1.2.9 to 1.3.1. | |
e notes</summary> | |
<p><em>Sourced from <a href="https://github.com/vercel/turborepo/releases">turbo's releases</a>.</em></p> | |
<blockquote> |
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
# yaml-language-server: $schema=https://json.schemastore.org/dependabot-2.0.json | |
version: 2 | |
updates: | |
- package-ecosystem: 'npm' | |
directory: '/' | |
schedule: | |
interval: 'daily' | |
versioning-strategy: increase-if-necessary |
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
#!/usr/bin/env bash | |
get_kubeconfig() { | |
mkdir -p "$HOME"/.kube | |
ssa-pg/scripts/pulumi-run.sh kubecfg > "$HOME"/.kube/config | |
} | |
PORT=${PORT:-5432} | |
SERVICE_NAME="postgres-tunnel" |
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
$ gcloud ml language analyze-entities --content="Adt Security Systems bankruptcy dept 1501 Yamato Rd. Boca Raton, FL 33431" | |
{ | |
"entities": [ | |
{ | |
"mentions": [ | |
{ | |
"text": { | |
"beginOffset": 21, | |
"content": "bankruptcy dept" | |
}, |
NewerOlder