ssh root@ip
adduser username
passwrd username
| Param ( | |
| [Parameter(Mandatory=$true)] | |
| [string]$webSiteName, | |
| [Parameter(Mandatory=$true)] | |
| [string]$webSitePhysicalPath, | |
| [Parameter(Mandatory=$true)] | |
| [string]$webSiteAppPool, | |
| version: '3' | |
| services: | |
| nginx: | |
| image: nginx | |
| container_name: nginx | |
| ports: | |
| - '80:80' | |
| - '443:443' | |
| volumes: | |
| - 'nginx-config:/etc/nginx/conf.d' |
| import requests | |
| from requests.auth import HTTPBasicAuth | |
| import re | |
| from StringIO import StringIO | |
| import urllib | |
| JIRA_URL = 'https://your-jira-url.tld/' | |
| JIRA_ACCOUNT = ('jira-username', 'jira-password') | |
| # the JIRA project ID (short) | |
| JIRA_PROJECT = 'PRO' |
| #!/bin/bash | |
| # Functions ============================================== | |
| # return 1 if global command line program installed, else 0 | |
| # example | |
| # echo "node: $(program_is_installed node)" | |
| function program_is_installed { | |
| # set to 1 initially | |
| local return_=1 |
To update one dependency to its lastest version without having to manually open the package.json and change it, you can run
npm install {package-name}@* {save flags?}
i.e.
npm install express@* --save
For reference, npm-install
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="author" content="Martin Bean" /> | |
| <title>Twitter’s Bootstrap with Ryan Fait’s Sticky Footer</title> | |
| <link rel="stylesheet" href="css/bootstrap.min.css" /> | |
| <style> | |
| html, body { | |
| height: 100%; |
| @echo off | |
| rem initiate the retry number | |
| set errorCode=1 | |
| set retryNumber=0 | |
| set maxRetries=3 | |
| :RESTORE | |
| nuget restore %* | |
| rem problem? |
| //To view the content of the commits | |
| git cat-file -p SHA -p | |
| //add tag | |
| git tag -a $tagname$ -m "$tag message$" | |
| private static void AddFilesToUnitTestProject(FileInfo[] files, string measureBaseDirPath, string measureDataDirSuffix) | |
| { | |
| var unitTestProjectPath = measureBaseDirPath + _unitTestProjectFile; | |
| var unitTestProjectFile = XDocument.Load(unitTestProjectPath); | |
| var itemGroup = unitTestProjectFile.Nodes() | |
| .OfType<XElement>() | |
| .DescendantNodes() | |
| .OfType<XElement>().First(xy => xy.Name.LocalName == "ItemGroup"); | |
| foreach (var fileInfo in files) |