View dem1cso.csv
Number DEP SHALL_PS
DEP 37.00.10.14-Gen. Metocean 26
DEP 37.01.10.11-Gen. Fire and Blast 12
DEP 80.00.10.12-Gen. Offshore Layout 11
DEP 37.17.10.11-Gen. Temporary Refuge 23
DEP 37.01.10.11-Gen. Topside Structures 3
DEP 37.19.00.30-Gen. Fixed Steel Structures 4
DEP 37.19.00.14-Gen. Seismic 1
DEP 80.80.00.10-Gen. Life and Rescue Boats 27
View tlp-ris.csv
Platform Operator Water depth (m) Year installed Riser dia. (in) Riser type
Jolliet MC Offshore Petroleum 536 1989 10 ID Flex
Auger Shell 873 1994 16
Mars Shell 894 1996 24
Ram-Powell Shell 980 1997 12
Morpeth Eni 518 1998 12
Ursa Shell 1159 1999 18 SCR
Allegheny Eni 1009 1999 14 SCR
Marlin BP 987 1999 10
Typhoon Chevron 639 2001 12 SCR
View pdf-compess.sh
#!/usr/bin/env sh
# ref: https://tex.stackexchange.com/questions/142455/xetex-xdvipdfmx-option-to-reduce-all-graphics-to-300dpi
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=file-compressed.pdf file.pdf
View w2p.bat
echo off
for %%X in (*.doc) do cscript.exe //nologo word2pdf.js "%%X"
View zsh.md
  1. Search for edit env in the Start menu search to find Edit environment variables for your account. Click on it.

  2. Click New... in User variables.. and in the following menu, enter:

     Variable name : SHELL
     Variable value: /usr/bin/zsh
    

    Press OK, and OK.

  3. Close and restart Cygwin Terminal, and it should start with zsh.

View fwpdf.py
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
2014 ckunte
'''
import os
import platform
platforms = os.walk('.').next()[1]
for platform in platforms:
View Makefile
# Makefile for backup and restore routines
# 2017 ckunte
SRCE=/Volumes/643
CPRJ=cproj
PPRJ=pproj
CREF=cref
PREF=pref
DEST=/Volumes/CK240
View scripting-replies.ahk
; Scripting replies in Outlook 2016 with AutoHotkey
; Hit Ctrl + Win + r to create a reply email (template) with salutation to sender's
; First Name from selected / opened email in Microsoft Outlook, which looks like this:
;
; Hi <FirstName>,
;
; Thank you for your email.
;
; <Signature appears here, if set-up in Outlook>
;
View frontmatter.sh
#!/usr/bin/env bash
# Frontmatter -- 2017 ckunte
# Prepends `title =` to 1st line in all files
for f in *;
do sed '1i\
title = ' < $f > tmp_$f ;
mv tmp_$f $f ;
done
# Prepends `date =` to 2nd line in all files
for f in *;
View cf.sh
#!/usr/bin/env zsh
autoload -U zmv
# Safety first: Always use -n switch to test changes before commit.
# Clean up file names in subdirectories and remove special characters
zmv -n '(**/)(*)' '$1${2//[^A-Za-z0-9.-]/_}'
# Replace spaces in filenames and folders with a hyphen
zmv -n '* *' '$f:gs/ /-'