Writing
Multiple git pull in one folder containing multiple repository
for REPO in `ls`; do (cd "$REPO"; git pull); done; Source: Multiple git pull in one folder containing multiple repository
Debugging the dreaded “SEVERE: Error listenerStart” and “SEVERE: Error filterStart” Tomcat error messages
The solution is to add a logging.properties file inside WEB-INF/classes with the following: org.apache.catalina.core.ContainerBase.[Catalina].level = INFOorg.apache.catalina.core.ContainerBase.[Catalina].handlers = java.util.logging.ConsoleHandler Source: Debugging the dreaded “SEVERE: Error listenerStart” and “SEVERE: Error filterStart” tomcat error messages « Trifork Blog / Trifork: Enterprise Java, Open Source, software solutions
Git: How to rename a branch
I created a branch that had the wrong ticket number and already pushed it to the repo, so I needed rename it and keep everything intact. Here’s how: git branch -m old_branch new_branch # Rename branch locally git push origin :old_branch # Delete the old branch git push –set-upstream origin new_branch # Push the new…
osx – Command to unlock “Locked” files on OS X – Super User
chflags -R nouchg /PATH/TO/DIRECTORY/WITH/LOCKED/FILES/ Source: osx – Command to unlock “Locked” files on OS X – Super User
Maven: How to only execute certain Cucumber tags
I needed Maven to only run certain tests that had a specific tag (i.e., @regression). I couldn’t easily find information via the Cucumber website, so I’m logging it her for archiving. Note: This command also works in Jenkins via the “Goals and options” section. clean install -Dcucumber.options="–tags @regression"
Importing Apple Notes into Evernote
Just copy and paste the following into the Script Editor and viola! tell application "Notes" set theMessages to every note repeat with thisMessage in theMessages set myTitle to the name of thisMessage set myText to the body of thisMessage set myCreateDate to the creation date of thisMessage set myModDate to the modification date of thisMessage…