Skip to content

Instantly share code, notes, and snippets.

View adilio's full-sized avatar
Just a boy. Sitting in front of a console. Asking it to do stuff.

Adil Leghari adilio

Just a boy. Sitting in front of a console. Asking it to do stuff.
View GitHub Profile
@steviecoaster
steviecoaster / largepkg.ps1
Last active August 23, 2022 15:12
large package example
$ErrorActionPreference = 'Stop';
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url = 'https://server:8443/repository/choco-install/npp.7.9.3.Installer.x64.zip'
$zipChecksum = 'c3a5c0d10747f80d0e60767b92a8ee4e8f0bdc5067b8747368fcf322926f887c'
$zipArgs = @{
PackageName = $env:ChocolateyPackageName
url = $url
unzipLocation = $toolsDir
checksum = $zipChecksum
@brettmillerb
brettmillerb / BeRightBack.html
Last active April 7, 2021 17:17
Twitch Stream Starting Animation
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
body {
MIT License
Copyright (c) 2019
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@Jaykul
Jaykul / Test-Help.ps1
Created May 24, 2019 03:40
Just an example of authoring help with parameter help in-line
function Test-Help {
<#
.SYNOPSIS
Test the help
.EXAMPLE
Get-Help Test-Help
Shows the help for this function, which is all this function is good for
#>
[CmdletBinding()]
@scrthq
scrthq / git.aliases.ps1
Created January 25, 2019 21:35
Handy Git Aliases
# Run from PowerShell
$aliasList = @(
"a = !git add . && git status"
"aa = !git add . && git add -u . && git status"
"ac = !git add . && git commit"
"acm = !git add . && git commit -m"
"alias = !git config --get-regexp '^alias\.' | sort"
"amend = !git add -A && git commit --amend --no-edit"
"au = !git add -u . && git status"
@fatherjack
fatherjack / PowerShell Prompt.ps1
Last active August 23, 2019 21:32
provides some useful information to your PowerShell prompt
function Prompt {
<#
.Synopsis
Your custom PowerShell prompt
# borrowing heavily from https://dbatools.io/prompt but formatting the execution time without using the DbaTimeSpanPretty C# type
.Description
Custom prompt that includes the following features:
@NickCraver
NickCraver / Windows10-Setup.ps1
Last active April 1, 2024 10:52
(In Progress) PowerShell Script I use to customize my machines in the same way for privacy, search, UI, etc.
##################
# Privacy Settings
##################
# Privacy: Let apps use my advertising ID: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0
# To Restore:
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1
# Privacy: SmartScreen Filter for Store Apps: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0