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
| #cloud-config | |
| users: | |
| - name: {username} | |
| groups: users, admin, docker | |
| sudo: ALL=(ALL) NOPASSWD:ALL | |
| shell: /bin/bash | |
| ssh_authorized_keys: | |
| - {ssh_key_pub} | |
| packages: |
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
| sudo rsync -aAXH --numeric-ids --delete \ | |
| --exclude='/dev/*' \ | |
| --exclude='/proc/*' \ | |
| --exclude='/sys/*' \ | |
| --exclude='/run/*' \ | |
| --exclude='/tmp/*' \ | |
| --exclude='/var/tmp/*' \ | |
| --exclude='/var/cache/**' \ | |
| --exclude='/lost+found' \ | |
| --exclude='/mnt/*' \ |
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
| const LIMIT = 5 | |
| const PK = "STORE#123" | |
| const getAuctionItems = (items: any[])=> { | |
| return items.map((auction)=>(getAuctionItem(auction))) | |
| } | |
| const getPageKey = (item: any) => ({PK:item.PK, SK:item.SK}) |
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
| version: '3' | |
| services: | |
| database: | |
| image: postgis/postgis:13-master | |
| # Required when running on platform other than amd64, like Apple M1/M2: | |
| # platform: linux/amd64 | |
| ports: | |
| - 5432:5432 | |
| volumes: | |
| - ./data/database:/var/lib/postgresql/data |
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 | |
| # Add deadsnakes PPA | |
| add-apt-repository ppa:deadsnakes/ppa -y | |
| # Install Python 3.10 and required packages | |
| apt-get install -y --no-install-recommends python3.10 \ | |
| python3.10-dev \ | |
| python3.10-venv \ | |
| python3-distutils-extra |
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
| // hooks/create-report/templates/base.liquid | |
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <meta name="viewport" content="width=device-width"> | |
| <meta name="format-detection" content="telephone=no"> |