Skip to content

Instantly share code, notes, and snippets.

View tdonohue's full-sized avatar

Tim Donohue tdonohue

View GitHub Profile
@tdonohue
tdonohue / ConsoleZ-PowerShell-Git-for-Windows.md
Last active November 19, 2022 03:36
ConsoleZ + PowerShell + Posh-Git + Git for Windows (with SSH Agent Forwarding!)

Integrating ConsoleZ + Powershell + Git for Windows + posh-git (with SSH agent forwarding + Vagrant)

Tested on: Windows 10


This setup includes the following:

  • Using ConsoleZ for your terminal (This is optional. If you don't want it, skip anything having to do with ConsoleZ and just use PowerShell)
  • Running PowerShell behind the scenes
  • Installing Git for Windows + posh-git, to provide git commands (and ssh) to PowerShell
  • Auto-starting posh-git's SSH-Agent for SSH forwarding to remote servers, VMs, Vagrant, etc.
@tdonohue
tdonohue / Window-Atom-Tricks.md
Last active June 21, 2021 15:27
Windows + Atom + Vagrant tricks

Editing files in Vagrant using your local copy of Atom

In case you want to have an IDE locally, but have your Development environment be on a VM

  1. Install Atom on your local (host) machine: https://atom.io/
  2. Install the "remote-sync" package: https://atom.io/packages/remote-sync
  3. Ensure Vagrant is running (e.g. vagrant up)
  4. Create an empty directory on your local (host) machine that you want to "sync" with a directory on the Vagrant VM
  5. Open that empty directory in Atom
  6. Right click on it, select "Remote Sync -> Configure"
@tdonohue
tdonohue / GoogleGroupsMigrate.md
Last active October 3, 2016 14:31
Migrate Mailing Lists from SourceForge to GoogleGroups
@tdonohue
tdonohue / gist:423f173bfcc2baec76ce
Last active August 29, 2015 14:16
Sample shibboleth2.xml configuration for testshib.org + DSpace
<!-- *** Sample Shibboleth Settings for http://www.testshib.org/ *** -->
<!-- This provides a simple sample of how you could configure -->
<!-- shibboleth2.xml for DSpace sites. -->
<!-- TO ENABLE: You'd need to specify "applicationId" as "testshib" in -->
<!-- your mod_shib settings, e.g. -->
<!-- <Location /> -->
<!-- ... -->
<!-- ShibRequestSetting applicationId testshib -->
<!-- </Location> -->
<ApplicationOverride id="testshib" entityID="http://mydspace.edu/shibboleth"
@tdonohue
tdonohue / gist:28989d4d73d27265a8b8
Created January 15, 2015 17:56
Third party licenses Profile
Run by doing: "mvn clean verify -Dthird.party.licenses=true"
<!-- Generate a list of all THIRD PARTY licenses which are in use by DSpace -->
<profile>
<id>third-party-licenses</id>
<activation>
<activeByDefault>false</activeByDefault>
<!-- This profile should ONLY be active when user specifies
-Dthird.party.licenses=true on command-line. -->
@tdonohue
tdonohue / gist:7815940
Created December 5, 2013 23:22
My Apache mod_shib sample setup for DSpaceDirect (using mod_proxy to redirect to Tomcat via port 8009).
## WARNING THIS IS NOT YET IN PRODUCTION. IT SEEMS TO WORK IN TESTING THOUGH
<VirtualHost *:80>
ServerName test.dspacedirect.org
## Logging Settings ##
ErrorLog ${APACHE_LOG_DIR}/test.dspacedirect.org-error.log
CustomLog ${APACHE_LOG_DIR}/test.dspacedirect.org-access.log combined
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
@tdonohue
tdonohue / gist:3946706
Created October 24, 2012 15:17
Dry Run issues
[INFO] Not generating release POMs
[INFO] Executing preparation goals - since this is simulation mode it is running against the original project, not the rewritten ones
[INFO] Executing goals 'clean verify'...
[INFO] Executing: cmd.exe /X /C ""C:\Program Files\Apache Software Foundation\apache-maven-3.0.3\bin\mvn" -s C:\Users\Tim\AppData\Local\Temp
\release-settings3479472133434842295.xml clean verify --no-plugin-updates -Psonatype-oss-release -P dspace,dspace-api,dspace-services,dspace
-oai,dspace-jspui,dspace-sword,dspace-swordv2,dspace-xmlui,dspace-lni"
[WARNING] Command line option -npu is deprecated and will be removed in future Maven versions.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
@tdonohue
tdonohue / mvn-error
Created October 23, 2012 21:36
Mvm error
[INFO] ------------------------------------------------------------------------
[INFO] Building DSpace XML-UI (Manakin) :: Local Customizations 3.0-rc2
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.dspace.modules:additions:jar:3.0-rc2 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] DSpace Parent Project ............................. SUCCESS [18.386s]
[INFO] DSpace Services Framework :: API and Implementation SUCCESS [41.185s]
[INFO] DSpace Kernel :: API and Implementation ........... SUCCESS [2:14.349s]
@tdonohue
tdonohue / 3.0-rc2 dry run
Created October 23, 2012 20:33
Dry Run Results
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] DSpace Parent Project ............................. SUCCESS [40.255s]
[INFO] DSpace Services Framework :: API and Implementation SUCCESS [17.561s]
[INFO] DSpace Kernel :: API and Implementation ........... SUCCESS [2:24.250s]
[INFO] DSpace XML-UI (Manakin) ........................... SUCCESS [46.337s]
[INFO] DSpace Addon Modules .............................. SUCCESS [0.567s]
[INFO] DSpace XML-UI (Manakin) :: Local Customizations ... SUCCESS [22.331s]
[INFO] DSpace LNI ........................................ SUCCESS [16.184s]
@tdonohue
tdonohue / dspace.cfg-diff
Created October 3, 2012 14:58
Differences between (a) 1.8.x dspace.cfg and (b) 3.x dspace.cfg (Output of: git diff dspace-1_8_x -- dspace/config/dspace.cfg)
diff --git a/dspace/config/dspace.cfg b/dspace/config/dspace.cfg
index 8365c30..7924248 100644
--- a/dspace/config/dspace.cfg
+++ b/dspace/config/dspace.cfg
@@ -13,22 +13,24 @@
#
-#---------------------------------------------------------------#
-#------------------GENERAL CONFIGURATIONS-----------------------#