- Project (Drupal) is served on
/var/www/htmlin the Vagrant box - Local project files location:
c:\Users\username\Work\projects\my-project\repo\html - Guest machine IP is 10.0.2.2 (if this doesn't work, run
route -neein the VM and look for the gateway address)
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
| <?php | |
| // @codingStandardsIgnoreFile | |
| /** | |
| * @file | |
| * Drupal site-specific configuration file. | |
| * | |
| * IMPORTANT NOTE: | |
| * This file may have been set to read-only by the Drupal installation program. |
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
| <?php | |
| // To be placed at ~/.drush folder | |
| // drush sql-sync @PROJECT.dev @PROJECT.local | |
| // drush rsync @PROJECT.dev:%files/ @PROJECT.local:%files | |
| // local alias | |
| $local_sites = '/var/www/html/'; | |
| // development alias | |
| $dev_sites = '/var/www/html/'; |
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
| # Replace PROJECT_NAME, e.g. amber | |
| version: "2" | |
| services: | |
| mariadb: | |
| image: wodby/mariadb:10.1-2.3.3 | |
| environment: | |
| MYSQL_ROOT_PASSWORD: password | |
| MYSQL_DATABASE: PROJECT_NAME |
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
| [ | |
| { | |
| "id": 72092, | |
| "handle": "https://cgspace.cgiar.org/handle/10568/70238", | |
| "thumbnail": "https://cgspace.cgiar.org/bitstream/handle/10568/70238/beca_beanRwanda_poster_feb2016.pdf.jpg", | |
| "metadata": [ | |
| { | |
| "value": "SIDA", | |
| "element": "description", | |
| "qualifier": "sponsorship", |
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
| // Wait On one or more subscription before loading the page. | |
| Router.route("/", { | |
| name: "home", | |
| waitOn: function () { | |
| return [ | |
| Meteor.subscribe('users'), | |
| // any other subscription to wait on | |
| ]; | |
| }, | |
| action: function () { |
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
| <strong>The current topics being discussed are:</strong> | |
| What (real) examples of the application of genomic or genetic information to African livestock | |
| production systems (regardless of species) do we have to-date, and what was successful or not | |
| successful about these, and why. For a summary of information to date please click, | |
| <a href="http://cattle-genomix.net/current-use-of-genomics-genetics-in-african-livestock-systems/">here</a>. |
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
| Java stacktrace: java.net.ConnectException: Connection refused | |
| at java.net.PlainSocketImpl.socketConnect(Native Method) | |
| at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345) | |
| at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) | |
| at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) | |
| at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) | |
| at java.net.Socket.connect(Socket.java:589) | |
| at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:117) | |
| at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177) | |
| at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304) |
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
| 2016-06-16 23:07:04,427 ERROR org.flywaydb.core.internal.command.DbMigrate @ Migration of schema "public" to version 5.1.2015.12.03.3 failed! Changes successfully rolled back. | |
| 2016-06-16 23:07:04,431 ERROR org.dspace.storage.rdbms.DatabaseManager @ SQL getDataSource Error - | |
| java.sql.SQLException: Flyway migration error occurred | |
| at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:389) | |
| at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:309) | |
| at org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseManager.java:1371) | |
| at org.dspace.storage.rdbms.DatabaseManager.getDataSource(DatabaseManager.java:648) | |
| at org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:627) | |
| at org.dspace.core.Context.init(Context.java:121) | |
| at org.dspace.core.Context.<init>(Context.java:95) |
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 ruby | |
| # This require that you have ImageMagick and Ghostscript installed and available on your PATH | |
| # It also assumes you have you pdf files in `pdfs` folder | |
| # Note: Since it generates jpg's it does not handle transparency very well | |
| # modify the .jpg to .png to generate png files. | |
| Dir['pdfs/*.pdf'].each do |pdf_file| | |
| jpg_file = pdf_file.chomp(File.extname(pdf_file)) + ".jpg" | |
| system("convert -density 144 #{pdf_file}[0] -resize 200x300 #{jpg_file} ") |