Skip to content

Instantly share code, notes, and snippets.

View randomvariable's full-sized avatar
⬇️
Downstream. I may be slow to respond.

Naadir Jeewa randomvariable

⬇️
Downstream. I may be slow to respond.
View GitHub Profile
@randomvariable
randomvariable / gist:d408c48c66d7c5afe35246a824c12a2d
Created December 8, 2016 16:16
Installing vagrant-cucumber debug
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.
@randomvariable
randomvariable / leap_second_2016.md
Last active December 23, 2016 13:20
Leap Second 2016

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 / README.md
Last active January 1, 2018 22:48
Draft reading list on pragmatics

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 September 26, 2018 10:50
very very basic kubernetes fluentd setup
---
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: fluentd
namespace: kube-system
labels:
k8s-app: fluentd-logging
version: v1
kubernetes.io/cluster-service: "true"
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-deny
spec:
podSelector: {}
policyTypes:
- Ingress
@randomvariable
randomvariable / spki_fingerprint.py
Last active July 12, 2019 14:07
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.
@randomvariable
randomvariable / centos-install-1.8.15.sh
Last active July 23, 2019 19:07
Kubernetes 1.8.15 Install
#!/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
---
apiVersion: cluster.x-k8s.io/v1alpha3
kind: Cluster
metadata:
labels:
cluster.x-k8s.io/cluster-name: 'test'
name: 'test'
namespace: 'default'
spec:
clusterNetwork:
diff -Naur linux-4.19.138/drivers/net/vmxnet3/vmxnet3_drv.c ../SOURCES/linux-5.8/drivers/net/vmxnet3/vmxnet3_drv.c
--- linux-4.19.138/drivers/net/vmxnet3/vmxnet3_drv.c 2020-09-18 02:49:39.826513351 +0100
+++ ../SOURCES/linux-5.8/drivers/net/vmxnet3/vmxnet3_drv.c 2020-09-18 02:58:22.467376972 +0100
@@ -535,8 +535,8 @@
}
sz = tq->tx_ring.size * sizeof(tq->buf_info[0]);
- tq->buf_info = dma_zalloc_coherent(&adapter->pdev->dev, sz,
- &tq->buf_info_pa, GFP_KERNEL);
+ tq->buf_info = dma_alloc_coherent(&adapter->pdev->dev, sz,
@randomvariable
randomvariable / goldpinger.yaml
Created September 21, 2020 22:51
goldpinger.yaml
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: goldpinger-serviceaccount
namespace: default
---
apiVersion: apps/v1
kind: DaemonSet
metadata: