Skip to content

Instantly share code, notes, and snippets.

View ntjn's full-sized avatar

Tamás Németh ntjn

View GitHub Profile
--------------------------------------------------------
-- File created - vasárnap-szeptember-25-2016
--------------------------------------------------------
--------------------------------------------------------
-- DDL for Table DOLGOZO
--------------------------------------------------------
CREATE TABLE "HADD7B"."DOLGOZO"
( "DKOD" NUMBER(4,0),
"DNEV" VARCHAR2(10 BYTE),
@ntjn
ntjn / example
Created September 25, 2016 12:24
group: bank example
description[[ the data for this dataset was generated using <http://www.generatedata.com/>
* the relation _Customers_ contains basic information about the customers of the bank.
* the relation _Accounts_ contains the basic information of a single account. Note that a customer can have any number of accounts.
* the relation _PremiumCustomers_ contains the customer-ids of all customers with a total balance over 1000
]]
Customers = { cid firstname lastname
1 Dexter Simpson
@ntjn
ntjn / DOLGOZOK
Created September 26, 2016 05:45
group: Dolgozok
description[[
ELTE adatbázisok 1 DOLGOZO tabla
]]
-- A dátum oszlop hiányzik. A formátuma nem volt megfelelő, nekem pedig arra nem volt időm, hogy átírjam.
-- Az üres mezők NULL értéket kaptak.
DOLGOZOK = {
#!/bin/bash
extractDate() { sed 's/[^\.]*\.//'; }
toStamp() { date --date="$1" +%s; }
# [$1, $2): bound
# $3 current date
function isBetween() {
@ntjn
ntjn / verify_1.7.log
Created November 30, 2017 08:34
some description
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG] Imported: javax.annotation.* < plexus.core
[DEBUG] Imported: javax.enterprise.inject.* < plexus.core
[DEBUG] Imported: javax.enterprise.util.* < plexus.core
[DEBUG] Imported: javax.inject.* < plexus.core
[DEBUG] Imported: org.apache.maven.* < plexus.core
[DEBUG] Imported: org.apache.maven.artifact < plexus.core
[DEBUG] Imported: org.apache.maven.classrealm < plexus.core
[DEBUG] Imported: org.apache.maven.cli < plexus.core
@ntjn
ntjn / syslog
Created December 7, 2017 09:33
Dec 7 10:22:04 raspberrypi-unprotected rsyslogd: [origin software="rsyslogd" swVersion="8.4.2" x-pid="604" x-info="http://www.rsyslog.com"] start
Dec 7 10:22:04 raspberrypi-unprotected systemd[1]: Mounted Configuration File System.
Dec 7 10:22:04 raspberrypi-unprotected systemd[1]: Started Apply Kernel Variables.
Dec 7 10:22:04 raspberrypi-unprotected systemd[1]: Started Create Static Device Nodes in /dev.
Dec 7 10:22:04 raspberrypi-unprotected systemd[1]: Starting udev Kernel Device Manager...
Dec 7 10:22:04 raspberrypi-unprotected systemd[1]: Started udev Kernel Device Manager.
Dec 7 10:22:04 raspberrypi-unprotected systemd[1]: Starting Copy rules generated while the root was ro...
Dec 7 10:22:04 raspberrypi-unprotected systemd[1]: Starting LSB: Set preliminary keymap...
Dec 7 10:22:04 raspberrypi-unprotected systemd-fsck[108]: e2fsck 1.43.3 (04-Sep-2016)
Dec 7 10:22:04 raspberrypi-unprotected systemd-fsck[108]: /dev/mmcblk0p2: clean, 52018/241920 files, 432363/954624 blocks
@ntjn
ntjn / array_slicing_and_compaction.advanced.bash
Created January 25, 2018 11:17
Advanced Bash :: Array slicing and compaction in bash
# Advanced Bash :: Array slicing and compaction in bash
# TL;DR
X=(something 'whatever' "i have more S P A C E S than i can give away. arent you jealous?")
# ${X[@]} the usual whole array
# ${X[@]:index:length} slice from index to index+length-1 inclusive
# ${X[@]::length} slice from 0 to length-1 inclusive
# ${X[@]:index} slice from index to end of array inclusive
@ntjn
ntjn / gist:a79273ca5037f674055a0974299a242c
Created March 1, 2018 08:51 — forked from tsnoad/gist:2642087
SSHA password hashing. this format is used by OpenLDAP to store passwords
<?
function make_salt($salt_size=32) {
//list of possible characters from which to cerate the salt
$sea = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
//how many possible characters are there
$sea_size = strlen($sea);
$salt = "";
"General settings
"___________________________________________________________________
syntax on
set relativenumber
set number
set showcmd
set paste
"set omnifunc=syntaxcomplete#Complete
"set complete=.,w,b,u,t,i,kspell
http://invisible-island.net/xterm/
XTerm Control Sequences
Edward Moy
University of California, Berkeley
Revised by