Skip to content

Instantly share code, notes, and snippets.

;;; let us put everything together
engine.outputs[]=cli
engine.local=mysqlAmazonRds
engine.remote=s3
engine.compare=sqlite
storage.filesystem.basedir=~/data
storage.s3.bucket=myAmazonBucket
compare.sqlite.file=~/backup/compare.db
@k2s
k2s / paperinput.html
Last active February 10, 2016 08:45
paper-input and Aurelia value bind problem
<link rel="import" href="lib/iron-form/iron-form.html">
<link rel="import" href="lib/paper-button/paper-button.html">
<link rel="import" href="lib/paper-input/paper-input-container.html">
<link rel="import" href="lib/paper-input/paper-input.html">
<template>
<section>
<h2>${heading}</h2>
<form is="iron-form" role="form">
# Maintainer: Vlad M. <vlad@archlinux.net>
# Contributor: Mario Rodas
# Contributor: Oozyslug <oozyslug at gmail dot com>
# Contributor: koral <koral at mailoo dot org>
# Contributor: k2s <martin minka at gmail dot com>
pkgname=nix
pkgver=1.11.2
pkgrel=2
pkgdesc="A purely functional package manager"

Keybase proof

I hereby claim:

  • I am k2s on github.
  • I am k2s (https://keybase.io/k2s) on keybase.
  • I have a public key ASBhchjxv8Wg8_9I2p6czNXGsYe55aIbQjjVbEJCmkSOsQo

To claim this, I am signing this object:

@k2s
k2s / default-pin.js
Created August 19, 2016 14:20
Seneca plugin: register pin which will be prepended to all added patterns
"use strict";
const _ = require('lodash')
const jsonic = require('jsonic')
function defaultPin(options) {
}
// Has to be preloaded as seneca.add does not wait for plugins to load.
defaultPin.preload = function parambulator_preload(plugin) {
this.decorate('pinaddition', function (pinAddition) {
@k2s
k2s / default-packages
Last active September 18, 2018 15:00
~/.nvm/default-packages
yarn
npm-check-updates
webpack-cli
webpack-dev-server
firebase-tools
firebase
node-gyp
node-pre-gyp
prebuild-install
less
@k2s
k2s / cloudSettings
Last active September 19, 2018 18:04
vscode settings
{"lastUpload":"2018-09-18T16:20:57.930Z","extensionVersion":"v3.1.2"}
@k2s
k2s / call.js
Created October 1, 2018 20:48
httpSignature in request
const request = require('request-promise-native')
let key = 'key'
let secret = 'secret'
let r = await request('https://api.example.com/data/next/', {
method: 'POST',
{ idradu: 4 },
json: true,
httpSignature: {
@k2s
k2s / xdrip.json
Last active March 15, 2021 01:09
xdrip.json
{
"latestVersion":"0267669c0-k2s-release-21.0315.020027",
"url":"http://bit.do/xdrip-k2s",
"releaseNotes": [
"builds on https://github.com/NightscoutFoundation/xDrip/releases/tag/2020.06.11b",
"with added pull requests:",
"- karelinoleg/feature/NotificationGraph",
"- k2s/upgrade-gradle",
"- k2s/customUpdater",
"- k2s/widget",
@k2s
k2s / build.sh
Last active November 4, 2019 23:11
xDrip - build custom APK from multiple pull requests
#!/usr/bin/env bash
set -e
# !!! this folder is only for build
# TODO make it parameter of script
XDRIP_PATH=/tmp/xdrip-build
# !!! public JSON file you are able to publish
# this is useful if you include k2s/customUpdater feature and then you are able to update to next releases
UPDATE_URL=https://gist.githubusercontent.com/k2s/aa7928197d8ea508135bc20bb9bdd664/raw/xdrip.json