Skip to content

Instantly share code, notes, and snippets.

View jonasbn's full-sized avatar
🐙
conducting sub-optimal multitasking

Jonas Brømsø jonasbn

🐙
conducting sub-optimal multitasking
View GitHub Profile
#!/bin/sh
# script to change the dynamic lib paths and ids for oracle instant client
# exes and libs
# REF: http://www.nntp.perl.org/group/perl.dbi.users/2013/04/msg36561.html
# proces all the executable files in this directory
for exe in sqlplus adrci genezi uidrvci
do
echo "adjusting executable $exe"
@jonasbn
jonasbn / changeOracleLibs.sh
Last active January 23, 2017 13:46
script to change the dynamic library paths and ids for oracle instant client executables and libraries
#!/bin/sh
# script to change the dynamic library paths and ids for oracle instant client executables and libraries
# REF: http://blog.caseylucas.com/2013/03/03/oracle-sqlplus-and-instant-client-on-mac-osx-without-dyld_library_path/
# proces all the executable files in this directory
find . -maxdepth 1 -type f \( -perm -1 -o \( -perm -10 -o -perm -100 \) \) -print | while read exe
do
echo "adjusting executable $exe"
baseexe=`basename $exe`
@jonasbn
jonasbn / CONTRIBUTING.md
Last active June 1, 2021 16:07
Generic contribution guidelines (CONTRIBUTING.md)

Contributing

These are the guidelines for contributing to this repository.

Issues

File an issue if you think you've found a bug. Please describe the following:

  1. What version of the involved component was used
  2. What environment was the component used in (OS, Perl version etc.)
@jonasbn
jonasbn / task1.py
Last active October 8, 2016 08:03
Nordea task 1, GOTOCopenhagen 2016
#!/usr/bin/env python
import re
import unittest
import string
def isSubstring (s1, s2):
# We do the matching
result = re.search(s2, s1)
@jonasbn
jonasbn / travis.yml
Last active December 16, 2016 08:08
Travis configuration for Github Travis when using Dist::Zilla
sudo: false # Migrating from legacy to container-based infrastructure for Travis
# Ref: http://docs.travis-ci.com/user/migrating-from-legacy/
language: perl
perl:
- "5.22"
- "5.20"
- "5.18"
- "5.16"
- "5.14"
- "5.12"
@jonasbn
jonasbn / dist.ini
Last active August 29, 2015 14:27
Skeleton dist.ini for Dist::Zilla
name =
author = Jonas B. Nielsen <[email protected]>
license = Artistic_2_0
copyright_holder = Jonas B. Nielsen
[@Basic]
[VersionFromModule]
[GitHub::Meta]
@jonasbn
jonasbn / build-cpanfile.sh
Created August 14, 2014 12:28
Build a cpanfile file from Module::Build requirements specified in Build.PL
#!/bin/bash
./Build prereq_report | perl -pi -e 'm/([\w:]+)\s+([\d\.]+)\s+/; if ($1) { print STDERR "requires '\''$1'\''"; print STDERR ", '\''$2'\''" if $2; print STDERR ";\n" }' > /dev/null
@jonasbn
jonasbn / critic.t
Created August 2, 2014 21:00
Test::Perl::Critic test
# Courtesy of Jeffrey Ryan Thalhammer
# http://search.cpan.org/~thaljef/Test-Perl-Critic/lib/Test/Perl/Critic.pm
# The severity parameter interpretation was added by jonasbn
# See: http://logiclab.jira.com/wiki/display/OPEN/Test-Perl-Critic
use strict;
use warnings;
use File::Spec;
use Test::More;
@jonasbn
jonasbn / changes.t
Created August 2, 2014 20:59
Test::CPAN::Changes test
use strict;
use warnings;
use Test::More;
eval 'use Test::CPAN::Changes';
plan skip_all => 'Test::CPAN::Changes required for this test' if $@;
changes_ok();