Skip to content

Instantly share code, notes, and snippets.

@k2s
k2s / kb.json
Last active February 22, 2022 14:08
dáta pre linux.curo.sk
{
"minVer": "21.11",
"Dell Inc.": "https://www.dell.com/support/home/sk-sk",
"OptiPlex 3070": {
"v": "1.12.0",
"url": "https://www.dell.com/support/home/sk-sk/product-support/product/optiplex-3070-desktop/drivers"
},
"PowerEdge T40": {
"v": "1.7.0",
"url": "https://www.dell.com/support/home/sk-sk/product-support/product/poweredge-t40/drivers"
@k2s
k2s / searx-settings.yaml
Last active January 9, 2022 16:15
generate searx definition to block domains hosting scrapped code snippets and polluting search results
hostname_replace:
'(.*\.)?codegrepper\.com': false
'(.*\.)?w3schools\.com': false
'(.*\.)?geeksforgeeks\.org': false
'(.*\.)?stackshare\.io': false
'(.*\.)?tutorialspoint\.com': false
'(.*\.)?answeright\.com': false
'(.*\.)?askdev\.info': false
'(.*\.)?askdev\.io': false
'(.*\.)?blogmepost\.com': false
@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
@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 / 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 / cloudSettings
Last active September 19, 2018 18:04
vscode settings
{"lastUpload":"2018-09-18T16:20:57.930Z","extensionVersion":"v3.1.2"}
@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 / 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) {

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:

# 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"