Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Dani Sancas DaniSancas

🏠
Working from home
View GitHub Profile
View .tigrc
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 Mar 25, 2022
Random quiz (4 candidate answers) in Python3 to practice ZSH keybindings
View quiz.py
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 Jun 14, 2016
Neo4j's Cypher queries cheatsheet
View neo4j_cypher_cheatsheet.md

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 Mar 26, 2016
BASH Shell colors
View ROOT .bashrc
# 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\] '