# display available drives
Get-PSDrive
# create local driver directory
mkdir c:\drivers
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 Get-ScoopRoot { | |
$scoopdir = & { | |
$env:SCOOP, (scoop config 'rootPath'), "$env:USERPROFILE\scoop" | Where-Object { -not [String]::IsNullOrEmpty($_) } | Select-Object -First 1 | |
} 6>$null | |
$scoopdir | |
} | |
function Get-ScoopPackageVersions { | |
param ( | |
[Parameter(Position = 1, Mandatory = $true)] |
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
#!/usr/bin/env python3 | |
# NOTE: this script is deprecated; | |
# maintained version with SVG icons: https://github.com/glowinthedark/index-html-generator/ | |
# --- | |
# Copyright 2020 glowinthedark | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. |
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
#!/usr/bin/env python3 | |
# Recursively generate index.html files for | |
# all subdirectories in a directory tree | |
########################################################################## | |
## ❗️❗️❗️ WARNING: This version is outdated and unmaintained! | |
## For an up-to-date version with cleaner CSS styling see: | |
## https://gist.github.com/glowinthedark/625eb4caeca12c5aa52778a3b4b0adb4 | |
########################################################################## |
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
// ==UserScript== | |
// @name Aliexpress_Billy_edit | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://trade.aliexpress.com/orderList.htm* | |
// @grant unsafeWindow | |
// @grant GM_xmlhttpRequest | |
// @grant GM_setClipboard |
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
Clear-Host | |
Write-Host "1 -> Never check for updates" | |
Write-Host "2 -> Disable Windiws Firewall" | |
Write-Host "3 -> Disable Windiws Defender" | |
Write-Host "Enter any character to exit" | |
Write-Host | |
switch(Read-Host "Choose Window Update Settings"){ |
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
ForegroundColour=204,204,204 | |
BackgroundColour=0,0,0 | |
CursorColour=242,242,242 | |
Black=12,12,12 | |
BoldBlack=118,118,118 | |
Red=197,15,31 | |
BoldRed=231,72,86 | |
Green=19,161,14 | |
BoldGreen=22,198,12 | |
Yellow=193,156,0 |
Last Revised: 2021-04-29 (added the section about file creation and default file naming.)
I made this guide to help me or anyone else who is interested in editing the Windows Registry.
It is possible to modify the entries of the Windows Registry. To do this, you need to create a file that ends with the extension .reg.
.reg file encoding:
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
// ==UserScript== | |
// @name Aliexpress | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://trade.aliexpress.com/orderList.htm* | |
// @grant unsafeWindow | |
// @grant GM_xmlhttpRequest | |
// @grant GM_setClipboard |
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
##################### | |
# | |
# Use this with or without the .gitattributes snippet with this Gist | |
# create a fixle.sh file, paste this in and run it. | |
# Why do you want this ? Because Git will see diffs between files shared between Linux and Windows due to differences in line ending handling ( Windows uses CRLF and Unix LF) | |
# This Gist normalizes handling by forcing everything to use Unix style. | |
##################### | |
# Fix Line Endings - Force All Line Endings to LF and Not Windows Default CR or CRLF |
NewerOlder