Skip to content

Instantly share code, notes, and snippets.

View DaniSancas's full-sized avatar
🏠
Working from home

Dani Sancas DaniSancas

🏠
Working from home
View GitHub Profile
set main-view-date = relative
set main-view-author = email
set main-view-id-display = yes
set main-view-commit-title-graph = v2
set refs-view-date = relative
set refs-view-author = email
set refs-view-id-display = yes
set line-graphics = utf-8
@DaniSancas
DaniSancas / quiz.py
Created March 25, 2022 17:51
Random quiz (4 candidate answers) in Python3 to practice ZSH keybindings
import random
all_quizzes = {
"Ctrl+a": "Beginning of line",
"Ctrl+e": "End of line",
"Ctrl+f": "Forward one character",
"Ctrl+b": "Back one character",
"Ctrl+h": "Delete one character (backwards)",
"Alt+f": "Forward one word",
"Alt+b": "Back one word",
@DaniSancas
DaniSancas / neo4j_cypher_cheatsheet.md
Created June 14, 2016 23:52
Neo4j's Cypher queries cheatsheet

Neo4j Tutorial

Fundamentals

Store any kind of data using the following graph concepts:

  • Node: Graph data records
  • Relationship: Connect nodes (has direction and a type)
  • Property: Stores data in key-value pair in nodes and relationships
  • Label: Groups nodes and relationships (optional)
@DaniSancas
DaniSancas / ROOT .bashrc
Last active March 26, 2016 22:33
BASH Shell colors
# Location: /root/.bashrc
# Change PS1 value to the following:
# Custom color (red)
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;31m\]\$\[\033[00m\] '