Skip to content

Instantly share code, notes, and snippets.

View polaroidkidd's full-sized avatar
🤔

Daniel Einars polaroidkidd

🤔
  • ti&m AG
  • Zürich, Switzerland
View GitHub Profile
{
"folders": [],
"v": 1,
"name": "in28minutes-spring",
"requests": [
{
"headers": [],
"endpoint": "http://localhost:8080/users",
"method": "GET",
"auth": {
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/dle/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@polaroidkidd
polaroidkidd / cleanNodeInstall.sh
Last active June 27, 2024 13:39
Helper scripts for wiping yarn, npm & pnpm node_modules and reinstalling
# Function to delete node_modules directory, clean package
# manager's global cache and install dependencies based on lock file
# Usage: __nodeWipeInstall
function __nodeWipeInstall(){
RED=`tput setaf 1`
GREEN=`tput setaf 2`
RESET=`tput sgr0`
BOLD=$(tput bold)
echo -e "${BOLD}${GREEN}*************** DELETING NODE_MODULES *******************${RESET}"
find . -name "node_modules" -type d -prune -print -exec rm -rf "{}" \;