Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
declare -A Pack
function callback {
Pack[$2]=
}
mapfile -t -c 1 -C callback < "${1?error: file missing}"
suite=${2?error: chroot of suite missing}
@d630
d630 / debootstrap.txt
Created March 12, 2019 07:27
Debian buster packages
adduser
apt
apt-utils
base-files
base-passwd
bash
bsdmainutils
bsdutils
coreutils
cpio
@d630
d630 / debootstrap.txt
Last active March 12, 2019 07:32
Debian stretch packages
adduser
apt
apt-utils
base-files
base-passwd
bash
bsdmainutils
bsdutils
coreutils
cpio
@d630
d630 / data.sql
Created October 13, 2018 11:19
corg
--
-- INSERTS.
--
SET foreign_key_checks=0;
INSERT INTO logi(ttable)
VALUES ('customer'), ('activity'), ('file');
INSERT INTO employee(nickname, password)
@d630
d630 / quiz.sql
Created August 29, 2018 03:52
Quiz
-- START TRANSACTION;
SET foreign_key_checks=0;
DROP DATABASE IF EXISTS quiz;
CREATE DATABASE quiz;
USE quiz;
-- TABLES.
@d630
d630 / bestellando.sql
Last active August 26, 2018 19:28
bestellando
START TRANSACTION;
SET foreign_key_checks=0;
DROP DATABASE IF EXISTS bestellando;
CREATE DATABASE bestellando;
USE bestellando;
CREATE TABLE dish (
id TINYINT UNSIGNED PRIMARY KEY AUTO_INCREMENT,
@d630
d630 / Data.php
Last active August 18, 2018 08:15
PHP & MySql 1
<?php
class Data
{
protected $conn;
protected $query;
protected $fields;
public function __construct()
{
@d630
d630 / immo.sql
Last active July 13, 2018 04:02
Immo
START TRANSACTION;
SET foreign_key_checks=0;
DROP DATABASE IF EXISTS immo;
CREATE DATABASE immo;
USE immo;
-- GRANT ALL ON immo.* TO 'user'@'localhost';
TODO
pruefeID()