Skip to content

Instantly share code, notes, and snippets.

View puco's full-sized avatar

Martin Pernecky puco

View GitHub Profile
@puco
puco / eventstore-docker.log
Created July 31, 2018 13:02
eventstore high load troubleshooting
[00001,01,12:58:00.429]
ES VERSION: 4.1.0.0 (HEAD/daddeca886f43e40489efd7d9f45cb6ddd4aed8a, Tue, 23 Jan 2018 14:12:35 +0200)
[00001,01,12:58:00.453] OS: Linux (Unix 4.9.93.0)
[00001,01,12:58:00.457] RUNTIME: 4.6.2 (Stable 4.6.2.16/ac9e222) (64-bit)
[00001,01,12:58:00.457] GC: 2 GENERATIONS
[00001,01,12:58:00.457] LOGS: /var/log/eventstore
[00001,01,12:58:00.466] MODIFIED OPTIONS:
START STANDARD PROJECTIONS: true (Environment Variable)
EXT HTTP PORT: 32113 (Environment Variable)
@puco
puco / sts.yaml
Last active June 20, 2018 15:32
ha es pvc sts
apiVersion: apps/v1
kind: StatefulSet
metadata:
creationTimestamp: 2018-06-20T15:26:33Z
generation: 1
labels:
app: eventstore
chart: eventstore-0.2.8
heritage: Tiller
release: es-ha
@puco
puco / index.js
Created June 6, 2018 08:46
move sendgrid templates
const fetch = require('node-fetch'),
_ = require('lodash');
main();
async function f(u, o) {
var result = await fetch(u, Object.assign({}, o, {
headers: {
Authorization: 'Bearer **from token**'
### Keybase proof
I hereby claim:
* I am puco on github.
* I am pernecky (https://keybase.io/pernecky) on keybase.
* I have a public key ASCWps8ZgHeP1ow8NsQiGvv9RJY0gdMs43IZa-dFI2vAkgo
To claim this, I am signing this object:
{
"workbench.iconTheme": "vscode-icons",
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"window.zoomLevel": 0,
"editor.fontFamily": "'Source Code Pro', Consolas, 'Courier New', monospace",
"editor.renderWhitespace": "all",
"window.menuBarVisibility": "toggle",
"workbench.startupEditor": "newUntitledFile",
"files.associations": {
"**/templates/*.yaml": "helm",
@puco
puco / out.txt
Created October 6, 2017 15:54
tf k8 pv issue
2017/10/06 17:52:17 [INFO] Terraform version: 0.10.7 5f9bf20ba6aaa174600109a95cc77f7788d4959b+CHANGES
2017/10/06 17:52:17 [INFO] Go runtime version: go1.9
2017/10/06 17:52:17 [INFO] CLI args: []string{"D:\\Cloud\\_apps\\_utilities\\terraform.exe", "apply"}
2017/10/06 17:52:17 [DEBUG] Attempting to open CLI config file: C:\Users\mpe\AppData\Roaming\terraform.rc
2017/10/06 17:52:17 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/10/06 17:52:17 [DEBUG] CLI Config is main.Config{Providers:map[string]string{}, Provisioners:map[string]string{}, DisableCheckpoint:false, DisableCheckpointSignature:false, PluginCacheDir:""}
2017/10/06 17:52:17 [INFO] CLI command args: []string{"apply"}
2017/10/06 17:52:17 [INFO] command: empty terraform config, returning nil
2017/10/06 17:52:17 [DEBUG] command: no data state file found for backend config
2017/10/06 17:52:17 [DEBUG] New state was assigned lineage "f65f7b9f-1d80-4d95-88f4-a004e670468c"
@puco
puco / reset.js
Created July 13, 2016 00:57 — forked from estliberitas/reset.js
Node.js script which makes Tor change identity (i.e. IP address)
/**
* Created with IntelliJ IDEA.
* User: Alexander <estliberitas> Makarenko
* Date: 04.01.13
* Time: 3:25
*/
'use strict';
var fs = require('fs')
, net = require('net')
@puco
puco / lg.xml
Last active November 22, 2015 09:56
Kodi LG home BRA TV keymap
<?xml version="1.0"?>
<!--
KODI keymap for BRA LG TV which:
- does not send Exit & Back buttons over symlink/cec
- does not send color button over symlink/cec
So the configuration is
- On home screen you can reload Keymaps with Pause (||)
- On any other screen (files, video overlay, subtitle search) the Reverse (|<<) goes one level up
-->
<keymap>
@puco
puco / Aggregate_Concatenate.sql
Created October 23, 2015 15:38 — forked from FilipDeVos/Aggregate_Concatenate.sql
SQL Server Aggregate to concatenate strings
-- This script deploys the dbo.Concatenate() aggregate function on SQL Server. This is compiled from the code Concatenate.cs below.
CREATE ASSEMBLY [concat]
FROM 0x4D5A90000300000004000000FFFF0000B800000000000000400000000000000000000000000000000000000000000000000000000000000000000000800000000E1FBA0E00B409CD21B8014CCD21546869732070726F6772616D2063616E6E6F742062652072756E20696E20444F53206D6F64652E0D0D0A2400000000000000504500004C010300E3EE2A540000000000000000E00002210B010B00000C00000006000000000000AE2B0000002000000040000000000010002000000002000004000000000000000400000000000000008000000002000000000000030040850000100000100000000010000010000000000000100000000000000000000000602B00004B000000004000009003000000000000000000000000000000000000006000000C000000282A00001C0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000080000000000000000000000082000004800000000000000000000002E74657874000000B40B000000200000000C000000020000000000000000000000000000200000602E7273726300000090030000004
@puco
puco / Vagrantfile
Last active August 29, 2015 14:22 — forked from tvjames/Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.