Skip to content

Instantly share code, notes, and snippets.

View atulsingh0's full-sized avatar
🎯
Focusing

Atul S atulsingh0

🎯
Focusing
View GitHub Profile
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active July 2, 2024 17:58
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@lordlycastle
lordlycastle / update_refs failed.sh
Last active June 6, 2024 20:52
When you get update_ref failed for ref error in git.
# Rename from 'C:/Users/Repos/phishfoodvr/.git/refs/remotes/origin/CHA/main.lock' to 'C:/Users/Repos/phishfoodvr/.git/refs/remotes/origin/CHA/main' failed. Should I try again? (y/n) n
# error: update_ref failed for ref 'refs/remotes/origin/CHA/main': couldn't set 'refs/remotes/origin/CHA/main'
$ cd $(git rev-parse --show-toplevel) # if necessary
$ rm -rf .git/refs/remotes/origin # remove all origin/*
$ mkdir .git/refs/remotes/origin # create empty origin/
$ git fetch origin # repopulate origin/*
@soulchips
soulchips / config.yaml
Last active July 21, 2022 16:47
realitycheck with vm-jobs behind a proxy
version: 2
resource_job_defaults: &resource_job_defaults
docker:
- image: 'cimg/base:2021.02-20.04'
steps:
- run:
name: verify required Environment Variables
command: |
if [ -z "${CIRCLE_HOSTNAME}" -o -z "${CIRCLE_TOKEN}" ];then