Skip to content

Instantly share code, notes, and snippets.

View neolit123's full-sized avatar

Lubomir I. Ivanov neolit123

  • VMware
  • Varna, BG
View GitHub Profile
@neolit123
neolit123 / AS3 KeyboardHandler
Last active October 14, 2015 14:00
example of fast keyboard events delegation with callbacks & the "supported key" concept
/*
* KeyboardHandler
*
* example of fast keyboard events delegation with callbacks & the "supported key"
* concept. a basic keyboard state machine.
*
* usage e.g.:
*
* var kh:KeyboardHandler = new KeyboardHandler(nativeStage);
* kh.addKey(Keyboard.LEFT, leftKeyHandler);
@neolit123
neolit123 / main.cpp
Created February 13, 2018 18:45
winapi-ble-test1
#include <stdio.h>
#include <windows.h>
#include <setupapi.h>
#include <devguid.h>
#include <devpkey.h>
#include <bluetoothleapis.h>
static void print_GUID(GUID);
static int probe_GUID(GUID);
#include <QCoreApplication>
#include <QDebug>
#include <QLowEnergyService>
#include <QLowEnergyController>
QLowEnergyService *service;
static void stateChanged(QLowEnergyService::ServiceState newState)
{
qDebug() << "stateChanged:" << newState;
@neolit123
neolit123 / k8s-1.11-release-notes
Last active June 22, 2018 19:05
k8s-1.11-release-notes
# Kubernetes 1.11 Release Notes
This document is for release notes for Kubernetes 1.11. These release notes are initially generated from commit messages, and are sorted based on the release note tag.
Commits should be tagged as follows:
**/release-note-before-upgrading**
This tag is for urgent changes that users must take into consideration before upgrading. For example, mandatory upgrades of dependencies or other upgrade/downgrade issues belong in this category.
@neolit123
neolit123 / slow-kubeadm-tests
Created June 26, 2018 20:10
slow-kubeadm-tests
tests timed by Fabrizio
//cmd/kubeadm/app/cmd/phases:go_default_test PASSED in 44.8s
//cmd/kubeadm/app/discovery/token:go_default_test PASSED in 19.3s
//cmd/kubeadm/app/phases/certs:go_default_test PASSED in 34.1s
//cmd/kubeadm/app/phases/certs/pkiutil:go_default_test PASSED in 7.1s
//cmd/kubeadm/app/phases/controlplane:go_default_test PASSED in 5.4s
//cmd/kubeadm/app/phases/kubeconfig:go_default_test PASSED in 12.9s
//cmd/kubeadm/app/phases/markmaster:go_default_test PASSED in 3.7s
//cmd/kubeadm/app/phases/upgrade:go_default_test PASSED in 18.2s
@neolit123
neolit123 / slack-app-tool
Created July 5, 2018 20:47
slack-app-tool
also there could be a specific channel on here with an ongoing feed of recently submitted PRs where the github handle -> slack handle is tracked.
40 replies
bentheelder [1 hour ago]
that would be super noisy! :grimacing: see also https://github.com/integrations/slack/issues/435
neolit123 [1 hour ago]
i see. well in general it feels like pinging someone with the context of immediate action is more reliable over email. the user might not have a slack even, or could be offline. but it is certain that they have an email.
@neolit123
neolit123 / get-pr-emails.sh
Last active July 17, 2018 20:47
get-pr-emails.sh
#!/bin/sh
# a shell script for retrieving emails from commits in kubernetes/<repo> PRs
# example usage:
#
# $ chmod +x ./get-pr-emails.sh
# $ ./get-pr-emails.sh kubernetes <some-pr-#>
#
# getting username and branch...
# username = johndoe314314
@neolit123
neolit123 / kubeadm-phases
Created October 8, 2018 16:19
kubeadm-phases
potential list and order of phases for init:
- preflight
- kubelet-write-config (kubelet)
- kubelet-start (kubelet)
- certs
- kubeconfig
- controlplane
- etcd
- upload-config
- kubelet-config-map (kubelet)
@neolit123
neolit123 / may 2018 run 1
Last active October 26, 2018 14:50
cmd/go-unit-tests
=== RUN TestAbsolutePath
--- PASS: TestAbsolutePath (0.04s)
=== RUN TestACL
--- PASS: TestACL (0.79s)
=== RUN TestBuildComplex
=== PAUSE TestBuildComplex
=== RUN TestFileLineInErrorMessages
=== PAUSE TestFileLineInErrorMessages
=== RUN TestProgramNameInCrashMessages
=== PAUSE TestProgramNameInCrashMessages
@neolit123
neolit123 / yaml-kubelet-bug.go
Last active November 10, 2018 15:49
yaml-kubelet-bug.go
package main
import (
"fmt"
"k8s.io/kubernetes/pkg/kubelet/apis/config"
"sigs.k8s.io/yaml"
)
// https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/apis/config/types.go