npm v3.10 - ◾
npm install -g npm
# Downgrade to a specific version
npm install -g npm@6
var fs = require('fs'); | |
var walkPath = './'; | |
var walk = function (dir, done) { | |
fs.readdir(dir, function (error, list) { | |
if (error) { | |
return done(error); | |
} |
[mergetool] | |
prompt = false | |
keepBackup = false | |
keepTemporaries = false | |
[merge] | |
tool = winmerge | |
[mergetool "winmerge"] | |
name = WinMerge |
{ | |
"globals" : | |
{ | |
"alwaysShowTabs" : true, | |
"defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"initialCols" : 120, | |
"initialRows" : 30, | |
"keybindings" : | |
[ | |
{ |
winget install --id=Google.Chrome -e ; winget install --id=Mozilla.Firefox -e ; winget install --id=Discord.Discord -e ; winget install --id=WhatsApp.WhatsApp -e ; winget install --id=OpenJS.Nodejs -e ; winget install --id=Microsoft.WindowsTerminal -e ; winget install --id=Amazon.AWSCLI -e ; winget install --id=CPUID.CPU-Z -e ; winget install --id=Cryptomator.Cryptomator -e ; winget install --id=hiyohiyo.CrystalDiskInfo -e ; winget install --id=Git.Git -e ; winget install --id=plex.plexmediaplayer -e ; winget install --id=Microsoft.PowerToys -e ; winget install --id=SlackTechnologies.Slack -e ; winget install --id=Microsoft.Skype -e ; winget install --id=Valve.Steam -e ; winget install --id=Spotify.Spotify -e ; winget install --id=Microsoft.Teams -e ; winget install --id=Ubisoft.Uplay -e ; winget install --id=Microsoft.VisualStudioCode -e ; winget install --id=RARLab.WinRAR -e ; winget install --id=WiresharkFoundation.Wireshark -e |
function InstallWinGet() | |
{ | |
$hasPackageManager = Get-AppPackage -name "Microsoft.DesktopAppInstaller" | |
if(!$hasPackageManager) | |
{ | |
$releases_url = "https://api.github.com/repos/microsoft/winget-cli/releases/latest" | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
$releases = Invoke-RestMethod -uri "$($releases_url)" |
npm install -g npm
# Downgrade to a specific version
npm install -g npm@6
# ---- | |
# This script will install PowerShell Universal on Linux as a service | |
# This has been tested on Ubuntu 20.04 (ARM64) on a Raspberry Pi 4 | |
# ---- | |
# Dependencies: | |
# wget | |
# unzip | |
# | |
# Make sure they are installed | |
# ---- |
// ###################################################################### | |
// ## | |
// text-shadow() ## | |
// ================================================================= ## | |
// URL: http://compass-style.org/reference/compass/css3/text-shadow/ ## | |
// ## | |
// USAGE: ## | |
// ----------------------------------------------------------------- ## | |
// @include text-shadow(1px 1px 2px #333333); ## | |
// ## |
/** | |
** Postman as of the date of this writing does not support auto-refreshing of Oauth-2 tokens. | |
** This is an exmaple on how in one can refresh their Oauth-2 tokens just using the pre-request scripts. | |
** Pre-requisites: You need to have a refresh token. You can use the Postman app to get one. | |
**/ | |
// Set all these variables in an environment or at collection level | |
let tokenUrl = pm.variables.get('tokenUrl'), | |
clientId = pm.variables.get('clientId'), | |
clientSecret = pm.variables.get('clientSecret'), |