Skip to content

Instantly share code, notes, and snippets.

View shirk3y's full-sized avatar

Mateusz Golewski shirk3y

  • Szczecin, Poland
View GitHub Profile
#!/bin/bash
set -e
set -x
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt update
{
"name": "nodeapp",
"main": "server.js",
"scripts": {
"build": "webpack-cli"
},
"dependencies": {
"express": "^4.17.1",
"webpack": "^4.41.5"
}
[
{
"question": "Favourite programming language?",
"published_at": "2015-08-05T08:40:51.620Z",
"choices": [
{
"choice": "Swift",
"votes": 2048
}, {
"choice": "Python",
@shirk3y
shirk3y / haproxy.conf
Last active August 29, 2015 14:08
Splash pool
global
chroot /var/lib/haproxy
user haproxy
group haproxy
daemon
defaults
log global
mode http
option httplog
from lxml import etree
CLASS_EXPR = "contains(concat(' ', normalize-space(@class), ' '), ' {} ')"
def has_class(context, *classes):
"""
This lxml extension allows to select by CSS class more easily