Skip to content

Instantly share code, notes, and snippets.

Vikas Kumar vikas027

  • Sydney, Australia
Block or report user

Report or block vikas027

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
@vikas027
vikas027 / ceph.yaml
Created Aug 30, 2019
Kubernetes - Dynamic PVC
View ceph.yaml
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: rbd-provisioner
namespace: default
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
View bumpme
Sat Apr 28 06:44:09 UTC 2018
@vikas027
vikas027 / openssl_s_client_log.log
Last active Sep 25, 2017
Openssl s_client log for nginx forum
View openssl_s_client_log.log
#### SHORT LOG
$ openssl 2>&1 s_client -quiet -connect server.test.com:443 -servername server.test.com -tls1 -key /root/ca/intermediate/private/client.key.pem -cert /root/ca/intermediate/certs/client.cert.pem -CAfile /root/certs/ca.cert.pem
depth=2 C = GB, ST = England, L = Melbourne, O = Alice Ltd, OU = IT Services, CN = rootca.test.com, emailAddress = root@rootca.test.com
verify return:1
depth=1 C = GB, ST = England, O = Alice Ltd, OU = Shared Services, CN = intermediateca.test.com, emailAddress = root@intermediateca.test.com
verify return:1
depth=0 C = US, ST = California, L = Mountain View, O = Alice Ltd, OU = Alice Ltd Web Services, CN = server.test.com, emailAddress = root@server.test.com
verify return:1
HTTP/1.1 400 Bad Request
@vikas027
vikas027 / linux_mint_wifi_et3290_fix.txt
Created Aug 13, 2017
Linux Mint 18 WiFi rt3290 fix
View linux_mint_wifi_et3290_fix.txt
### Fix for linux-firmware
I had some warnings/errors while installing linux-firmware
# dpkg -i linux-firmware_1.158_all.deb
update-initramfs: Generating /boot/initrd.img-4.8.0-53-generic
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_01.bin for module i915
Warning: No support for locale: en_AU.utf8
#
To fix this
@vikas027
vikas027 / nginx_modsecurity.log
Created Jun 19, 2017
Nginx compiled with ModSecurity (with JSON Support)
View nginx_modsecurity.log
## OS Ubuntu 17.10
## Pre-Requisites
# apt-get install -y git build-essential libpcre3 libpcre3-dev libssl-dev libtool autoconf apache2-dev libxml2-dev libcurl4-openssl-dev automake pkgconf dialog apt-utils
# apt-get install -y g++ flex bison curl doxygen libyajl-dev libgeoip-dev libtool dh-autoreconf libcurl4-gnutls-dev libxml2 libpcre++-dev libxml2-dev libyajl2 yajl-tools
# apt-get install -y libgd2-xpm-dev libgeoip-dev libpam-dev libpcre3 libpcre3-dev google-perftools libgoogle-perftools-dev libatomic-ops-dev libperl-dev
# export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/x86_64-linux-gnu/pkgconfig
## ModSecurity
# cd /usr/src
@vikas027
vikas027 / Terraform_Issue_12108_second run
Created Feb 20, 2017
Terraform_Issue_12108_second run
View Terraform_Issue_12108_second run
This file has been truncated, but you can view the full file.
2017/02/20 23:06:50 [INFO] Terraform version: 0.8.7
2017/02/20 23:06:50 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.8.7/bin/terraform", "apply", "-target=module.docker_repos"}
2017/02/20 23:06:50 [DEBUG] Detected home directory from env var: /Users/vikas
2017/02/20 23:06:50 [DEBUG] Detected home directory from env var: /Users/vikas
2017/02/20 23:06:50 [DEBUG] Attempting to open CLI config file: /Users/vikas/.terraformrc
2017/02/20 23:06:50 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/02/20 23:06:50 [DEBUG] Detected home directory from env var: /Users/vikas
2017/02/20 23:06:50 [DEBUG] vertex "module.docker_repos": static expanding
2017/02/20 23:06:50 [DEBUG] vertex "module.vpc": static expanding
@vikas027
vikas027 / Terraform_Issue_12108_first run
Created Feb 20, 2017
Terraform_Issue_12108_first run
View Terraform_Issue_12108_first run
This file has been truncated, but you can view the full file.
2017/02/20 23:05:58 [INFO] Terraform version: 0.8.7
2017/02/20 23:05:58 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.8.7/bin/terraform", "apply", "-target=module.docker_repos"}
2017/02/20 23:05:58 [DEBUG] Detected home directory from env var: /Users/vikas
2017/02/20 23:05:58 [DEBUG] Detected home directory from env var: /Users/vikas
2017/02/20 23:05:58 [DEBUG] Attempting to open CLI config file: /Users/vikas/.terraformrc
2017/02/20 23:05:58 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/02/20 23:05:58 [DEBUG] Detected home directory from env var: /Users/vikas
2017/02/20 23:05:58 [DEBUG] vertex "module.ssh_key_pairs": static expanding
2017/02/20 23:05:58 [DEBUG] vertex "module.http_server": static expanding
@vikas027
vikas027 / Vagrant_vsphere_debug.log
Created Mar 12, 2016
Vagrant Log for issue 182
View Vagrant_vsphere_debug.log
This file has been truncated, but you can view the full file.
## https://github.com/nsidc/vagrant-vsphere/issues/182
# vagrant up --debug
INFO global: Vagrant version: 1.8.1
INFO global: Ruby version: 2.2.3
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_OLD_ENV_MAIL="/var/spool/mail/root"
INFO global: VAGRANT_OLD_ENV_LANG="en_IN"
INFO global: VAGRANT_OLD_ENV_XDG_SESSION_ID="2"
INFO global: VAGRANT_OLD_ENV_SHELL="/bin/bash"
@vikas027
vikas027 / Packer_Debug_Log_Pull_Request-3321.txt
Last active Mar 11, 2016
Packer Debug Log for Pull Request 3321
View Packer_Debug_Log_Pull_Request-3321.txt
## https://github.com/mitchellh/packer/pull/3321
# PACKER_LOG=1 packer build packer.json
2016/03/12 02:52:53 [INFO] Packer version: 0.9.1 dev 3efdcb45eeac7a3a7566296ba94e9ff642ea37de
2016/03/12 02:52:53 Packer Target OS/Arch: linux amd64
2016/03/12 02:52:53 Built with Go Version: go1.6
2016/03/12 02:52:53 Detected home directory from env var: /root
2016/03/12 02:52:53 Using internal plugin for null
2016/03/12 02:52:53 Using internal plugin for openstack
2016/03/12 02:52:53 Using internal plugin for amazon-chroot
View Packer_Debug_Log_Issue-3315.txt
$ PACKER_LOG=1 packer build -force bug_test.json
2016/03/06 15:24:04 [INFO] Packer version: 0.9.0 a643faae672ec8b8424352476d2b91b7a7f7b06e
2016/03/06 15:24:04 Packer Target OS/Arch: darwin amd64
2016/03/06 15:24:04 Built with Go Version: go1.6
2016/03/06 15:24:04 [DEBUG] Discovered plugin: vsphere-ova = /usr/local/bin/packer-post-processor-vsphere-ova
2016/03/06 15:24:04 Detected home directory from env var: /Users/vikas
2016/03/06 15:24:04 Using internal plugin for file
2016/03/06 15:24:04 Using internal plugin for openstack
2016/03/06 15:24:04 Using internal plugin for amazon-chroot
2016/03/06 15:24:04 Using internal plugin for vmware-vmx
You can’t perform that action at this time.