Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
#!/bin/sh | |
# | |
# chkconfig: 2345 55 25 | |
# Description: Nginx init.d script, put in /etc/init.d, chmod +x /etc/init.d/nginx | |
# For Debian, run: update-rc.d -f nginx defaults | |
# For CentOS, run: chkconfig --add nginx | |
# | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all |
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
This solution fixes the error caused by trying to run npm update npm -g
. Once you're finished, you also won't need to use sudo
to install npm modules globally.
Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.
'use strict'; | |
const doc = require('dynamodb-doc'); | |
const dynamo = new doc.DynamoDB(); | |
const Q = require('kew'); | |
module.exports.handler = (event, context, callback) => { | |
function putItem() { | |
const defer = Q.defer(); |
*/5 * * * * /usr/local/bin/foxdd 1>/dev/null 2>&1 |
#/bin/sh | |
softether_version=v4.32-9731-beta | |
softether_date_build=2020.01.01 | |
softether_release=softether-vpnserver-$softether_version-$softether_date_build-linux-arm_eabi-32bit.tar.gz | |
softether_release_url=https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/$softether_version/$softether_release | |
is_user_root () { [ ${EUID:-$(id -u)} -eq 0 ]; } |
docker pull docker.bintray.io/jfrog/artifactory-oss:latest | |
docker run --name artifactory -d -p 8081:8081 docker.bintray.io/jfrog/artifactory-oss | |
# In browser open http://localhost:8081 and follow basic steps | |
# Add new remote repository: http://localhost:8081/artifactory/webapp/#/admin/repositories/remote | |
# URL: https://registry.npmjs.org | |
# RepositoryLayout: NPM default | |
# Add new virtual repository of type "Generic" using remote repository above |
####################### | |
<# | |
.SYNOPSIS | |
Installs an SSIS project to a SSISDB. | |
.DESCRIPTION | |
I created this by modifying demo script shared by Bill Fellows through PASS session "Understanding the SSIS 2012 Deployment Model [LT-101]" | |
The Install-ISProject script installs an ispsc file to a SSISDB using MOM. | |
Works for 2012 and higher | |
.EXAMPLE | |
./Install-ISProject.ps1 -IspacFullName "D:\App_temp\SSIS\Test2\bin\Development\Test2.ispac" -ServerInstance "SpeakSQL\JY2012" -CatalogFolderName "DEV" -ISProjectName "test2" |
function Export-SsisPackages | |
{ | |
[CmdletBinding()]param( | |
[parameter(ValueFromPipeline)] | |
[ValidateScript({Test-Path $_})] | |
[string]$OutputPath, | |
[string]$DatabaseServerName = ".", | |
[string]$SsisCatalogDatabaseName = "SSISDB" | |
) | |