Skip to content

Instantly share code, notes, and snippets.

View jplew's full-sized avatar

JP Lew jplew

View GitHub Profile
@jplew
jplew / README.md
Last active April 3, 2023 01:14
How to Setup SSH and GPG keys with Gitlab
@jplew
jplew / sitemap.xml
Last active December 17, 2019 01:20
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://cto.ai/static/sitemaps/sitemap-host-static</loc>
</sitemap>
<sitemap>
<loc>https://cto.ai/static/sitemaps/sitemap-host1.xml</loc>
</sitemap>
<sitemap>
<loc>https://cto.ai/static/sitemaps/sitemap-static.xml</loc>
@jplew
jplew / generateSitemap.js
Created December 13, 2019 00:57
Generate sitemaps dynamically
const pgClient = require('./pgClient')
const fs = require('fs')
const sm = require('sitemap')
const path = require('path')
const sitemapsDir = 'sitemaps'
const formatUrl = ({ accountNumber, unparsedAddress }) => {
return `/property/${accountNumber}/${(unparsedAddress || '').replace(
/\s+/g,
@jplew
jplew / account.css
Last active October 31, 2019 21:23
Styles for Profile page
/* Screen sizes */
/* // Small devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }
// Medium devices (tablets, 768px and up)
@media (min-width: 768px) { ... }
// Large devices (desktops, 992px and up)
@media (min-width: 992px) { ... }
@jplew
jplew / signin-error.html
Created October 21, 2019 19:19
Signin Error page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Session failed - CTO.ai</title>
<link
rel="shortcut icon"
type="image/png"
@jplew
jplew / welcome-back.html
Created October 21, 2019 19:17
Welcome Back page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Signed in - CTO.ai</title>
<link
rel="shortcut icon"
type="image/png"
@jplew
jplew / welcome.html
Last active October 21, 2019 19:09
Updated Welcome Page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Signed up - CTO.ai</title>
<link
rel="shortcut icon"
type="image/png"
@jplew
jplew / README.md
Created October 21, 2019 02:59
AWS README

🛠 CTO.ai AWS CLI Scaffold OP 🚀

A user-friendly interactive command line user interface to build and run an AWS CLI command.

Requirements

Here's what you'll need before running this op:

  • AWS Access Key Id: Generate via AWS Management Console > Security Credentials > Access Keys
  • AWS Access Key Secret: Generate via AWS Management Console > Security Credentials > Access Keys
@jplew
jplew / README.md
Created October 21, 2019 02:58
Github README

🛠 CTO.ai Github Ops 🚀

A collection of ops to manage your Github workflow

Requirements 🔑

  • Create Github access token

    • You would need the Github access token in order to run any Github command. Find the steps to create the access token here.
Process: Oni2_editor [82168]
Path: /Applications/Onivim2.App/*/Oni2_editor
Identifier: com.outrunlabs.onivim2
Version: 0.01
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Oni2_editor [82168]
User ID: 501
Date/Time: 2019-07-31 16:29:17.857 -0700