Skip to content

Instantly share code, notes, and snippets.

View spuranam's full-sized avatar

Satish Puranam spuranam

  • Ford Motor Company
  • Michigan
View GitHub Profile
@spuranam
spuranam / stopmediumpaywall.txt
Created July 14, 2023 02:52 — forked from kamysheblid/stopmediumpaywall.txt
Bypass the annoying paywall on Medium.com and DataScience.com
// ==UserScript==
// @name Stop the Medium The Pay Wall
// @namespace StopThePayWall
// @version 1
// @include *medium*
// @include *datascience*
// ==/UserScript==
async function abc () {
var resp = (await fetch(location, { "credentials": "omit", "headers": { "Accept": "text/html,text/xhtml,text/xml,*/*", "Connection": "keep-alive", }, "method": "GET", "mode": "cors" }));

Building Python 3.11.0

The following scripts has been tested in clean environment, the official image for each distro in Docker Hub to be exact.

The dependencies doesn't change much, so Python 3.10 may have the exact same process. (Obviously the link and the filename in the script must be changed)

Table of Content

@spuranam
spuranam / gcp-machineset.yaml
Created April 28, 2022 21:10 — forked from aravindhp/gcp-machineset.yaml
gcp-machineset
apiVersion: machine.openshift.io/v1beta1
kind: MachineSet
metadata:
labels:
machine.openshift.io/cluster-api-cluster: aravindh-winc-6h9df
name: aravindh-winc-6h9df-windows-worker-a
namespace: openshift-machine-api
spec:
replicas: 1
selector:

In redhat, if you need build container from base image, for example, registry.access.redhat.com/rhel7/rhel:7.3-53 (free download from https://access.redhat.com/containers) You have to build this image on a red hat server with subscription managed registered.

Here is the way to bypass the check and you can build docker image on any redhat 7 server.

make sure the package has been installed

yum install rh-amazon-rhui-client

list the package files

@spuranam
spuranam / Vagrantfile
Created January 4, 2018 21:30 — forked from leifg/Vagrantfile
Add a second disk to system using vagrant
file_to_disk = './tmp/large_disk.vdi'
Vagrant::Config.run do |config|
config.vm.box = 'base'
config.vm.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024]
config.vm.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk]
end
@spuranam
spuranam / install-terraform-packer-os-x.sh
Created October 7, 2017 20:48 — forked from Adron/install-terraform-packer-os-x.sh
Install Terraform & Packer on Linux
#!/usr/bin/env bash
# Script prerequisite > install jq > https://stedolan.github.io
cd ~
# Prerequisites
if [ "$(uname)" == "Darwin" ]; then
brew install jq
# For Linux
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
@spuranam
spuranam / kubeception.md
Created October 7, 2017 20:13 — forked from dghubble/kubeception.md
Running QEMU/KVM and Nested Kubernetes on Bare-Metal Kubernetes

Tectonic with CentOS 7 Worker

Disclaimer

This is unofficial. The author does not update, maintain, or support this setup. Please direct all questions to your support provider.

CoreOS Tectonic

Provision a Tectonic 1.5.5-tectonic.3 bare-metal cluster (Container Linux, 1 controller, 2 workers) in the usual way with matchbox and the Tectonic Installer.

@spuranam
spuranam / README.md
Created October 7, 2017 20:07 — forked from dm0-/README.md
Automated Tectonic installer for local virtual machines

Tectonic virtual install script

This script is a Tectonic installer for local development and testing. It creates a cluster of virtual machines on the same host that runs the script. All files, processes, and any other virtual resources that are created during its execution should be automatically removed on exit.

Dependencies

The first lines in the script list every command dependency, which can be

macOS 10.12 Sierra Setup

Custom recipe to get macOS 10.12 Sierra running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.11 El Capitan setup recipe and 10.10 Yosemite setup recipe. I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your o