Skip to content

Instantly share code, notes, and snippets.

View ahmed-bacha's full-sized avatar

AAB ahmed-bacha

View GitHub Profile
@ahmed-bacha
ahmed-bacha / infra-secret-management-overview.md
Created August 1, 2016 13:22 — forked from maxvt/infra-secret-management-overview.md
Infrastructure Secret Management Software Overview

Currently, there is an explosion of tools that aim to manage secrets for automated, cloud native infrastructure management. Daniel Somerfield did some work classifying the various approaches, but (as far as I know) no one has made a recent effort to summarize the various tools.

This is an attempt to give a quick overview of what can be found out there. The list is alphabetical. There will be tools that are missing, and some of the facts might be wrong--I welcome your corrections. For the purpose, I can be reached via @maxvt on Twitter, or just leave me a comment here.

There is a companion feature matrix of various tools. Comments are welcome in the same manner.

2015-01-29 Unofficial Relay FAQ

Compilation of questions and answers about Relay from React.js Conf.

Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).

@ahmed-bacha
ahmed-bacha / Howto.md
Created November 9, 2015 21:05 — forked from n1k0/Howto.md
CasperJS test cli hooks example

Put test1.js and test2.js into a tests/ directory, then run the suite:

$ casperjs test tests/ --pre=pre.js --includes=inc.js --post=post.js
Test file: /Users/nperriault/tmp/pre-inc/pre.js                                 
Hey, I'm executed before the suite.
Test file: /Users/nperriault/tmp/pre-inc/tests/test1.js                         
# this is test 1
Hi, I've been included.
PASS Subject is strictly true
# find head commit
git reflog
# now reset hard - where N is the head commit found in the reflog
git reset --hard HEAD@{N}
{"_id":"30429c526ba7f23e7d5b","title":"Tarte aux fruits","description":"Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression. Le Lorem Ipsum est le faux texte standard de l'imprimerie depuis les années 1500, quand un peintre anonyme assembla ensemble des morceaux de texte pour réaliser un livre spécimen de polices de texte. Il n'a pas fait que survivre cinq siècles, mais s'est aussi adapté à la bureautique informatique.","duree":"40 MIN","portions":4,"categorie":"Plat","stared":["ahmed-bacha","nbouherrou"],"visites":44,"ingredients":[{"nom":"NAME","quantite":200,"unite":"Gramme"},{"name":"NAME","quantite":5,"unite":"Unit"}],"commentaires":[{"user":"ahmed","message":"Hello world"}],"image":"base64"}
{
"_id": "68818fc1fcf48da1fb74",
"title": "Tarte au chocolat",
"description": "Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression. Le Lorem Ipsum est le faux texte standard de l'imprimerie depuis les années 1500, quand un peintre anonyme assembla ensemble des morceaux de texte pour réaliser un livre spécimen de polices de texte",
"duree": "40 MIN",
"portions": 4,
@ahmed-bacha
ahmed-bacha / file1.json
Created March 15, 2015 22:28
the description for this gist
{ 'id' : 212, 'name' : doe }
Test, Abdelkrim added ...
@ahmed-bacha
ahmed-bacha / Neo4JCleanDB.txt
Created February 8, 2015 14:12
Neo4J clean DB from console
MATCH (n)
OPTIONAL MATCH (n)-[r]-()
DELETE n,r
package org.pri.controller;
import java.io.File;
import org.neo4j.graphdb.Direction;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.Relationship;
import org.neo4j.graphdb.RelationshipType;
import org.neo4j.graphdb.Transaction;