Skip to content

Instantly share code, notes, and snippets.

View kushwiz's full-sized avatar

Kushal Bhandari kushwiz

  • Sunnyvale, California
View GitHub Profile
{"keys":[{"kty":"RSA","e":"AQAB","kid":"13f8ff3d-beae-40e7-a5e6-a863465421d9","n":"u1Vg74REDTo6S2ZRm3Zi8w6aY0ZOHAjoIT-EvTDBd0pV1YtcB702v0DOLQfX6aKvwMKz5IpviWM_3kaUag8QsXOYTqa5eCaoMlK-8IsNAPK8gPg7kDuWf2iYxskZm1nwnrRSiuapa7xD9Jl7QSmfdkgHEqpd3IT6tpUtJqAA6xqgYPmXq_yN9pBYepugpaICOjgXg8vWZgrLot8iL7QKUKuFA66ZJ0uZ8ynSqOgxASHjqwaN9frE8C4ygbDm2mi8M1ZjW1FUhyRE_LEyNkDVzmBl7AEY2ORzcaBQLMmqbd4ER6T7EyxgxTFJa7Zg7THnekaGRzKmXx3GoAwdNEDcPw"}
]}
@kushwiz
kushwiz / jwks.json
Created October 1, 2019 22:34
well_known_jks
{"keys":[{"e":"AQAB","kid":"Om2U6AkxZ6nRWCjFF_Ejlvpv2jpjEP50se-tL-WFR6g","kty":"RSA","n":"3AgpTOBVe44xLTJrNBCzE_7sIP3kiJuFoBHIH7lKd9LoLqvzrZkxxxfInmMejvLXk42-QWVbhHb6IB4aovuAr8GiqDmBboW95kBgcezb5CDoWYcQNwb8pypM5ys2rOl8lzA4s5BrWQm8IvZcwLij_g87IHgWkUXJheLjrEYWncATlDRKxB2pkBpt1lVRwy5hCEa5HiYustF9_HD1IFRfh5OY9_FfuqWMkK3pb0nUP3I0MLrF4EhPqAp9BF4eHCBvta9PhT6zywpVp-fKT6WH8KmUXMIe9i8eH0bw8mizYg_nxYQ1iEtkzZ41gRjMmIjfGI1YYpYRygI_MW_gAmjcVw"}]}
@kushwiz
kushwiz / modsecurity-custom.conf
Created August 7, 2018 23:57
modsecurity-custom.conf
# -- Rule engine initialization ----------------------------------------------
# Enable ModSecurity, attaching it to every transaction. Use detection
# only to start with, because that minimises the chances of post-installation
# disruption.
#
SecRuleEngine DetectionOnly
# -- Request body handling ---------------------------------------------------
@kushwiz
kushwiz / nginx.conf
Created June 1, 2018 03:27 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@kushwiz
kushwiz / chef.rb
Created October 19, 2016 20:24 — forked from jmazzi/chef.rb
Simple Ruby class for manually querying the Chef REST API (using Net::HTTP instead of Chef's REST resources)
require 'base64'
require 'time'
require 'digest/sha1'
require 'openssl'
require 'net/https'
require 'json'
class Chef
attr_accessor :http, :path
package org.cloudbus.cloudsim.examples;
import java.util.List;
import org.cloudbus.cloudsim.DatacenterBroker;
import org.cloudbus.cloudsim.DatacenterCharacteristics;
import org.cloudbus.cloudsim.Log;
import org.cloudbus.cloudsim.Vm;
import org.cloudbus.cloudsim.core.CloudSim;
import org.cloudbus.cloudsim.core.CloudSimTags;