This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Install-Scoop { | |
New-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" ` | |
-propertyType ExpandString ` | |
-name "SCOOP_GLOBAL" ` | |
-value "${ENV:PROGRAMDATA}\scoop" | |
Invoke-WebRequest 'https://get.scoop.sh' | Invoke-Expression | |
'scoop install Git-with-OpenSSH Sudo Which --global' | Set-Content -path temp_script.ps1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Types> | |
<Type> | |
<Name>System.String</Name> | |
<Members> | |
<ScriptProperty> | |
<Name>ToBase64</Name> | |
<GetScriptBlock> | |
[System.Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes($this)) | |
</GetScriptBlock> | |
</ScriptProperty> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## http://sptrenches.com/2017/08/build-treevie-xml-powershell.html | |
## Example: .\New-XMLBrowser.ps1 -XMLPath "C:\fba.azdev.l80\web.config" -RootElementName configuration | |
[CmdletBinding()] | |
param ( | |
[parameter(Mandatory=$true)] | |
[string]$XMLPath, | |
[parameter(Mandatory=$true)] | |
[string]$RootElementName | |
) | |
BEGIN { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; LogonDesktop - run scripts on the Winlogon desktop | |
; 26/02/17 - qwerty12 | |
; Modified version of RunAsTask() by SKAN: https://autohotkey.com/boards/viewtopic.php?t=4334 | |
LogonDesktop_AddTask(runNow, runOnStartup) | |
{ | |
local TaskName, XML, TaskSchd, TaskRoot, RunAsTask | |
local TASK_CREATE := 0x2, TASK_LOGON_SERVICE_ACCOUNT := 5, scriptDir := A_ScriptDir | |
try |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; AutoHotkey Version: 1.x | |
; Language: English | |
; Platform: Win9x/NT Windows 8 | |
; Author: Dallas Spohn <dallas.spohn@m-files.com> | |
; | |
; Script Function: | |
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder) | |
;Cygwin to tail a log. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv | |
#SingleInstance, Force | |
; date | |
month := 5 | |
dayStart := 1 | |
dayEnd := 31 | |
; time | |
hours := [9, 4] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BoxStarter Config Gists | |
Includes | |
- BoxStarter-Applications.txt | |
- BoxStarter-Window-10.txt | |
- Windows $Profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance,Force | |
v:=[],OnMessage(0x4E,"notify"),OnMessage(0x5,"arrange"),vversion:=new xml("version","lib\version.xml") | |
startup(),filecheck(),v.lastlist:=[],misc:=new xml("misc") | |
settings:=new xml("settings","lib\settings.xml"),keywords(),files:=new xml("files"),positions:=new xml("positions","lib\positions.xml"),access_token:=settings.ssn("//@access_token").text | |
idea:=new xml("idea","lib\ideas.xml") | |
global v,sci,settings,commands,files,positions,vversion,access_token,misc,idea | |
menu(),defaults(),gui(),hotkeys(),titlechange() | |
ControlFocus,Scintilla1,% aid() | |
if settings.ssn("//ideas").text{ | |
ideas() |