Skip to content

Instantly share code, notes, and snippets.

View elf-pavlik's full-sized avatar

elf Pavlik elf-pavlik

View GitHub Profile
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Last active December 13, 2022 09:27
hexagon clip-path
/**
* hexagon clip-path
*/
div
{
width: 400px;
height: 346px; /* ½√3 × width */
position: relative;
overflow: hidden;
  • I upgraded to ruby 2.2.2 since I had issues installing certain gems like nokogiri and others on ruby 1.9.3

  • I ran into an issue with polyglot which for some reason tried to require minitest: polyglot.rb:65:in require': cannot load such file -- minitest/unit (LoadError)` solution: add minitest to Gemfile

  • ran into a ruby 2.2.2 related error: dyld: Symbol not found: _rb_thread_select since ruby 2.2 this has been renamed to _rb_thread_select

@ryzy
ryzy / haproxy.cfg
Created March 13, 2016 00:23
HAProxy - essentials for HTTP/2
frontend https-in
mode tcp
bind *:443 ssl crt /etc/ssl/dummy.pem alpn h2,http/1.1
use_backend nodes-http2 if { ssl_fc_alpn -i h2 }
default_backend nodes-http
backend nodes-http
server node1 web.server:80 check
backend nodes-http2
@ChadKillingsworth
ChadKillingsworth / e2e-shadowdom.md
Last active July 6, 2023 06:54
Selenium Testing with Shadow DOM

End-to-end Testing with Shadow DOM

As the web component specs continue to be developed, there has been little information on how to test them. In particular the /deep/ combinator has been deprecated in Shadow DOM 1.0. This is particularly painful since most end-to-end testing frameworks rely on elements being discoverable by XPath or calls to querySelector. Elements in Shadow DOM are selectable by neither.

WebDriver.io

Webdriver.io has the standard actions by selectors, but also allows browser executable scripts to return an element

@jeanlouisferey
jeanlouisferey / LXD_SSH_KEY.md
Last active August 26, 2024 23:53
How to create a LXD Container with your ssh key in it (and with ssh server in the container)
@meanevo
meanevo / haproxy.cfg
Last active June 22, 2024 07:49
HAProxy without SSL Termination
#---------------------------------------------------------------------
# Global settings
#---------------------------------------------------------------------
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 2048
user haproxy
@shanecowherd
shanecowherd / Unifi Controller Docker.md
Last active May 12, 2023 15:28
Install the Unifi Controller software in a Docker container on Mac.