Skip to content

Instantly share code, notes, and snippets.

View elf-pavlik's full-sized avatar

elf Pavlik elf-pavlik

View GitHub Profile
@shanecowherd
shanecowherd / Unifi Controller Docker.md
Last active May 12, 2023 15:28
Install the Unifi Controller software in a Docker container on Mac.
@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
@jeanlouisferey
jeanlouisferey / LXD_SSH_KEY.md
Last active May 5, 2024 13:32
How to create a LXD Container with your ssh key in it (and with ssh server in the container)
@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

@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
  • 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

@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;
@sandhawke
sandhawke / schema-org-overloaded-properties
Last active December 17, 2015 23:49
schema.org properties that are both an ObjectProperty and a DatatypeProperty, in the sense that their range includes both datatypes and non-datatypes
============= unit modeling
Property: schema:depth
domainIncludes: schema:Product
rangeIncludes: [ 'schema:Distance', 'schema:QuantitativeValue' ]
Property: schema:width
domainIncludes: [ 'schema:MediaObject', 'schema:Product' ]
rangeIncludes: [ 'schema:Distance', 'schema:QuantitativeValue' ]
@diegovalle
diegovalle / README.md
Last active January 8, 2024 19:24
Topojson of Mexican municipalities and states

How to create the topojson map:

curl -o estados.zip http://mapserver.inegi.org.mx/MGN/mge2010v5_0.zip
curl -o  municipios.zip http://mapserver.inegi.org.mx/MGN/mgm2010v5_0.zip
unzip estados.zip 
unzip municipios.zip
ogr2ogr states.shp Entidades_2010_5.shp -t_srs "+proj=longlat +ellps=WGS84 +no_defs +towgs84=0,0,0"
ogr2ogr municipalities.shp Municipios_2010_5.shp -t_srs "+proj=longlat +ellps=WGS84 +no_defs +towgs84=0,0,0"
topojson -o mx_tj.json -s 1e-7 -q 1e5 states.shp municipalities.shp -p state_code=+CVE_ENT,state_name=NOM_ENT,mun_code=+CVE_MUN,mun_name=NOM_MUN
@rkirsling
rkirsling / LICENSE
Last active December 23, 2023 12:54
Directed Graph Editor
Copyright (c) 2013 Ross Kirsling
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions: