Skip to content

Instantly share code, notes, and snippets.

Avatar

Marek Skrobacki skrobul

View GitHub Profile
View kube-scheduler.txt
vagrant@master-1:~$ sudo journalctl -u kube-scheduler --since=-10m
-- Logs begin at Thu 2020-06-25 17:21:59 UTC, end at Mon 2182-11-11 20:15:42 UTC. --
Jun 28 16:00:34 master-1 systemd[1]: Started Kubernetes Scheduler.
Jun 28 16:00:35 master-1 kube-scheduler[835]: I0628 16:00:35.309830 835 flags.go:33] FLAG: --add-dir-header="false"
Jun 28 16:00:35 master-1 kube-scheduler[835]: I0628 16:00:35.310257 835 flags.go:33] FLAG: --address="127.0.0.1"
Jun 28 16:00:35 master-1 kube-scheduler[835]: I0628 16:00:35.310271 835 flags.go:33] FLAG: --algorithm-provider=""
Jun 28 16:00:35 master-1 kube-scheduler[835]: I0628 16:00:35.310275 835 flags.go:33] FLAG: --alsologtostderr="false"
Jun 28 16:00:35 master-1 kube-scheduler[835]: I0628 16:00:35.310278 835 flags.go:33] FLAG: --authentication-kubeconfig=""
Jun 28 16:00:35 master-1 kube-scheduler[835]: I0628 16:00:35.310281 835 flags.go:33] FLAG: --authentication-skip-lookup="false"
Jun 28 16:00:35 master-1 kube-scheduler[835]: I0628 16:00:35.310287
@skrobul
skrobul / # weechat - 2016-04-25_13-51-39.txt
Created Apr 25, 2016
weechat on Mac OS X 10.10.5 - Homebrew build logs
View # weechat - 2016-04-25_13-51-39.txt
Homebrew build logs for weechat on Mac OS X 10.10.5
Build date: 2016-04-25 13:51:39
View gist:97a992491a3efca6f09d
$ cat /tmp/myfile
# blah
#acl_smtp_predata = daily_limit_acl
#acl_not_smtp = daily_limit_acl
more blah
$ salt-call --local file.uncomment /tmp/myfile 'acl_(smtp_predata|not_smtp) = daily_limit_acl'
local:
---
+++
@skrobul
skrobul / gist:2803c08fc77ea639d022
Last active Jul 14, 2018
HSBC UK Individual - Human friendly account names
View gist:2803c08fc77ea639d022
// ==UserScript==
// @name HSBC Personal - Human friendly account names
// @namespace http://github.com/skrobul
// @version 0.2
// @description This scripts adds user-friendly names for your HSBC accounts. It can help with managing multiple accounts.
// @author skrobul <skrobul@skrobul.com>
// @match https://www.services.online-banking.hsbc.co.uk/*
// @grant none
// ==/UserScript==
@skrobul
skrobul / gist:c1bb54d0475ccf8ebdc1
Created May 22, 2015
zenoss_client ruby 1.9.x test issues
View gist:c1bb54d0475ccf8ebdc1
~/devel/zenoss_client(vcr-cassette-name-ruby19 ✔) bundle --version
Bundler version 1.7.6
~/devel/zenoss_client(vcr-cassette-name-ruby19 ✔) rvm use 1.9.3
Using /Users/skrobul/.rvm/gems/ruby-1.9.3-p551
~/devel/zenoss_client(vcr-cassette-name-ruby19 ✔) export BUNDLE_GEMFILE=$PWD/Gemfile
~/devel/zenoss_client(vcr-cassette-name-ruby19 ✔) ruby --version
ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-darwin14.0.0]
~/devel/zenoss_client(vcr-cassette-name-ruby19 ✔) rvm --version
rvm 1.26.11 (master) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
~/devel/zenoss_client(vcr-cassette-name-ruby19 ✔) bundle --version
View gist:3e0f2f72afde5d0cfc70
Timing application.allwindows
application.allwindows time for loginwindow: 0.000263
application.allwindows time for Dock: 0.000052
application.allwindows time for SystemUIServer: 0.000289
application.allwindows time for Spotlight: 0.000252
application.allwindows time for com.apple.dock.extra: 0.000199
application.allwindows time for sharingd: 0.000120
application.allwindows time for Seil: 0.000228
application.allwindows time for Karabiner: 0.000231
@skrobul
skrobul / gist:40d77668df1d8f7ff878
Created Jan 22, 2015
example openssl.cnf for generating TLS certificates to use with etcd
View gist:40d77668df1d8f7ff878
HOME = .
RANDFILE = $ENV::HOME/.rnd
oid_section = new_oids
[ new_oids ]
tsa_policy1 = 1.2.3.4.1
tsa_policy2 = 1.2.3.4.5.6
View keybase.md

Keybase proof

I hereby claim:

  • I am skrobul on github.
  • I am skrobul (https://keybase.io/skrobul) on keybase.
  • I have a public key whose fingerprint is FB53 541D E519 8620 9807 D91C 5D96 65C7 E748 CCD7

To claim this, I am signing this object:

View gist:c8cdcf02ec605a910943
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#include <linux/inotify.h>
#define EVENT_SIZE ( sizeof (struct inotify_event) )
View gist:7201361
$ ruby ./getmac.rb 10.9.30.138
Scanning VLAN: 1
[T] Start: 2013-10-28 17:49:29 +0000
[T] Got bportids_to_mac_table in 0.039541 seconds
[T] Got macidx_to_brport 0.045924 seconds
[T] Got bridgeport to ifindex mapping 0.048247 seconds
[T] Got ifIndex to ifName mapping 0.270035 seconds
Total time spent on this vlan: 0.403856 seconds
Scanning VLAN: 2
[T] Start: 2013-10-28 17:49:29 +0000
You can’t perform that action at this time.