Get the metadata and contents of all files in a target Github repo using GraphQL
Github V4 GraphQL API
// MATCH orphan nodes in Neo4J | |
MATCH (node) | |
WHERE NOT( (node)-[]-() ) | |
RETURN node | |
// DELETE orphan nodes in Neo4J | |
MATCH (node) | |
WHERE NOT( (node)-[]-() ) | |
DELETE node |
{ | |
"Version": "2012-10-17", | |
"Id": "Policy1537184900949", | |
"Statement": [ | |
{ | |
"Sid": "Public Read Access", | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": "s3:GetObject", | |
"Resource": "arn:aws:s3:::<BUCKET-NAME>/*" |
I hereby claim:
To claim this, I am signing this object:
+# Uses Python3 | |
+import json | |
+ | |
+# Generate a response for the browser | |
+def _generate_response(status, body): | |
+ return { | |
+ 'statusCode': status, | |
+ 'headers': { | |
+ 'Access-Control-Allow-Origin': '*', | |
+ 'X-Requested-With': '*', |
Download the youtube video using http://www.savido.net
Create a palette from the video:
ffmpeg -y -ss 13 -t 6 -i videoplayback.mp4 -vf fps=5,scale=320:-1:flags=lanczos,palettegen palette.png