Skip to content

Instantly share code, notes, and snippets.

@dev-rowbot
dev-rowbot / push_to_verdaccio.py
Created Jun 8, 2018
Import packages from an exported verdaccio "storage" folder to a running Verdaccio instance
View push_to_verdaccio.py
#!/usr/bin/python
from os import listdir, chdir, getcwd
from os.path import isfile, join
import re
from subprocess import call
import json
with open('.sinopia-db.json') as f:
data = json.load(f)
View RunScriptAsScheduledTask.ps1
param (
[ValidateNotNullOrEmpty()]
[string] $ScriptPath,
[ValidateNotNullOrEmpty()]
[string] $TaskName
# Pass in as many arguments as you want....
)
# Setup error handling.
Trap