Skip to content

Instantly share code, notes, and snippets.

View FYHenry's full-sized avatar
💻
Développe

Frédéric Y. Henry FYHenry

💻
Développe
View GitHub Profile
@FYHenry
FYHenry / write-sql-file
Last active November 4, 2023 17:24
write-sql-file
# -*- shell-script -*-
_write_sql_file()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="--help --version --name --major --minor --directory"
if [[ "${cur}" = -* ]]
@FYHenry
FYHenry / data.sql
Created November 2, 2023 23:30
Usage of sequence functions in PostgreSQL
DROP OWNED BY optical;
CREATE TABLE producttype (id int,
active boolean,
CONSTRAINT pk_producttype_id PRIMARY KEY (id));
CREATE TABLE lang (id int,
name varchar NOT NULL,
CONSTRAINT pk_lang_id PRIMARY KEY (id),
CONSTRAINT un_lang_name UNIQUE (name));
@FYHenry
FYHenry / steam.6
Created April 7, 2023 23:40
Better steam(6) manpage
.\" Edited by Alnotz.
.\" 2023-04-02
.TH "STEAM" "6" "2023-04-02" "Valve" "Steam Launcher's Manual"
.SH "NAME"
steam \- A launcher for the Steam client from Valve Corporation
.SH "SYNOPSIS"