Skip to content

Instantly share code, notes, and snippets.

Naadir Jeewa randomvariable

Block or report user

Report or block randomvariable

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View spki_fingerprint.py
# Copyright © 2019 VMware Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
View test.yaml
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-deny
spec:
podSelector: {}
policyTypes:
- Ingress
@randomvariable
randomvariable / centos-install-1.8.15.sh
Last active Jul 23, 2019
Kubernetes 1.8.15 Install
View centos-install-1.8.15.sh
#!/bin/sh
yum install -y curl ca-certificates
cat << EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
@randomvariable
randomvariable / non-production-fluentd.yaml
Created Sep 26, 2018
very very basic kubernetes fluentd setup
View non-production-fluentd.yaml
---
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: fluentd
namespace: kube-system
labels:
k8s-app: fluentd-logging
version: v1
kubernetes.io/cluster-service: "true"
@randomvariable
randomvariable / README.md
Last active Jan 1, 2018
Draft reading list on pragmatics
View README.md

Political Philosophy

Cosmopolitanism

Liberal tradition

Read
  • Beck, Ulrich, and Patrick Camiller. "The truth of others: A cosmopolitan approach." Common Knowledge 10, no. 3 (2004): 430-449.

Cosmopolitics

@randomvariable
randomvariable / dns_client_log.ps1
Last active Mar 21, 2019
DNS Client Logging on Windows
View dns_client_log.ps1
function Start-DNSClientLog {
$DnsOpLog = Get-WinEvent -ListLog Microsoft-Windows-DNS-Client/Operational
$DnsOpLog.IsEnabled = $true
$DnsOpLog.SaveChanges()
}
function Get-DNSClientQueries {
foreach($event in (get-winevent Microsoft-Windows-DNS-Client/Operational | % { [xml]$_.ToXml() })) {
$Query = ($event.Event.EventData.Data | Where-Object { $_.Name -eq "QueryName" }).'#text'
View leap_second_2016.md

The International Earth Rotation and Reference Systems Service (IERS) have announced that a positive leap second will be added to the end of December 2016, which will be 23:59:60 UTC

Here is a patch table for various Linux operating systems, with the minimum versions of each affected package that should be updated.

Distribution ntp4 Linux Kernel tzdata5
Ubuntu 10.04 Not supported3 2.6.32-42.951 Not available
Ubuntu 12.04 4.2.6.p3+dfsg-1ubuntu3.11 3.2.0-29.462 2016g-0ubuntu0.12.04
Ubuntu 14.04 4.2.6.p5+dfsg-3ubuntu2.14.04.10 3.13.0-33.582 2016g-0ubuntu0.14.04
Ubuntu 16.04 4.2.8p4+dfsg-3ubuntu5.3 Not affected 2016g-0ubuntu0.16.04
View gist:d408c48c66d7c5afe35246a824c12a2d
DEBUG cli: Invoking command class: VagrantPlugins::CommandPlugin::Command::Root ["install", "vagrant-cucumber"]
DEBUG root: Invoking command class: VagrantPlugins::CommandPlugin::Command::Install ["vagrant-cucumber"]
INFO loader: Loading configuration in order: [:home, :root]
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG push: finalizing
INFO host: Autodetecting host type for [#<Vagrant::Environment: /home/naadir/Projects/tsf>]
DEBUG host: Trying: redhat
INFO host: Detected: redhat!
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
View openssl.txt
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 8
open("/lib64/libtinfo.so.6", O_RDONLY|O_CLOEXEC) = 8
open("/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 8
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 8
open("/dev/tty", O_RDWR|O_NONBLOCK) = 8
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 8
open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 8
open("/opt/vagrant/embedded/bin/gem", O_RDONLY) = 8
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18075, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
open("/vagrant-substrate/staging/embedded/lib/tls/x86_64/libruby.so.2.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
View debug.txt
 INFO global: Vagrant version: 1.9.0
INFO global: Ruby version: 2.2.5
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_OLD_ENV_KONSOLE_DBUS_WINDOW="/Windows/1"
INFO global: VAGRANT_OLD_ENV_XDG_SEAT="seat0"
INFO global: VAGRANT_OLD_ENV_WINDOWID="75497477"
....
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/gems/vagrant-1.9.0/bin/vagrant"
INFO global: VAGRANT_OLD_ENV_TERM="xterm-256color"
INFO global: VAGRANT_OLD_ENV_LOGNAME="naadir"
You can’t perform that action at this time.