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
| # Forticlient Debian 13 (Trixie) Installation | |
| # This script adds the Forticlient repository, imports the GPG key, updates package lists, and installs Forticlient 7.4. | |
| # Note: The repository URL references Ubuntu, but it works on Debian 13 (Trixie) as well. | |
| # Download Fortinet GPG key | |
| wget https://repo.fortinet.com/repo/forticlient/7.4/ubuntu22/DEB-GPG-KEY --output-document=/etc/apt/keyrings/repo.fortinet.com.asc | |
| # Add Forticlient repository | |
| echo "deb [signed-by=/etc/apt/keyrings/repo.fortinet.com.asc] https://repo.fortinet.com/repo/forticlient/7.4/ubuntu22/ stable non-free" > /etc/apt/sources.list.d/repo.fortinet.com.list |
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
| # bash completion for etcdctl -*- shell-script -*- | |
| __etcdctl_debug() | |
| { | |
| if [[ -n ${BASH_COMP_DEBUG_FILE:-} ]]; then | |
| echo "$*" >> "${BASH_COMP_DEBUG_FILE}" | |
| fi | |
| } | |
| # Homebrew on Macs have version 1.3 of bash-completion which doesn't include |
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
| # bash completion for etcdutl -*- shell-script -*- | |
| __etcdutl_debug() | |
| { | |
| if [[ -n ${BASH_COMP_DEBUG_FILE:-} ]]; then | |
| echo "$*" >> "${BASH_COMP_DEBUG_FILE}" | |
| fi | |
| } | |
| # Homebrew on Macs have version 1.3 of bash-completion which doesn't include |
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
| -- base table | |
| -- drop table users cascade; | |
| CREATE TABLE users ( | |
| id serial PRIMARY KEY, | |
| username text NOT NULL UNIQUE, | |
| password text, | |
| created_on timestamptz NOT NULL, | |
| last_logged_on timestamptz NOT NULL |
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 table my_table (id integer primary key, data text); | |
| create function my_func(id integer, data text) | |
| returns void | |
| language plpgsql | |
| as | |
| $$ | |
| begin | |
| insert into my_table values (id, data); | |
| end; | |
| $$; |
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
| /* | |
| * This query creates JSON input for AWS DMS (Data Migration Service) selection rules. | |
| * It incluedes all schemas. | |
| */ | |
| WITH rules AS ( | |
| SELECT | |
| format('{ | |
| "rule-type": "selection", | |
| "rule-id": "%s", |