Skip to content

Instantly share code, notes, and snippets.

View perXautomatik's full-sized avatar

perXautomatik

View GitHub Profile
@perXautomatik
perXautomatik / Install-ChocoAndScoop.ps1
Created April 14, 2022 13:09 — forked from turboBasic/Install-ChocoAndScoop.ps1
Install Chocolatey and Scoop package managers for Windows + basic set of utilities and software
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
@perXautomatik
perXautomatik / My.Types.ps1xml
Last active April 12, 2022 10:44 — forked from bradwilson/My.Types.ps1xml
My profile.ps1 (and several related scripts)
<Types>
<Type>
<Name>System.String</Name>
<Members>
<ScriptProperty>
<Name>ToBase64</Name>
<GetScriptBlock>
[System.Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes($this))
</GetScriptBlock>
</ScriptProperty>
@perXautomatik
perXautomatik / .DS_Store
Last active October 4, 2022 22:41 — forked from apfelchips/Profile.ps1
my crossplatform PowerShell Profile
@perXautomatik
perXautomatik / New-XMLBrowser.ps1
Created March 30, 2022 11:55 — forked from ivanyankulov/New-XMLBrowser.ps1
PowerShell XML Browser
## 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 {
@perXautomatik
perXautomatik / .DS_Store
Last active February 14, 2024 10:33 — forked from LittleNewton/Microsoft.PowerShell_profile.ps1
PowerShell 7.1 启动命令
@perXautomatik
perXautomatik / LogonDesktop.ahk
Created March 4, 2022 15:20 — forked from qwerty12/LogonDesktop.ahk
Bunch of functions to help facilitate running AutoHotkey on the Winlogon desktop - https://autohotkey.com/boards/viewtopic.php?f=6&t=27709
; 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
@perXautomatik
perXautomatik / default.ahk
Created March 4, 2022 15:18
auto hot key
;
; 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.
@perXautomatik
perXautomatik / Scheduler.ahk
Created March 4, 2022 15:15 — forked from peterthehan/Scheduler.ahk
Automate a part of tweet scheduling using the Twitter UI.
#NoEnv
#SingleInstance, Force
; date
month := 5
dayStart := 1
dayEnd := 31
; time
hours := [9, 4]
@perXautomatik
perXautomatik / A Windows Setup
Created March 4, 2022 15:15 — forked from BarDev/A Windows Setup
Windows Setup
BoxStarter Config Gists
Includes
- BoxStarter-Applications.txt
- BoxStarter-Window-10.txt
- Windows $Profile
@perXautomatik
perXautomatik / AHK Studio.ahk
Created March 4, 2022 14:13 — forked from maestrith/AHK Studio.ahk
Posted using AHK Studio
#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()