I hereby claim:
- I am nbari on github.
- I am nbari (https://keybase.io/nbari) on keybase.
- I have a public key whose fingerprint is 38A2 1ADF 535C 36C3 9EF0 320F 4480 2F8C 91F6 6E10
To claim this, I am signing this object:
# This file is managed by Puppet. DO NOT EDIT. | |
# This file was generated by Puppet's ihrwein-syslog_ng module | |
@version: 3.8 | |
@module mod-java | |
@include "scl.conf" | |
options { | |
chain_hostnames(yes); | |
keep_hostname(no); | |
log_fifo_size(1000); | |
normalize_hostnames(yes); |
#!/bin/sh | |
# immortaldir start-stop-daemon | |
set -e | |
NAME=immortaldir | |
PIDFILE=/var/run/$NAME.pid | |
DAEMON=/usr/bin/immortaldir | |
DAEMON_OPTS="/etc/immortal" |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/exec" | |
"path/filepath" |
# Elasticsearch Rolling restart using Ansible | |
# | |
# Perform a rolling restart of the elasticsearch nodes and wait for the cluster | |
# to stabilize before continuing processing nodes. | |
# | |
# The handlers are chained together using notify to perform the following process: | |
# | |
# 1. Disable shard allocation on the cluster | |
# 2. Restart the elasticsearch node process | |
# 3. Wait for the node to rejoin the cluster |
.PHONY: all test clean | |
GLOBAL="spirituosen" | |
all: | |
@echo ${GLOBAL} | |
test: | |
$(eval GLOBAL="trinken") | |
@echo ${GLOBAL} |
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"time" | |
v "github.com/nbari/violetear" | |
) |
// HTTP/2 Push example using violetear | |
// | |
// Create certificate with: | |
// https://golang.org/src/crypto/tls/generate_cert.go | |
// go run generate_cert.go -host localhost,127.0.0.1 (will create cer.pem and key.pem) | |
// | |
// To test | |
// go run main.go and open browser using https://localhost:8000 | |
package main |
I hereby claim:
To claim this, I am signing this object:
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
driver = webdriver.Chrome() | |
driver.get("https://search.cro.ie/company/CompanySearch.aspx") | |
inputElement = driver.find_element_by_id("ctl00_ContentPlaceHolder1_textCompanyName") | |
inputElement.send_keys("limo") | |
inputElement.send_keys(Keys.ENTER) | |
links = driver.find_elements_by_xpath("//*[@id='ctl00_ContentPlaceHolder1_GridView1']/tbody/tr/td/a") |
// helpful links: | |
// https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man2/EV_SET.2.html | |
// http://julipedia.meroh.net/2004/10/example-of-kqueue.html | |
// create kqueue | |
kq, err := syscall.Kqueue() | |
if err != nil { | |
log.Println("Error creating Kqueue descriptor!") | |
return | |
} |