pyranja / profile Goto Github PK
View Code? Open in Web Editor NEWMy .dotfiles and utilities
License: The Unlicense
My .dotfiles and utilities
License: The Unlicense
Ask for confirmation before
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).
Return actual version instead ?
Include [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
in profile.
Provide a portable style file similar to project .git* templates or find a way to share default settings via user $HOME.
Collect all around useful tools/programs and provide an install script for them
Writes a .spread file to current location including all currently existing subfolders. Allow to override written items using -Include or -Exclude flags.
Spread-Expression -> Invoke-SpreadExpression ?
Depends on #10
Ensures the git config
command does not write to the generated ~/.config/git/config
file.
Should download latest github release and install it
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
~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
*.ps1
from ~\.config\powershell\*_profile.ps1
Keep module files inside a py-profile folder inside archive
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.
Do not use Write-Verbose but Write-Host
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
λ 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
Set a default Cmdlet Prefix in PyPs module in the manifest descriptor and use semantic naming for Cmdlets
e.g. Do not set for .xml / .json
Use #Requires -Version
to fix minimum shell version and Set-StrictMode
to fail fast on undefined behaviour.
Instead provide it as init script for project folders. Maybe use the same for .gitignore ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.