Coder Social home page Coder Social logo

profile's People

Contributors

pyranja avatar

Watchers

 avatar

profile's Issues

Detect "from another computer" taint on Install-Script during installation

Prevent installation if the installer package is tainted after the download.

This prevents follow-up failures, where each installed script is tainted. Tainted scripts require exec policy Unrestricted and require confirmation for each invocation.

Maybe this problem can is solved, when a proper installation path is available (chocolatey or PSGet).

Include intellij code style

Provide a portable style file similar to project .git* templates or find a way to share default settings via user $HOME.

Create-SpreadFile command

Writes a .spread file to current location including all currently existing subfolders. Allow to override written items using -Include or -Exclude flags.

Provide as chocolatey package

  • Adapt Install-PyProfile to work with choco installation
  • Move Upgrade-PyProfile into choco upgrade mechanism
  • Add choco uninstaller script

Depends on #10

Mark files managed by the profile

  • Add a comment to files installed by profile, warning that changes will be overwritten un update/reinstall
  • Warn that installation may overwrite files // implement ShouldProcess for installer

Installer script

Requirements

  • copy powershell module to module path
  • copy dotfiles to user home

Add New-Vagrantfile command

Creates a base Vagrantfile with custom settings to allow running boxes on HyperV.

Example:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure('2') do |config|
  config.vm.box = 'kmm/ubuntu-xenial64'

  config.vm.network :public_network, bridge: 'vm-nat'
  config.vm.synced_folder '.', '/vagrant', type: 'smb', smb_username: ENV['HOST_USER'], smb_password: ENV['HOST_SECRET'], mount_options: ["domain=#{ENV['USERDNSDOMAIN']}"]

  config.vm.provider :hyperv do |hyperv|
    hyperv.vmname = 'node'
    hyperv.cpus = 2
    hyperv.memory = 1024
  end
end

Configure modular $PROFILE

  • Install base $PROFILE at default location ~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
  • Source all *.ps1 from ~\.config\powershell\*_profile.ps1

Switch to psake build

  • Replace build scripts with psake tasks
  • Utilize psake properties to customize build
  • Extract and refactor appveyor pester integration

Summary of Invoke-SpreadExpression

Display total, success and failure count of spread execution, to allow a quick check on results, e.g.

> {success} of {total} executions succeeded

Print via Write-Host to avoid altering execution output. Use Write-Warning if at least one execution failed.

Get-VcsState

Provide an overview of the vcs state in each sub-folder, that is a repository.

Search children of current/given location for .svn or .git directories. Excute the appropriate command (git status, svn status) and display parsed results in a directory listing

C:\>Get-VcsState
repo-1    No changes
repo-2    Uncommited changes
repo-5    No changes

Command output should be an object with properties

  • directory path
  • vcs state (enum?)

Initialize-PyProject fails when run from another directory

λ  Initialize-PyProject com.commend.sipt.health


    Directory: C:\Users\boch\projects\csipt


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----       30.11.2017     23:33                com.commend.sipt.health
Initialized empty Git repository in C:/Users/boch/projects/csipt/com.commend.sipt.health/.git/
ForEach-Object : Exception calling "WriteAllText" with "3" argument(s): "Could not find a part of the path 'C:\Users\boch\com.commend.sipt.health\.editorconfig'."
At C:\Program Files\WindowsPowerShell\Modules\py-ps\0.1.115\Initialize-Project.ps1:123 char:61
+ ... ntent | ForEach-Object { $_.Replace("`r`n","`n") } | ForEach-Object {
+                                                          ~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [ForEach-Object], MethodInvocationException
    + FullyQualifiedErrorId : DirectoryNotFoundException,Microsoft.PowerShell.Commands.ForEachObjectCommand

Configure common git aliases

  • co -> checkout
  • st -> status (with concise summary)
  • unstage -> reset HEAD --
  • summary -> branch name + concise status (add, mod, del counts) + last 10 commit log one liner

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.