<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| # http://boxstarter.org/package/url? | |
| ##################### | |
| # BEGIN CONFIGURATION | |
| ##################### | |
| #region Initial Windows Config | |
| Install-WindowsUpdate -AcceptEula | |
| Update-ExecutionPolicy Unrestricted |
| function Add-Path() { | |
| [Cmdletbinding()] | |
| param([parameter(Mandatory=$True,ValueFromPipeline=$True,Position=0)][String[]]$AddedFolder) | |
| # Get the current search path from the environment keys in the registry. | |
| $OldPath=(Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH).Path | |
| # See if a new folder has been supplied. | |
| if (!$AddedFolder) { | |
| Return 'No Folder Supplied. $ENV:PATH Unchanged' | |
| } | |
| # See if the new folder exists on the file system. |
| # Check if Running as Admin | |
| $IsAdmin = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator") | |
| if (-not $IsAdmin) | |
| { | |
| if ($MyInvocation.ScriptName -ne "") | |
| { | |
| try | |
| { | |
| Write-Host "Relanuching Script as Admin" |
| # Check if Running as Admin | |
| $IsAdmin = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator") | |
| if (-not $IsAdmin) { | |
| if ($MyInvocation.ScriptName -ne "") { | |
| try { | |
| Write-Host "Relanuching Script as Admin" | |
| $arg = "-file `"$($MyInvocation.ScriptName)`"" | |
| Start-Process "$psHome\powershell.exe" -Verb Runas -ArgumentList $arg -ErrorAction 'stop' | |
| } catch { |
| ###################################################### | |
| # Download custom PowerShell profile file | |
| ###################################################### | |
| Write-Host "Creating custom $profile for Powershell" | |
| if (!(test-path $profile)) { | |
| New-Item -path $profile -type file -force | |
| } | |
| Add-Content $profile ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/jplindgren/a3aefc76b1667e4fefa6a47f9974974e/raw/a6bceca451f08e765bd49e137656b1a25f4aa7b1/myprofile.ps1')) | |
| Write-Host |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="description" content="[Example of dinamic populated datalist]"> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>Example of dinamic populated datalist</title> | |
| </head> | |
| <body> | |
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
| [alias] | |
| co = checkout | |
| ci = commit | |
| st = status | |
| br = branch | |
| hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short | |
| type = cat-file -t | |
| dump = cat-file -p |