This is a list of useful commands I found when using Windows
Run this on Command Prompt
copy NUL main.go
[dubuc@centos2-test ~]$ systemctl cat mnt.mount | |
# /run/systemd/generator/mnt.mount | |
# Automatically generated by systemd-fstab-generator | |
[Unit] | |
SourcePath=/etc/fstab | |
Documentation=man:fstab(5) man:systemd-fstab-generator(8) | |
RequiresOverridable=systemd-fsck@dev-disk-cloud-azure_resource\x2dpart1.service | |
After=systemd-fsck@dev-disk-cloud-azure_resource\x2dpart1.service |
# cloud-init | |
device_aliases: {'ephemeral0': '/dev/sdb'} | |
disk_setup: | |
ephemeral0: | |
type: mbr | |
layout: True | |
overwrite: False | |
fs_setup: |
git rev-list --objects --all \ | |
| git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \ | |
| awk '/^blob/ {print substr($0,6)}' \ | |
| sort --numeric-sort --key=2 \ | |
| cut --complement --characters=13-40 \ | |
| numfmt --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest |
image: microsoft/dotnet:2.0.0-sdk | |
pipelines: | |
default: | |
- step: | |
script: | |
# This is necessary to pull from private repository. It is using Pipelines Env Vars | |
- git remote set-url origin https://$BITBUCKET_USERNAME:$BITBUCKET_PASSWORD@bitbucket.org/team/repo.git | |
- git submodule update --init --recursive | |
- export PROJECT_NAME=myProjectName |
import os | |
import uuid | |
import subprocess | |
from contextlib import contextmanager | |
@contextmanager | |
def mspdbsrv_execute(): | |
os.environ['_MSPDBSRV_ENDPOINT_'] = str(uuid.uuid4()) | |
mspdbsrv = os.path.join(os.environ['ProgramFiles(x86)'], 'Microsoft Visual Studio 14.0', 'Common7', 'IDE', 'mspdbsrv.exe') # VS2015 |
env.GIT_COMMIT_EMAIL = sh ( | |
script: 'git --no-pager show -s --format=\'%ae\'', | |
returnStdout: true | |
).trim() |
These are a few Microsoft forward links I've found while writing automation scripts. | |
Visual Studio 2015 Update 3 ISO | |
https://go.microsoft.com/fwlink/?Linkid=708984 | |
ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0 | |
http://go.microsoft.com/fwlink/?LinkID=309563 | |
Tools for Universal Windows Apps (v1.2) | |
http://go.microsoft.com/fwlink/?LinkID=619614 |