Skip to content

Instantly share code, notes, and snippets.

View K3TH3R's full-sized avatar

Kether Saturnius K3TH3R

View GitHub Profile
@K3TH3R
K3TH3R / schema.js
Created November 5, 2020 08:06
Loads/updates the schema in a Fauna database.
// Required packages: faunadb, dotenv.
// FAUNA_SECRET: should be the secret of an admin key in the target DB.
const fs = require("fs");
const https = require("https");
const path = require("path");
const { Client, query: q } = require("faunadb");
require('dotenv').config({ path: path.join(__dirname, '.env') });
@K3TH3R
K3TH3R / iterm2.zsh
Created December 28, 2016 21:50 — forked from wadey/iterm2.zsh
Change iTerm2 tab color when using SSH
# Usage:
# source iterm2.zsh
# iTerm2 window/tab color commands
# Requires iTerm2 >= Build 1.0.0.20110804
# http://code.google.com/p/iterm2/wiki/ProprietaryEscapeCodes
tab-color() {
echo -ne "\033]6;1;bg;red;brightness;$1\a"
echo -ne "\033]6;1;bg;green;brightness;$2\a"
echo -ne "\033]6;1;bg;blue;brightness;$3\a"