Skip to content

Instantly share code, notes, and snippets.

["10cc","The Worst Band In The World",2,1,"Sheet Music",170040,"spotify:track:2QuhQtkWjIgUnD0osMVxmQ","2018-05-21T12:33:54Z"]
["13th Floor Elevators","Slip Inside This House - Stereo LP Version",1,2,"Easter Everywhere",482278,"spotify:track:4GVRHAwABAV0v63YX9Go0p","2019-11-26T03:57:30Z"]
["20/20","Backyard Guys",10,1,"20/20",172240,"spotify:track:1OeUSRPye1E157Ca58ejJQ","2017-10-21T19:18:17Z"]
["20/20","Yellow Pills",2,1,"20/20",257733,"spotify:track:5FddI3pEApza2kSmc4HgUY","2017-10-21T19:18:17Z"]
["2raumwohnung","Bleib geschmeidig",5,1,"Kommt zusammen",294413,"spotify:track:0moaDBq6OXEp75PnAphgfY","2018-04-07T23:00:42Z"]
["2raumwohnung","Du und Ich",2,1,"Kommt zusammen",201306,"spotify:track:33QrenRAriTaOqM3cydFfT","2018-04-07T23:00:42Z"]
["2raumwohnung","Kommt zusammen",1,1,"Kommt zusammen",232786,"spotify:track:2L3Ogz0JhfNlBWOkocA1pD","2018-04-07T23:00:42Z"]
["2raumwohnung","Sexy Girl",3,1,"Kommt zusammen",285786,"spotify:track:2Zhnednf8tOLWNldP90d1X","2018-04-07T23:00:42Z"]
["31Knots","Chain Reaction",5,1
@d630
d630 / x.sh
Last active June 4, 2022 00:44
posix shell: understanding command search and execution
#!/bin/sh
get_path () {
command -v "$1";
};
has_operator () {
case "$1" in
(*";"*|*"&"*|*"&&"*|*"||"*|*";;"*|*"("*|*")"*)
command \return 1;;
@d630
d630 / x.sh
Last active October 27, 2019 15:41
bash: bash: bash: bash:
#!/usr/bin/env bash
#
# No local scope, use command substitution, process
# substitution, regular pipes or execute external procedures/scripts.
#
# Use set -o allexport, if you like to be oldschool.
#mapfile -t -c 1 -C "printf '%.0s%s\n'" -u 7 "${FUNCNAME[1]%%.*}"
function fn.call {
#!/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
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 / debootstrap.txt
Created March 12, 2019 07:27
Debian buster packages
adduser
apt
apt-utils
base-files
base-passwd
bash
bsdmainutils
bsdutils
coreutils
cpio
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;
public class MatrixGame {
private char[][] mArray;
@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)