go to discord.com/app, you dont even have to log in
put a #
and paste in your discord video into the url and hit enter
eg https://discord.com/channels/@me#https://cdn.discordapp.com/attachments/155867105789476864/1172040204224299008/Oxw91K9.mp4?ex=655ede80&is=654c6980&hm=22097e072e6c0f31a60ededef1d5d09505f88b65a16d875c8b9b3bfca5692fbc&
now replace the address bar by typing javascript: (do not hit enter)
then after the colon paste the following
bob = open().document;bob.write(``);bob.close();
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
<# | |
#Required: | |
Install-Module -Name LoopbackAdapter -MinimumVersion 1.2.0.0 | |
#run in admin terminal | |
#you do NOT need to disable/remove SMB 1.0/CIFS | |
#Troubleshooting: | |
#You can check [attempted] forwardings and [successful] listeners here, respectively | |
netsh interface portproxy show v4tov4 |
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
#https://serverfault.com/questions/532065/how-do-i-diff-two-folders-in-windows-powershell/1041111#1041111 | |
Function DirDiff { Param($a, $b, [switch]$Force, [switch]$Verbose) | |
$a,$b ` | |
| DiffFolders -Force:$Force -Verbose:$Verbose ` | |
| %{ | |
$item = $_ | |
switch -Exact ($item.event) { | |
'Added' { ">`t$($item.value)" } | |
'Deleted' { "<`t$($item.value)" } |
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
# |
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
sudo btrfs filesystem usage -T /mnt/* | |
btrfs fi df /mnt/* | |
sudo btrfs device stats /mnt/* |
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
&{ Param($hostname, $port) | |
$socket = $NULL | |
$stream = $NULL | |
try { | |
$socket = [System.Net.Sockets.TCPClient]::new( | |
[System.Net.IPAddress]::Parse( | |
[System.Net.Dns]::GetHostAddresses($hostname) | |
), | |
$port | |
) |
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
<# calling the wslMount function will attach one or more physical disks to a wsl instance | |
-drives | |
This parameter specifies which disks, and is an array of what Windows calls the Friendly Name. | |
You can see these by calling `Get-PhysicalDisk`. | |
-count | |
The list of friendly names are not necessarily unique (eg if you have multiple of the same model of drive). | |
Count is required so that you know how many disks have been matched, and will be passed to WSL. | |
-wsl | |
The name of the wsl install you want to interact with, defaults to the default wsl instance. | |
-mount |
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
#top for networking | |
sudo iftop -P -B | |
#shows connexions going through listened port | |
sudo tcptrack -i eno1 port 8080 | |
#get process listening on port | |
sudo netstat -tulpn | ag 8080 | |
#top for disks |
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
Param($file) | |
$file = Get-Item $file | |
mkvinfo $file.FullName ` | |
| &{ | |
Begin { | |
$current = $NULL | |
} | |
Process { | |
if (!$current) { | |
} |
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
#just to name the gist as per https://stackoverflow.com/a/19904644/2518317 |
NewerOlder