Run a file with sql commands: \i /tmp/schema.sql
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
| require('dotenv').config() | |
| const { launch } = require('chrome-launcher') | |
| const { Chromeless } = require('chromeless') | |
| const login = require('./src/login') | |
| const { spawn } = require('child_process') | |
| const path = require('path') | |
| const crypto = require('crypto') | |
| const AWS = require('aws-sdk') | |
| const fs = require('fs') |
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
| -c force screen capture to go to the clipboard | |
| -b capture Touch Bar - non-interactive modes only | |
| -C capture the cursor as well as the screen. only in non-interactive modes | |
| -d display errors to the user graphically | |
| -i capture screen interactively, by selection or window | |
| control key - causes screen shot to go to clipboard | |
| space key - toggle between mouse selection and | |
| window selection modes | |
| escape key - cancels interactive screen shot | |
| -m only capture the main monitor, undefined if -i is set |
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
| body { | |
| font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif; | |
| font-size: 14px; | |
| } | |
| div { | |
| margin: 3em auto; | |
| width: 660px; | |
| } |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" /> | |
| <title>Homework 3</title> | |
| <link rel="stylesheet" href="./homework3.css" /> | |
| </head> |
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
| # testservice - test service job file | |
| description "my service description" | |
| author "Me <myself@i.com>" | |
| # Stanzas | |
| # | |
| # Stanzas control when and how a process is started and stopped | |
| # See a list of stanzas here: http://upstart.ubuntu.com/wiki/Stanzas |
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
| [Unit] | |
| Description=Doc-to-pdf service | |
| [Service] | |
| ExecStart=/var/task/app/app.js | |
| Restart=always | |
| User=ec2-user | |
| # Note Debian/Ubuntu uses 'nogroup', RHEL/Fedora uses 'nobody' | |
| Group=nogroup | |
| Environment=PATH=/usr/bin:/usr/local/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
| WITH input(query) AS ( | |
| VALUES( | |
| text 'tabletop' | |
| ) | |
| ), | |
| decoded AS ( | |
| SELECT x.* FROM ( | |
| SELECT | |
| CONVERT_FROM( | |
| DECODE(files.data, 'BASE64'), 'UTF-8' |
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
| Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Tortor pretium viverra suspendisse potenti nullam ac tortor vitae purus. Massa enim nec dui nunc. Etiam non quam lacus suspendisse faucibus interdum posuere lorem ipsum. Orci sagittis eu volutpat odio facilisis mauris sit amet. Commodo viverra maecenas accumsan lacus vel facilisis volutpat. Urna et pharetra pharetra massa. Risus at ultrices mi tempus imperdiet nulla malesuada pellentesque. A erat nam at lectus urna. Id venenatis a condimentum vitae. Et netus et malesuada fames ac turpis egestas integer eget. Pharetra convallis posuere morbi leo urna molestie at. Quam elementum pulvinar etiam non quam. Viverra tellus in hac habitasse platea dictumst vestibulum. Gravida quis blandit turpis cursus in. Molestie nunc non blandit massa enim. Ultricies lacus sed turpis tincidunt id aliquet risus feugiat in. | |
| Pellentesque elit eget gravida cum sociis natoque. Odio eu feugiat pretium nibh ipsum. |
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
| CREATE TYPE label AS ENUM ('SENT', 'INBOX'); | |
| CREATE TYPE role AS ENUM ('ADMIN', 'USER', 'SESSION'); | |
| CREATE TYPE entity_type as ENUM ('DESTINATION', 'SENDER'); | |
| CREATE EXTENSION IF NOT EXISTS "pgcrypto"; | |
| CREATE TABLE IF NOT EXISTS users ( | |
| id UUID PRIMARY KEY DEFAULT gen_random_uuid(), | |
| created_at timestamp default current_timestamp, | |
| token varchar(300), |