Skip to content

Instantly share code, notes, and snippets.

View praveenkumar's full-sized avatar
🏠
Working from home

Praveen Kumar praveenkumar

🏠
Working from home
View GitHub Profile
@anjannath
anjannath / crcd-client.go
Created February 14, 2022 09:40
quickly test the crc daemon api on window via namedpipe
package main
import (
"context"
"fmt"
"io/ioutil"
"net"
"net/http"
"os"
"time"
@siddhesh
siddhesh / GetMF.gs
Last active June 27, 2024 10:16
Handy Google spreadsheet function to download and parse NAVs uploaded regularly by the AMFI.
// This code is in Public domain.
MF_SCHEME_NAME = 3;
MF_NAV = 4;
MF_DATE = 5;
CACHE_NAME = '_mfcache';
function initNAV() {
var response = UrlFetchApp.fetch("http://portal.amfiindia.com/spages/NAVAll.txt");
var txt = response.getContentText();
@markbates
markbates / github-workflows-goreleaser.yml
Last active March 7, 2020 09:00
Run Go tests in Windows, Mac, Linux. Go version 1.12/1.13 both with Modules and GOPATH.
name: Release
on:
release:
types:
- published
jobs:
release:
name: Release
runs-on: ubuntu-latest

Dealing with expired certificates

  • Start the crc instance with the expired certificates (even if it's non-functional)
  • Download both scripts to the machine running the crc instance
  • Run fix-certs.sh
  • Once it successfully runs, the crc instance should become operational after a few minutes

Note: This script has been tested on linux and macos

@tmckayus
tmckayus / remote_crc.md
Last active May 17, 2024 21:58
Running 'crc' on a remote server

Overview: running crc on a remote server

This document shows how to deploy an OpenShift instance on a server using CodeReady Containers (crc) that can be accessed remotely from one or more client machines (sometimes called a "headless" instance). This provides a low-cost test and development platform that can be shared by developers. Deploying this way also allows a user to create an instance that uses more cpu and memory resources than may be available on his or her laptop.

While there are benefits to this type of deployment, please note that the primary use case for crc is to deploy a local OpenShift instance on a workstation or laptop and access it directly from the same machine. The headless setup is configured completely outside of crc itself, and supporting a headless setup is beyond the mission of the crc development team. Please do not ask for changes to crc to support this type of deployment, it will only cost the team time as they politely decline :)

The instructions here were tested with F

@sub-mod
sub-mod / crc_remote_laptop.md
Last active July 9, 2022 12:03
Setup CodeReady Containers on Remote Server and connect from Laptop 4.2

Following steps work for F29 for F31 look here

On the remote host

cat /etc/redhat-release
Fedora release 29 (Twenty Nine)

Install packages

@robbmanes
robbmanes / running_coredns_as_a_dns_server_in_a_container.md
Last active March 13, 2019 09:20
Running CoreDNS as a DNS Server in a Container
title published description tags
Running CoreDNS as a DNS Server in a Container
true
How to manually configure CoreDNS to serve your own DNS zones and
dns, coredns, container, docker

This article is published at:

If you've ever needed to or wanted to set up your own DNS server, then this is for you. I recently found myself in possession of a Raspberry Pi, and instead of relying on my home router for DHCP and DNS, I decided to serve both from containers on the Pi, so I could resolve all of my hosts with their respective names when I VPN back to my network. I intended to have all other requests forwarded to another server that weren't in my local network, but still service local systems with my customized hostnames.

@surajnarwade
surajnarwade / operatorTalks.md
Created January 25, 2019 06:03
Talks related to Controllers & Operators
@laggardkernel
laggardkernel / startup-time-of-zsh.md
Last active June 21, 2024 15:27
Comparison of ZSH frameworks and plugin managers

Comparison of ZSH frameworks and plugin managers

Changelog

  • update 1: add a FAQ section
  • update 2: benchmark chart and feature comparison table
  • update 3:
    • improve the table with missing features for antigen
    • new zplg times result

TLDR

@mfojtik
mfojtik / run.sh
Created November 7, 2018 10:58
POC: Run RHCOS via xhyve on OSX with ignition
# These have to be extracted from the qcow2 image
# TODO: Provide these via docker image?
KERNEL="vmlinuz-3.10.0-862.14.4.el7.x86_64"
INITRD="initramfs-3.10.0-862.14.4.el7.x86_64.img"
# This is where the magic happens
#
# To change the ignition (node type), you can use 'bootstrap', 'master' or 'worker'
# coreos.config.url=http://192.168.0.168:8080/bootstrap.ign
#