This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Export MySQL root password before installing to prevent MySQL from prompting for a password during the installation process | |
| # http://stackoverflow.com/questions/18812293/vagrant-ssh-provisioning-mysql-password | |
| echo "mysql-server mysql-server/root_password password rootpwd" | debconf-set-selections | |
| echo "mysql-server mysql-server/root_password_again password rootpwd" | debconf-set-selections | |
| # Install mysql-server and create the archivesspace database | |
| # http://archivesspace.github.io/archivesspace/user/running-archivesspace-against-mysql/ | |
| # https://gist.github.com/rrosiek/8190550 |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Update packages | |
| apt-get -y update | |
| # Install pip | |
| apt-get -y install python-pip | |
| # Upgrade it | |
| pip install --upgrade pip |
This file contains hidden or 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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure(2) do |config| | |
| config.vm.box = "hashicorp/precise32" | |
| config.vm.network "forwarded_port", guest: 8080, host: 8080 | |
| config.vm.network "forwarded_port", guest: 8089, host: 8089 |
This file contains hidden or 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
| from lxml import etree | |
| import os | |
| from os.path import join | |
| import re | |
| text = re.compile(r'\w') | |
| for filename in os.listdir(path): | |
| tree = etree.parse(join(path,filename)) | |
| titles = tree.xpath('//unittitle') |
This file contains hidden or 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
| # import what we need | |
| import csv | |
| from lxml import etree | |
| from os.path import join | |
| path = 'path/to/eads' # Enter the path to your EAD directory here | |
| normalized_file = 'path/to/exported_csv.csv' # Enter the path to the exported CSV here | |
| with open(normalized_file, 'rb') as csvfile: |
This file contains hidden or 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
| import csv | |
| import lxml | |
| from lxml import etree | |
| import os | |
| from os.path import join | |
| import re | |
| path = '/path/to/EADs' # Enter the path to your EAD directory |
This file contains hidden or 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
| #import what we need | |
| import lxml | |
| from lxml import etree | |
| import os | |
| from os.path import join | |
| import re | |
| path = 'path/to/EADs' #<-- Change this to your EAD directory path | |
This file contains hidden or 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
| import lxml | |
| from lxml import etree | |
| import os | |
| from os.path import join | |
| # Enter the path to the folder containing your EADs | |
| path = 'path/to/EADs' | |
| # Check each file in the EAD folder | |
| for filename in os.listdir(path): |
This file contains hidden or 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
| import lxml | |
| from lxml import etree | |
| import os | |
| from os.path import join | |
| # Enter the path to the folder containing your EADs | |
| path = 'path/to/EADs' | |
| # Check each file in the EAD folder | |
| for filename in os.listdir(path): |
NewerOlder