Skip to content

Instantly share code, notes, and snippets.

@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
// utils/testing-library.js
// Set up a custom renderer for @testing-library/react
import { render as originalRender } from '@testing-library/react'
import diff from 'jest-diff'
import chalk from 'chalk'
const render = (...args) => {
const rendered = originalRender(...args)