Skip to content

Instantly share code, notes, and snippets.

@vsramalwan
vsramalwan / multi-container.yml
Last active October 13, 2024 15:14
multi-container.yml
apiVersion: v1
kind: Pod
metadata:
name: multi-container-pod
spec:
containers:
- name: nginx-container
image: nginx:latest
ports:
- containerPort: 80
@vsramalwan
vsramalwan / GitConfigHttpProxy.md
Created August 14, 2023 14:35 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@vsramalwan
vsramalwan / Git_Behind_Proxy.md
Created August 14, 2023 14:10 — forked from ozbillwang/Git_Behind_Proxy.md
Configure Git to use a proxy (https or SSH+GIT)
@vsramalwan
vsramalwan / get-latest-tag-on-git.sh
Created June 8, 2022 11:30 — forked from rponte/get-latest-tag-on-git.sh
Getting latest tag on git repository
# The command finds the most recent tag that is reachable from a commit.
# If the tag points to the commit, then only the tag is shown.
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object
# and the abbreviated object name of the most recent commit.
git describe
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix:
git describe --abbrev=0
# other examples
@vsramalwan
vsramalwan / github-actions-notes.md
Created January 13, 2022 20:40 — forked from br3ndonland/github-actions-notes.md
Getting the Gist of GitHub Actions
@vsramalwan
vsramalwan / autobahn.md
Created July 21, 2021 08:56 — forked from LilithWittmann/autobahn.md
autobahn.md
@vsramalwan
vsramalwan / curl.md
Created March 17, 2021 10:53 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@vsramalwan
vsramalwan / nvmCommands.js
Last active February 18, 2021 17:24 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list installed versions of node (via nvm)
nvm ls
// install specific version of node
nvm install 6.9.2
// set default version of node
// source: https://learnxinyminutes.com/docs/typescript/
// There are 3 basic types in TypeScript
let isDone: boolean = false;
let lines: number = 42;
let name: string = "Anders";
// But you can omit the type annotation if the variables are derived
// from explicit literals
let isDone = false;
let lines = 42;
@vsramalwan
vsramalwan / settings.json
Last active July 3, 2020 17:54
VSCode settings
{
"debug.console.fontSize": 14,
"editor.autoClosingBrackets": "languageDefined",
"editor.codeLens": true,
"editor.colorDecorators": true,
"editor.dragAndDrop": true,
"editor.fontFamily": "Source Code Pro for Powerline",
"editor.fontSize": 18,
"editor.fontWeight": "500",
"editor.lightbulb.enabled": true,