Skip to content

Instantly share code, notes, and snippets.

View tompurl's full-sized avatar

Tom Purl tompurl

View GitHub Profile
@tompurl
tompurl / chrome-headless.robot
Created February 14, 2019 18:37 — forked from nottyo/chrome-headless.robot
Selenium2Library with Chrome Headless Mode
*** Settings ***
Library Selenium2Library
*** Variables ***
${url} https://medium.com/@nottyo/
@{chrome_arguments} --disable-infobars --headless --disable-gpu
${page_text} Traitanit
${timeout} 10s
*** Test Cases ***
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
#!/bin/bash
set -e
USAGE="$0 [-n iteration_number] [-v] [-h] testfile destination_server"
die() {
echo "$@" 1>&2
echo $USAGE 1>&2
exit 1;

Keybase proof

I hereby claim:

  • I am tompurl on github.
  • I am tompurl (https://keybase.io/tompurl) on keybase.
  • I have a public key ASAFyOzoqHkkOZ6V6d1L5M1E9XZn3eZjPehfbaitpnlMyAo

To claim this, I am signing this object:

@tompurl
tompurl / cowsay-server-02.rb
Created November 28, 2013 03:58
Rev 2 of my cowsay serv.
require 'socket'
module CowSay
class Server
def initialize(port)
# Create the underlying socket server
@server = TCPServer.new(port)
puts "Listening on port #{@server.local_address.ip_port}"
end
@tompurl
tompurl / cowsay-client-01.rb
Created November 28, 2013 03:50
This is my first stab at a simple socket client to go against my cowsay server.
require 'socket'
module CowSay
class Client
class << self
attr_accessor :host, :port
end
# Convert our arguments into a document that we can send to the cowsay
#>server.
@tompurl
tompurl / server-01.rb
Last active December 28, 2015 03:29
Cowsay Socket Server - Iteration 1
require 'socket'
module CowSay
class Server
def initialize(port)
# Create the underlying socket server
@server = TCPServer.new(port)
puts "Listening on port #{@server.local_address.ip_port}"
end
@tompurl
tompurl / cupsd.conf
Created April 28, 2013 18:42
cupsd.conf file as of 4/28/13
LogLevel warn
MaxLogSize 0
Port 631
Listen /var/run/cups/cups.sock
Browsing On
BrowseOrder allow,deny
BrowseRemoteProtocols
BrowseAddress @LOCAL
BrowseAllow all
BrowseLocalProtocols CUPS dnssd
@tompurl
tompurl / scratch.lisp
Last active September 28, 2023 10:51
Common Lisp function that converts a list into a string of concatenated characters.
(defun numlist-to-string (lst)
(when lst
(concatenate 'string
(write-to-string (car lst)) (numlist-to-string (cdr lst)))))
; Convert a list of numbers into a number
; (list 1 2 3 4) => 1234
(parse-integer (numlist-to-string (list 1 2 3 4)))