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
FROM ubuntu | |
RUN apt-get update && apt-get install poppler-utils -y |
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
from marshmallow import Schema, ValidationError, fields, validate | |
REQ = dict(required=True, allow_none=False) # Make a field required | |
class KeysSchema(Schema): | |
item_id = fields.String(**REQ) | |
class Schema1(Schema): |
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 | |
[[ ! -z "${DEBUG}" ]] && set -x | |
LOG_GROUP_NAME=${1-} # API-ResourceFunction | |
MY_QUERY="${@:2}" | |
START_TIME=$(date --date="30 minutes ago" "+%s000") | |
END_TIME=$(date "+%s000") | |
if [ -z "${LOG_GROUP_NAME}" ]; then |
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
VENV1=".virtualenv" | |
VENV2=".venv" # <-- RENAME THEM ALL TO THIS | |
PYTHON="${PYTHON:-python3.8}" | |
MYDIR=$(PWD); | |
for x in $(find . -name $VENV1 -type d); do | |
cd "$MYDIR/$(basename $x)"; | |
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 datetime | |
import uuid | |
import psycopg2.extras | |
from sqlalchemy import Column, MetaData, Table | |
from sqlalchemy.types import Integer, DateTime, TypeDecorator | |
from sqlalchemy.dialects.postgresql import ARRAY, array | |
from sqlalchemy.dialects.postgresql import UUID | |
from sqlalchemy.sql.expression import cast, literal, select |
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": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": "find", | |
"keys": "ctrl+shift+f" | |
}, | |
{ | |
"command": |
- Use
Launch chrome against localhost
- In Chrome Dev Tools, go to "Sources > static > js > 0.chunk.js" and press
Ctrl + P
to navigate toApp.js
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 | |
clear | |
BRANCH1=${1:-development} | |
BRANCH2=${2:-staging} | |
TIMEBOX=${3:-3 weeks ago} | |
cmd() { | |
git --no-pager log \ | |
--color --abbrev-commit --author-date-order --since="$TIMEBOX" \ |