Skip to content

Instantly share code, notes, and snippets.

View dominikwilkowski's full-sized avatar
🤖
Working

Dominik Wilkowski dominikwilkowski

🤖
Working
View GitHub Profile
@dominikwilkowski
dominikwilkowski / 010-constructor.js
Last active July 14, 2016 02:42
Javascript modulated setup for node ES6
/***************************************************************************************************************************************************************
*
* Application framework and settings
*
* [Description of application]
*
* @license [url] [description]
* @author [author] [@email]
* @repository [url]
*
@dominikwilkowski
dominikwilkowski / README.md
Last active October 19, 2020 03:52
Ubuntu setup with NGINX http/2 and letsencrypt

Intro

This is a basic collection of things I do when setting up a new headless ubuntu machine as a webserver. Following the steps below should give you a reasonable secure server with HTTP/2 support (including ALPN in chrome) and the fast NGINX server. I am happy to add things so leave a comment.

Basics

After creating the server (droplet on DigitalOcean) log in with

@dominikwilkowski
dominikwilkowski / 00-README.md
Last active November 4, 2021 00:53
Doc strangelove outline love

Handle focus styling for keyboard and mouse users

See below code for React, Vanilla JavaScript and jQuery.

Read more in my article

@dominikwilkowski
dominikwilkowski / navigation.liquid
Last active October 13, 2016 07:19
Jekyll automatic page navigation
{% comment %}
This snippet spits out the HTML navigation derived from the front matter settings in your markdown files.
https://gist.github.com/dominikwilkowski/c7d916c9b36e4eebbc90
Usage:
{% include navigation.liquid %}
Return:
HTML direct output
@dominikwilkowski
dominikwilkowski / 010-app.js
Last active May 31, 2016 02:38
Javascript modulated setup
/***************************************************************************************************************************************************************
*
* App framework and settings
*
* [Description of application]
*
* @license [url] [description]
* @author [author & @email]
* @repository [url]
*
@dominikwilkowski
dominikwilkowski / jsonnav.html
Last active August 29, 2015 14:14
Jekyll data-driven navigation
{% comment %}
This snippet checks the data "navigation.json" file for pages not included
Usage:
{% include jsonnav.html %}
Return:
HTML direct output
Required:
@dominikwilkowski
dominikwilkowski / .bash_profile
Last active August 29, 2015 14:13
My .bash_profile file
export PATH=/usr/local/bin:$PATH
# promt colors
export PS1="\[\033[0;32m\]\w \[\033[0;97m\]\$\[\033[0m\] "
# ls alias for color-mode
alias ls='ls -lhaG'
# cd up
alias ..='cd ..'
@dominikwilkowski
dominikwilkowski / Gruntfile.js
Last active August 29, 2015 14:06
Basic grunt setup
'use strict';
/*******************************************************************************************************
*
* FOLDER STRUCTURE
*
* dev // files in root just move to ./prod/ and *.html files will look for grunt-includes directives
* ├── HTMLincludes // HTML snippets included by grunt-includes
* │ └── windows.html
* ├── fonts // files will simply be moved to ./prod/fonts/
<?php
/*****************************| MYSQL CONNECTION FUNCTION |*****************************/
/**
* Simple MySQL abstraction layer for the MySQLi absctration as a replacement
*
* @param resource $mysqli The MySQLi connection link for upgrade to MySQLi
* @param string $query The MySQL query for prepaired statement
* @param array $v The parameters to replace ? in $query. First element must be the type
* @param integer $o Option for more debug infos [0]=no infos(default) [1]=adding debug infos
*