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 / 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

.responsive-margins-top_(1, 6px);
.responsive-margins-top_(7, 60px);
@screen-xs: 480px;
@screen-sm: 768px;
@screen-md: 992px;
@screen-lg: 1200px;
.responsive-margins-top_(@el, @value) {
@lmarkus
lmarkus / README.MD
Last active May 12, 2025 11:14
Extracting / Exporting custom emoji from Slack

Extracting Emoji From Slack!

Slack doesn't provide an easy way to extract custom emoji from a team. (Especially teams with thousands of custom emoji) This Gist walks you through a relatively simple approach to get your emoji out.

If you're an admin of your own team, you can get the list of emoji directly using this API: https://api.slack.com/methods/emoji.list. Once you have it, skip to Step 3

HOWEVER! This gist is intended for people who don't have admin access, nor access tokens for using that list.

Follow along...

@ajaegers
ajaegers / style-animation-rainbow.css
Created December 10, 2015 10:35
Css animation rainbow effect based on rotating hue colors
/**
* Found in http://mapbox.com footer (hover robot)
*/
.element:hover {
-webkit-animation: rainbow 4s steps(36) infinite;
}
@-webkit-keyframes rainbow {
from { -webkit-filter:hue-rotate(10deg); }
to { -webkit-filter:hue-rotate(360deg); }
@fregante
fregante / header.js
Last active May 21, 2016 12:01 — forked from dominikwilkowski/00-README.md
Doc strange outline love (jQuery-free)
//detecting tab key press
document.body.addEventListener('keydown', function detector (e) {
var keyCode = e.keyCode || e.which;
if(keyCode == 9) {
console.log( 'Tab detected' );
document.documentElement.className += ' is-keyboarduser';
document.body.removeEventListener('keydown', detector);
@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

@xrstf
xrstf / letsencrypt.md
Last active October 30, 2024 07:03
Let's Encrypt on Ubuntu 14.04, nginx with webroot auth

Let's Encrypt on Ubuntu 14.04, nginx with webroot auth

This document details how I setup LE on my server. Firstly, install the client as described on http://letsencrypt.readthedocs.org/en/latest/using.html and make sure you can execute it. I put it in /root/letsencrypt.

As it is not possible to change the ports used for the standalone authenticator and I already have a nginx running on port 80/443, I opted to use the webroot method for each of my domains (note that LE does not issue wildcard certificates by design, so you probably want to get a cert for www.example.com and example.com).

Configuration

For this, I placed config files into etc/letsencrypt/configs, named after <domain>.conf. The files are simple:

@navad
navad / ng-grunticon-embed.directive.js
Last active October 9, 2016 02:25
Grunticon embedder for use in Angular directives/templates
/* globals grunticon: false */
(function() {
'use strict';
angular.module('ngGrunticon', [])
.provider('grunticonEmbedConfig', function() {
this.gruntIcons = undefined;
this.init = function(grunticonCss) {
@DarrenN
DarrenN / get-npm-package-version
Last active May 2, 2025 08:59 — forked from yvele/get-npm-package-version.sh
Extract version from package.json (NPM) using bash / shell
# Version key/value should be on his own line
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g')
echo $PACKAGE_VERSION
@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]
*