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/sh | |
# | |
# Script to help users in version control in a shared codebase | |
# and a single user account. It will parse a USERS_FILE to | |
# fill the proper committer info and push changes. Pull and | |
# merges are not used. Pushes are forced because the main codebase | |
# is the work-tree and not the upstream code. | |
# |
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 | |
usage() { | |
echo "" | |
echo "USAGE:" | |
echo "" | |
echo " $0 [ OPTIONS and PARAMETERS ]" | |
echo "" | |
echo "OPTIONS:" | |
echo "" |
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/sh | |
usage() { | |
echo "" | |
echo "USAGE:" | |
echo "" | |
echo " Run as root on virtual environment:" | |
echo " $0" | |
echo "" | |
echo "RESULTS:" |
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 | |
DBFILE=~/.local/share/shotwell/data/photo.db | |
PHOTODIR="~/photos" | |
STRUCTURE="%Y/%m" | |
UPDATE="$(mktemp -d "${TMPDIR:-/tmp/}$(basename 0).XXXXXXXXXXXX")/update.sql" | |
echo '' > $UPDATE | |
PHOTODIR=${PHOTODIR/#\~/$HOME} |
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 | |
THUMB_ROOT=~/.cache/shotwell/thumbs | |
MAX_PROCESSES=4 | |
i=0 | |
sqlite3 ~/.local/share/shotwell/data/photo.db \ | |
"select id||' '||filename from PhotoTable order by exposure_time desc" | | |
while read id filename; do |
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 | |
# Based on http://tinyurl.com/jmze5lw with some additions | |
# Dependencies: detox wmctrl | |
# In your VM, share the root host location "/" in $DRIVE | |
SCRIPTPATH="$(basename "$0")" | |
VMNAME="WindowsXP" | |
DRIVE="E:" |
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 | |
# | |
# Arquivo de ambiente para o Totvs Microsiga Protheus. Serve como suporte para | |
# um arquivo principal de execução disponível em: | |
# https://gist.github.com/vmassuchetto/d43886fa0726feb73b73 | |
# | |
# Definição do ambiente | |
if [ -z "$PROTHEUS_ENV" ]; then |
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 | |
# | |
# Counts the number of lines each citation appears on a tex file. | |
# | |
# Usage: | |
# | |
# ./countbib texfile.tex | |
# | |
TEXFILE=$1 |
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
""" | |
Python script to generate SolidWorks BOM lists into a database-usable parent | |
child relationship. | |
CSV data of the first column: | |
"<parent>.<child>.<subchild>.<subsubchild>" | |
Usage: |
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
Sub CopyAllH() | |
Dim wrk As Workbook 'Workbook object | |
Dim sht As Worksheet 'Object for handling worksheets in loop | |
Dim trg As Worksheet 'Master Worksheet as a target | |
Dim col As Integer 'Column count | |
Dim i As Integer 'Some index | |
Dim rng As Range 'Range object | |
Dim rng1 As Range 'Range object | |
Dim rng2 As Range 'Range object |
NewerOlder