Full Request / Response Format and documentation can be read here: http://jsonapi.org/format/
POST https://api.eversport.at/v2/venues/1234/orders
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
{
"links": {
#!/bin/bash | |
dir1="/tmp/dir1" | |
dir2="/tmp/dir2" | |
IFS=$'\n' | |
for file in $(grep -Ilsr -m 1 '.' "$dir1"); do diff -q --exclude="cache" "$file" "${file/${dir1}/${dir2}}" 2> /dev/null; done |
/** GRANT [type of permission] ON [database name].[table name] TO ‘[username]’@'localhost’ IDENTIFIED BY 'some_pass' WITH GRANT OPTION; **/ | |
GRANT ALL PRIVILEGES ON DATABASE.* TO 'newuser'@'localhost' IDENTIFIED BY 'some_pass'; | |
FLUSH PRIVILEGES; | |
/** BACKUP USER **/ | |
GRANT SELECT,LOCK TABLES ON *.* TO 'backup'@'localhost' IDENTIFIED BY 'PASS'; |
[Unit] | |
Description=MySQL Server | |
After=syslog.target | |
After=network.target | |
[Service] | |
Type=simple | |
PermissionsStartOnly=true | |
ExecStartPre=/bin/mkdir -p /var/run/mysqld | |
ExecStartPre=/bin/chown mysql:mysql -R /var/run/mysqld |
var MagentoAPI = require('magento'); | |
var util = require('util'); | |
var magento = new MagentoAPI({ | |
host: 'wunderl.sernji.com', | |
port: 80, | |
path: '/api/xmlrpc/', | |
login: 'user', | |
pass: 'password' | |
}); |
Full Request / Response Format and documentation can be read here: http://jsonapi.org/format/
POST https://api.eversport.at/v2/venues/1234/orders
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
{
"links": {
// Create "Location A"
CREATE
CREATE (year2014:Year{value:2014}),
(year2014)-[:hasMonth]->(january:January:Month{name:"January",value:1}),
CREATE (locationA:Location{name:"location A"}),
(locationA)-[:hasOfficeHours]->(officeHours:OfficeHours),
(officeHours)-[:year]->(year:Year{value:2014}),
(year)-[:month]->(month:Month{value:3,name:"March"}),
(month)-[:day]->(day24:Day{value:24, name:"Monday"}),
(day24)-[:hasInterval]->(:Interval{from:8,to:12}),
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
rewrite ^ http://www.example.com permanent; | |
} | |
server { | |
server_name www.example.com | |
root /usr/share/nginx/html; | |
index index.html; |
#!/bin/bash | |
IPT="/sbin/iptables" | |
# Server IP | |
SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')" | |
# Your DNS servers you use: cat /etc/resolv.conf | |
DNS_SERVER="8.8.4.4 8.8.8.8" | |
# Allow connections to this package servers |