Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
On vacation

Naadir Jeewa randomvariable

🌴
On vacation
View GitHub Profile
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 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
@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'
@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 / 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 / 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
View test.yaml
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-deny
spec:
podSelector: {}
policyTypes:
- Ingress
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 netshoot.yaml
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: netshoot
labels:
app: netshoot
spec:
updateStrategy:
type: RollingUpdate
View template.yaml
---
apiVersion: cluster.x-k8s.io/v1alpha3
kind: Cluster
metadata:
labels:
cluster.x-k8s.io/cluster-name: 'test'
name: 'test'
namespace: 'default'
spec:
clusterNetwork:
You can’t perform that action at this time.