Skip to content

Instantly share code, notes, and snippets.

View eleaar's full-sized avatar

Daniel Krzywicki eleaar

  • Fabernovel Technologies
  • Paris
View GitHub Profile
@eleaar
eleaar / .bash_profile
Last active July 11, 2017 12:39 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@eleaar
eleaar / Remove all git tags
Created July 21, 2017 14:06 — forked from okunishinishi/Remove all git tags
Delete all git remote tags
#Delete local tags.
git tag -l | xargs git tag -d
#Fetch remote tags.
git fetch
#Delete remote tags.
git tag -l | xargs -n 1 git push --delete origin
#Delete local tasg.
git tag -l | xargs git tag -d
@eleaar
eleaar / schema.json
Last active September 14, 2017 13:18
Schema specs
{
"scalars": {
"/core/meta/latest/types/string": {
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "./string",
"type": "string"
},
"/core/meta/latest/types/localdate": {
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "./localdate",
/* tslint:disable readonly-array no-any max-line-length unified-signatures */
import { Option, Some, None } from 'space-lift'
/**
* This file defines two utility types for arrays:
*
* - SafeArray where elements may be undefined, to force checking that
* - NonEmptyArray which guarantees that there is at least one element
*/
// we need to copy everything because of the contravariance of the operators...
@eleaar
eleaar / WatchDemo.scala
Last active November 10, 2018 13:04
Watch collection with reactive mongo
import scala.concurrent.{Await, TimeoutException}
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.duration._
import reactivemongo.api._
import reactivemongo.api.collections.bson.BSONCollection
import reactivemongo.bson.BSONDocument
object WatchDemo {
@eleaar
eleaar / keybindings.md
Created July 24, 2019 09:02 — forked from jimmyhillis/keybindings.md
iTerm 2 Mac-ready key binding additions.

Standard bindings

  • Move left between words: ⌥← | send escape sequence | b
  • Move right between words: ⌥→ | send escapes sequence | f
  • Start of the line: ⌘← | send escape sequence | [H
  • End of the line ⌘→ | send escape sequence | [F
  • Delete previous word ⌥←Delete | send hex code | 0x1B 0x08
  • Delete entire line ⌘←Delete | send hex code | 0x15

Don't forget the amazing icons ⌘ = command and ⌥ = options/alt (why oh why?).

@eleaar
eleaar / aphp.js
Last active December 16, 2019 23:09
APHP horaires creche
/*
* lllllll_______
* _,_ llllllllllll\
* ___ / \ llllllllllll\
* \ | @ @ | llllllllllll\
* \-----oOO---Ooo-------------/
* \lllllllllllllllllllllllll/
* \lllllllllllllllllllllll/
* \lllllllllllllllllllll/
* // \