Skip to content

Instantly share code, notes, and snippets.

View itoche's full-sized avatar

Christophe Grosjean itoche

  • ARHS Spikeseed
  • Luxembourg
View GitHub Profile
@itoche
itoche / split.sh
Last active January 5, 2019 11:40
Split each TXT file contained in a directory into chunks of a maximum size (here 5k)
#!/bin/bash
directory=INSERT INPUT DIRECTORY HERE
output=INSERT OUTPOUT DIRECTORY HERE
mkdir $output
find $directory -type f -name '*.txt' -exec basename {} \; | while read file;
do
split -b 5k "$directory"/"$file" "$output"/"$file".
done
Sub CommentsToCells()
Dim xlapp As Object
Dim xlbook As Object
Dim xlsheet As Object
Dim i As Long
Set xlapp = GetObject(, "Excel.Application")
If Err Then
Set xlapp = CreateObject("Excel.Application")
End If
On Error GoTo 0
#!/bin/bash
# A wrapper for the docker binary. Checks to make sure the docker host is
# set before executing docker commands.
docker() {
# Start the daemon if it's not running
if [ $(boot2docker status) != 'running' ]; then