Skip to content

Instantly share code, notes, and snippets.

View tsega's full-sized avatar
🏰
Working from home

Tsegaselassie Tadesse tsega

🏰
Working from home
View GitHub Profile
@tsega
tsega / dspace.log
Created June 16, 2016 21:00
Atmire MQM migration error log
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)
@tsega
tsega / gist:40adc156b5ba008fa0b3afa186a07327
Created June 20, 2016 16:54
CGSpace Connection refused error
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)
@tsega
tsega / summary_comment.html
Created August 18, 2016 06:18
Cattle Genomics Summary Link Comment to copy and paste
<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>.
@tsega
tsega / routing.js
Created November 23, 2016 06:08
Iron-Router waitOn()
// 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 () {
@tsega
tsega / items.json
Created April 2, 2017 04:59
CGSpace REST API Response
[
{
"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",
@tsega
tsega / docker-compose.yml
Last active October 16, 2017 06:01
docker4drupal edited Docker compose file
# 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
@tsega
tsega / aliases.drushrc.php
Created November 18, 2017 08:19
Drush Alias
<?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/';
@tsega
tsega / settings.local.php
Created May 12, 2018 05:10
Lando Local Settings File Drupal 8
<?php
// @codingStandardsIgnoreFile
/**
* @file
* Drupal site-specific configuration file.
*
* IMPORTANT NOTE:
* This file may have been set to read-only by the Drupal installation program.
@tsega
tsega / instructions.md
Created June 25, 2018 13:15 — forked from sveggiani/instructions.md
Configure XDebug, Visual Studio Code for a Vagrant VM

Configure XDebug, Visual Studio Code for a Vagrant VM

1. Assumptions

  • Project (Drupal) is served on /var/www/html in 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 -nee in the VM and look for the gateway address)

2. Configuration

@tsega
tsega / Working-with-GitHub-Wiki.md
Last active March 21, 2024 15:21
Working with GitHub Wiki

Cloning the Wiki

You can clone you GitHub Wiki as git repository, simply use:

git clone git@github.com:YOUR_GITHUB_USERNAME/YOUR_PROJECT_NAME.wiki.git

Notice the .wiki before the git extension at the end.

Structure

You can structure your Wiki files into any directory of your choice. However, a few things to remember:

  • The file names need to be unique