Skip to content

Instantly share code, notes, and snippets.

Avatar

Tom Purl tompurl

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

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:

View fox-valley-lug-notes-160319.org
@tompurl
tompurl / cowsay-server-02.rb
Created Nov 28, 2013
Rev 2 of my cowsay serv.
View cowsay-server-02.rb
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 Nov 28, 2013
This is my first stab at a simple socket client to go against my cowsay server.
View cowsay-client-01.rb
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 Dec 28, 2015
Cowsay Socket Server - Iteration 1
View server-01.rb
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 Apr 28, 2013
cupsd.conf file as of 4/28/13
View cupsd.conf
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 Nov 7, 2020
Common Lisp function that converts a list into a string of concatenated characters.
View scratch.lisp
(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)))