This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Vim 9 | |
hosts: vim9 | |
become: true | |
gather_facts: false | |
vars: | |
tarball: vim-9.1.tar.bz2 | |
builddir: /usr/src/vim91 | |
vimdir: /usr/local/vim91 | |
vimexe: "{{ vimdir }}/bin/vim" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat slash-o.pl | |
#!/usr/bin/perl | |
use 5.010; | |
use strict; | |
use warnings; | |
use Benchmark ':all'; | |
my $COUNT = 10_000_000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use 5.010; | |
use strict; | |
use warnings; | |
use Benchmark ':all'; | |
my $COUNT = 10_000_000; | |
say "$COUNT iterations under $^V"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SOLRJOB=$1 | |
SOLRHOST=$2 | |
if [[ $SOLRJOB == "" || $SOLRHOST == "" ]] ; then | |
echo 'Usage: solr-exporter.sh SOLRJOB SOLRHOST' | |
echo ' Ex: solr-exporter.sh solrdev volley.flr.follett.com' | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use warnings; | |
use strict; | |
use 5.010; | |
use Test::More 'no_plan'; | |
use Test::Deep qw( cmp_bag ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import re | |
status = re.compile('^(\\+\\+\\+|---) \\s+ ([^\t]+) \t .+ \t \\((.+?)\\)$', re.X) | |
deletes = [] | |
adds = [] | |
diffs = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Adapted from from https://github.com/hoelzro/bashrc/blob/master/colors.sh | |
function __prompt | |
{ | |
local EXIT="$?" # Stash the exit status for later. | |
# List of color variables that bash can use | |
local BLACK="\[\033[0;30m\]" # Black |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"============================================================================ | |
" General settings | |
"---------------------------------------------------------------------------- | |
set nocompatible " nocp: turn off vi compatibility | |
set undolevels=1000 " ul: lots and lots of undo | |
set history=50 " hi: size of :command history | |
set modelines=20 | |
set modeline " ml: Turn on modelines | |
set backup " keep a backup file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package TW::Functional; | |
=head1 NAME | |
TW::Functional -- functions for helping write more functional code | |
=head1 WARNING | |
This module must contain no TW-specific code. These are purely abstract functions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// service.js -- Reports back the ISBNs in a the given ISBN's family. | |
'use strict'; | |
const oracledb = require('oracledb'); | |
const http = require('http'); | |
const url = require('url'); | |
const hostname = 'hostname.com'; | |
const port = 42000; |
NewerOlder