Skip to content

Instantly share code, notes, and snippets.

View tillklockmann's full-sized avatar

Till Klockmann tillklockmann

View GitHub Profile
@tillklockmann
tillklockmann / .bashrc
Last active September 21, 2020 17:59
terminal aliases for .bashrc
# tip: create a separate file, e.g. .bash_aliases,
# in the user root dir and import it in .bash_rc like this:
# . ~/.bash_aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias ..='cd ..'
alias ...='cd ../..'
alias s='php -S localhost:8888'
@tillklockmann
tillklockmann / create_table.sql
Last active May 24, 2020 19:03
create stmt timestamp default
create table table_name (
id int(11) not null auto_increment primary key,
name varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
created_at TIMESTAMP not null default CURRENT_TIMESTAMP,
updated_at DATETIME null);
@tillklockmann
tillklockmann / gist:c2f5e6f056dbf92af36ca69cb4f424f6
Created March 18, 2020 00:21
Vue Components comunicating with the parent
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
<h1>{{title}}</h1>
@tillklockmann
tillklockmann / php.json
Last active May 25, 2020 21:50
php snippets for visual studio code
{
"Class Constructor": {
"prefix": "_con",
"body": [
"protected $$1;\n",
"public function __construct($$1)",
"{",
"\t $$this->$1 = $$1;",
"}",
],