start new:
tmux
start new with session name:
tmux new -s myname
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
version: "3" | |
networks: | |
monitoring: | |
app-backend: | |
services: | |
cadvisor: | |
image: google/cadvisor:${CADVISOR_VERSION:-v0.26.1} | |
networks: |
# docker stack deploy --compose-file ./docker-stack.yml prom-stack | |
version: "3" | |
services: | |
prometheus: | |
image: prom/prometheus:latest | |
networks: | |
- monitoring | |
ports: | |
- 9001:9090 |
global: | |
scrape_interval: 30s | |
evaluation_interval: 30s | |
external_labels: | |
monitor: "prometheus-swarm" | |
rule_files: | |
scrape_configs: | |
- job_name: 'prometheus' |
-- Create a group | |
CREATE ROLE readaccess; | |
-- Grant access to existing tables | |
GRANT USAGE ON SCHEMA public TO readaccess; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; | |
-- Grant access to future tables | |
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess; |
How to configure your Mac to use DNS over TLS in five easy steps:
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby
Edit the configuration file:
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
import "@openzeppelin/[email protected]/token/ERC721/ERC721.sol"; | |
import "@openzeppelin/[email protected]/access/Ownable.sol"; | |
contract MyNFT is ERC721, Ownable { | |
uint256 public totalSupply; | |
constructor() ERC721("MyNFT", "MNFT") {} |