No solution
sudo pmset -a hibernatemode 0
pmset -g | grep hibernatemode
hibernatemode 0
No solution
sudo pmset -a hibernatemode 0
pmset -g | grep hibernatemode
hibernatemode 0
create index on :Node(name); | |
//load the data in raw form | |
Load csv with headers from "https://docs.google.com/spreadsheets/u/0/d/17WuC_B8RWzsSS8pw-NtY8qWeFFQGCGnCR5uXmENOFUI/export?format=csv&id=17WuC_B8RWzsSS8pw-NtY8qWeFFQGCGnCR5uXmENOFUI&gid=112267709" as csv | |
Merge (n:Node {name: csv.Name, type: csv.Type, tags: csv.Tags, link: csv.Link}); | |
// move the 'type' property to a label and remove it as a property, USING APOC (not supported in Graphgist) | |
MATCH (n:Node) | |
with n, split(n.type, ",") AS futurelabels | |
unwind futurelabels as futurelabel |
CALL apoc.schema.assert( | |
{Category:['name']}, | |
{Business:['id'],User:['id'],Review:['id']}); | |
CALL apoc.periodic.iterate(" | |
CALL apoc.load.json('file:///home/tomasi/Downloads/dataset/business.json') YIELD value RETURN value | |
"," | |
MERGE (b:Business{id:value.business_id}) | |
SET b += apoc.map.clean(value, ['attributes','hours','business_id','categories','address','postal_code'],[]) |
# List of cheatsheet for linux find. | |
# Taken from here http://alvinalexander.com/unix/edu/examples/find.shtml | |
# basic 'find file' commands | |
# -------------------------- | |
find / -name foo.txt -type f -print # full command | |
find / -name foo.txt -type f # -print isn't necessary | |
find / -name foo.txt # don't have to specify "type==file" | |
find . -name foo.txt # search under the current dir | |
find . -name "foo.*" # wildcard |
#!/bin/bash | |
# useful for platforms such as Cygwin that don't currently have GNU Parallel in their repo. | |
# prerequisite: make | |
( | |
wd=$(mktemp -d) | |
wget -nc -P $wd ftp://ftp.gnu.org/gnu/parallel/parallel-latest.tar.bz2 | |
cd $wd |
function decode-authorization-failure-message { | |
if [ $# -ne 1 ] || [ "$1" = -h ] || [ "$1" = --help ]; then | |
cat <<'EOT' | |
Usage: decode-authorization-failure-message <message> | |
Use this when Amazon gives you an "Encoded authorization failure message" and | |
you need to turn it into something readable. | |
EOT | |
return 1 | |
fi |
This is an unofficial manual for the couchdb
Python module I wish I had had.
pip install couchdb