Skip to content

Instantly share code, notes, and snippets.

View katanagari7c1's full-sized avatar

Javi Armendáriz katanagari7c1

  • Pamplona, Spain
View GitHub Profile
@katanagari7c1
katanagari7c1 / Brewfile
Last active October 24, 2019 03:43
Brew file to install everything I need in OSX
# Brewfile
# To install the command:
# > brew tap Homebrew/bundle
#
# To install everything:
# > brew bundle
#
# Where to install all casks?
cask_args appdir: '~/Applications'
# Taps
@katanagari7c1
katanagari7c1 / migrate-to-log4j2.sh
Last active October 30, 2018 08:29
Upgrade Openbravo+modules to use log4j2 Logger classes
#!/bin/bash
echo -e "Migrating java files to log4j 2.x API"
echo -e "====================================="
# Check if we are in Openbravo root
CHECKDIR=$(ls -1 | grep modules)
if [ "$CHECKDIR" != "modules" ]
then
echo "This script should be executed inside Openbravo root directory"
@katanagari7c1
katanagari7c1 / list-modules-with-changes.py
Last active July 6, 2018 11:27
Lists all Openbravo modules with pending Mercurial changes
#!/usr/bin/env python3
import os
import subprocess
print('Current directory: {}'.format(os.getcwd()))
if not os.getcwd().endswith('modules'):
print('Place this script in modules/')
exit(1)
modPath = os.getcwd()