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
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-field/core-field.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-input/core-input.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
= OpenOil - Structr | |
== Setup Data Model | |
[source, cypher] | |
---- | |
CREATE (company:Company { name: 'BP Exploration (Epsilon) Limited', aliases: 'BP Exp, BP Exp LTD', oc_id: 'gb/01004984', headquarters:'', people:'', founded_in:'1992', website:'', document:''}) | |
CREATE (country:Country { name: 'Nigeria'}) | |
CREATE (companytype:CompanyType { name:'Limited Liability Company'}) | |
CREATE (contract:Contract { name: 'Another Nigeria Indirect Prod Contract', official_title:'', description:'', value_usd:'', value_currency_amount:'10000000', value_currency_unit: 'EUR', announced_at:'2012-08', started_at:'2014', ended_at: '', duration_months:'48', field:'', license_area:''}) |
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
= OpenOil - Structr | |
== Setup Data Model | |
[source, cypher] | |
---- | |
CREATE (company:Company { name: 'BP Exploration (Epsilon) Limited', aliases: 'BP Exp, BP Exp LTD', oc_id: 'gb/01004984', headquarters:'', people:'', founded_in:'1992', website:'', document:''}) | |
CREATE (country:Country { name: 'Nigeria'}) | |
CREATE (companytype:CompanyType { name:'Limited Liability Company'}) | |
CREATE (contract:Contract { name: 'Another Nigeria Indirect Prod Contract', official_title:'', description:'', value_usd:'', value_currency_amount:'10000000', value_currency_unit: 'EUR', announced_at:'2012-08', started_at:'2014', ended_at: '', duration_months:'48', field:'', license_area:''}) |
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
//setup | |
[source,cypher] | |
---- | |
create (_0:`Company` {`name`:"Child Company Name"}) | |
create (_1:`Company` {`name`:"Parent Company Name"}) | |
create (_2:`Company` {`name`:"Air BP Albania SHA"}) | |
create (_3:`Company` {`name`:"BP Holdings International B V"}) | |
create (_4:`Company` {`name`:"Gas Link S A"}) | |
create (_5:`Company` {`name`:"Dinarel S 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
= OpenOil - BP Data Import (100 Records) | |
== Setup | |
//setup | |
//hide | |
[source, cypher] | |
---- | |
LOAD CSV FROM 'https://raw.githubusercontent.com/iilab/openoil/master/data/BP100.csv' AS line | |
MERGE (c:Company { name: line[0], ID: line[6], sourceURL: line[7], sourcePubDate: line[9]}) |
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/python | |
import os | |
import json | |
def update(module, state, name, auto, hotplug, iface_type, addr_family, address, | |
netmask, nameservers, gateway, provider): | |
try: | |
fd = open('/etc/network/interfaces') |
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
Install on Ubuntu | |
================= | |
Looked at the OBP-VM instructions to setup from source. | |
Social Finance (aka OBP Server) | |
------------------------------- | |
cd /opt | |
git clone https://github.com/OpenBankProject/Social-Finance.git obps |
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
# cd to wordpress install root | |
# only the lunix user account should be able to write files. | |
chown -R wp_user? . | |
# the apache process should be able to read files. | |
chmod -R 750 . | |
chgrp -R apache . | |
#uploads folder needs apache to be able to write | |
chmod -R 770 ./wp-content/uploads/ |
NewerOlder