Skip to content

Instantly share code, notes, and snippets.

View zdenekkostal's full-sized avatar

Zdenek Kostal zdenekkostal

  • Brno, Czech republic
View GitHub Profile
@pgilad
pgilad / Instructions.md
Last active September 15, 2025 12:12
Generate SSL Certificate for use with Webpack Dev Server (OSX)

Generate private key

$ openssl genrsa -out private.key 4096

Generate a Certificate Signing Request

openssl req -new -sha256 \
@edtsech
edtsech / lightning_talk_proposal.md
Last active January 31, 2023 07:29
Combining snapshot testing and component library -- ReactiveConf 2017 talk proposal

This is a proposal for a lightning talk at Reactive Conf. Please 🌟 this gist to push the proposal!

Combining snapshot testing and component library

Do you test presentational logic of your components? No? Yes, but you feel like you are writing a lot of dummy tests? You even probably use snapshot tests for that, but don't feel like you make enought value from them..

If so, click 🌟 button on that Gist!

I'll talk how our team is using snapshot testing to iterate faster,

@sijad
sijad / .tmux.conf
Last active January 23, 2022 15:53
Terminal
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
set-option -ga terminal-overrides ",xterm-256color:Tc"
set -g default-terminal screen-256color
set -g status-keys vi
@spaze
spaze / ssls-letsencrypt.md
Last active March 15, 2018 21:57
Otevřená odpověd ssls.cz na e-mail s předmětem "Upozornění: Zabezpečení domény"

Provozovatelé ssls.cz poslali e-mail zákazníkům, kteří od nich dříve kupovali certifikáty, ale přešli na certifikáty od Let's Encrypt. Ukázku toho e-mailu najdete na https://twitter.com/parisek/status/802847950863011840, podobná srovnávací tabulka je i na https://www.ssls.cz/lets-encrypt.html. Napsal jsem ssls.cz otevřenou odpověď, kterou najdete v nezměněné podobě níže. (Opravil jsem jen překlepy a chybějící interpunkční znaménka, díky za jejich nahlášení.)

Dobrý den,

(tuto odpověď píšu jako otevřený dopis, publikoval jsem ji také na https://gist.github.com/spaze/e081b948b8cd7d06dddbe9e6fa65c5ac)

díky za e-mail, jsem Vaším bývalým zákazníkem a podobným textem, který obsahuje zavádějící i nepravdivé informace, si mě nezískáte zpět. Pro mě

@Ashton-W
Ashton-W / Issue.md
Last active February 26, 2026 18:05
GitHub Markdown toggle code block
Click to toggle contents of `code`
CODE!
Details
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active March 13, 2026 08:37
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@hejld
hejld / react-event-handling.md
Created November 22, 2015 19:36
React Event Handling

EVENT HANDLING

First source file you should be reading when trying to understand React Event System is ReactBrowserEventEmitter.js.

ReactEventListener

First the event is captured at the top-level ReactEventListener.

  • in the main thread

API

@zimtimgetriebe
zimtimgetriebe / flexbox-2016.css
Created November 17, 2015 22:52
Flexbox 2016 - completly by Todd Motto and his awesome tweet https://twitter.com/toddmotto/status/665899475840442368
.flexbox-2016 {
flex-justify: I am not justifying myself to you;
column: I would like this column to be 50% only at certain time periods;
column-start: one_colunn_to_rule_then_all 10 5%;
flexify: true false Boolean 20 1012;
flex—year: every-non-leap-year 5% 0 0 1;
flexi—box: 129839021839128390128312; // support older browsers
flex—box: initiate-the-flex 1 1 1 1 1 1 1 1 false 1;
start-flex: inherit-face-render-DOM;
space—between—flexbox-columns: coffee-cup;
// Have some complicated non-React widgets that manipulate DOM?
// Do they manage a list of DOM elements? Here's how to wrap it
// into a React component so you can "constantly rerender" it.
// A dumb non-react widget that manually manage some DOM node that
// represent a list of items
function NonReactWidget(node) {
this.node = node;
}
@staltz
staltz / introrx.md
Last active March 10, 2026 03:48
The introduction to Reactive Programming you've been missing