Poetry is great, somewhat but not quite akin to Node's NVM
poetry config virtualenvs.in-project true
Shiv Build fully self-contained Python zipapps with all their dependencies included
xcodebuild -license xcodebuild -runFirstLaunch xcode-select --install
https://mac.install.guide/commandlinetools/index.html https://mac.install.guide/commandlinetools/6.html
'use strict'; | |
var query = `query PageRender { page(url: "/index") { url friendlyName } }`; | |
const e = React.createElement; | |
class EmptyElement extends React.Component { | |
constructor(props) { | |
super(props); | |
} | |
render() { | |
fetch('https://demo.dotcms.com/api/v1/graphql', { | |
method: 'POST', |
port selfupdate && port upgrade outdated && port uninstall inactive && port uninstall leaves |
DO $$ DECLARE | |
r RECORD; | |
BEGIN | |
-- if the schema you operate on is not "current", you will want to | |
-- replace current_schema() in query with 'schematodeletetablesfrom' | |
-- *and* update the generate 'DROP...' accordingly. | |
FOR r IN (SELECT tablename FROM pg_tables WHERE schemaname = current_schema()) LOOP | |
EXECUTE 'DROP TABLE IF EXISTS ' || quote_ident(r.tablename) || ' CASCADE'; | |
END LOOP; | |
END $$; |
Save the following as docker-prereqs.sh
and run as root or with sudo:
#!/bin/bash
DOCKER_USER=dotcms-docker
dnf install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
dnf update -y
dnf install -y iptables tar fuse-overlayfs jq