Skip to content

Instantly share code, notes, and snippets.

@kosssi
kosssi / Travis.md
Last active June 6, 2019 13:18
Chiffrer/Déchiffrer des données avec Travis

Chiffrer des données sur Travis

Commencer par installer la CLI de Travis : gem install travis. il faut ensuite se connecter avec ses identifiants Github : travis login

Pour chiffrer une variable d'environnement

Exemple :

@kosssi
kosssi / Blockstack
Created December 27, 2018 08:47
Blockstack
Verifying my Blockstack ID is secured with the address 1ErhxLwwJzMwRXernDX8WHFuKNtTPU3sdc https://explorer.blockstack.org/address/1ErhxLwwJzMwRXernDX8WHFuKNtTPU3sdc
@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
@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 / 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 / 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
Verifying my Blockstack ID is secured with the address 1ErhxLwwJzMwRXernDX8WHFuKNtTPU3sdc https://explorer.blockstack.org/address/1ErhxLwwJzMwRXernDX8WHFuKNtTPU3sdc

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:

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()
PouchDB = require 'pouchdb'
async = require 'async'
class ReplicationWithFilter
cozy: null
mobile: null
design:
_id: "_design/myfilter"