Skip to content

Instantly share code, notes, and snippets.

@kosssi
kosssi / gist:6139100
Last active December 20, 2015 13:29
Formation theodo doctrine events
http://www.theodo.fr/blog/2013/11/new-events-doctrine-2-4/

Keybase proof

I hereby claim:

  • I am kosssi on github.
  • I am simonc (https://keybase.io/simonc) on keybase.
  • I have a public key whose fingerprint is 8FA5 9DB5 C9E8 8841 948A 395A ADFB 77D3 9610 34F9

To claim this, I am signing this object:

PouchDB = require 'pouchdb'
async = require 'async'
class ReplicationWithFilter
cozy: null
mobile: null
design:
_id: "_design/myfilter"
should = require('chai').should()
PouchDB = require('pouchdb')
async = require('async')
db = new PouchDB('mobile', db: require('memdown'))
remote = new PouchDB('remote', db: require('memdown'))
filter =
_id: '_design/myfilter'
filters: config: ((doc) ->
doc.type == 'ok'
).toString()

Keybase proof

I hereby claim:

  • I am kosssi on github.
  • I am kosssi (https://keybase.io/kosssi) on keybase.
  • I have a public key ASCMXHbtp1K534o2EBBaPWNu_j-9LYLg0FqHtGGlFQFzfAo

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 1ErhxLwwJzMwRXernDX8WHFuKNtTPU3sdc https://explorer.blockstack.org/address/1ErhxLwwJzMwRXernDX8WHFuKNtTPU3sdc
@kosssi
kosssi / gist:fcfbda047fa48556639e3381aa273431
Created January 22, 2018 08:12
Comparatif des capteurs de temperature
DHT12 DHT22 MTH02 SHT71
http://kandrsmith.org/RJS/Misc/Hygrometers/calib_dht22_dht11_sht71.html
@kosssi
kosssi / README.md
Last active January 30, 2018 10:09
Install Cozy on MacOS to develope application

Installation

CouchDB

docker run -d \
    --name couch \
    -p 5984:5984 \
 -v $HOME/.cozy/couch:/opt/couchdb/data \
@kosssi
kosssi / restore.md
Last active July 1, 2018 16:59
Récupération de données

Récupérer des données disparues

Prérequis

Nous allons utiliser l'utilitaire photorec contenu dans le package testdisk :

sudo apt install testdisk

Démarrer son disque en lecture seul

@kosssi
kosssi / Ubuntu 18.04
Created October 23, 2018 21:10
Installation sur Ubuntu
# Installation du capteur d'empreinte
Documentation : https://doc.ubuntu-fr.org/fprint
sudo apt install -y fprintd libpam-fprintd
sudo pam-auth-update