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
<#Decode's bencoded data from a file | |
# -Pieces enables reading of piece data, otherwise stops parsing when it sees this list start (to save time) | |
# -Ignore ignores errors such as duplicate key names in dictionaries (new entries are discarded) | |
# -Parse recognised object entries from bittorrent clients are parsed (eg comments & filepaths as utf8, pieces, if enabled, as hexstrings) | |
# -Debug outputs extra info to the console regarding the place in the encoded object we are currently reading for when an error occurs | |
#> | |
Param([switch]$Pieces, [switch]$Ignore, [switch]$Parse, [switch]$Debug) | |
$state = [PSCustomObject]@{ | |
key = $NULL | |
output = $NULL |
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
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
'3705688449 ,setup_cyberpunk_2077_build_4902785change_6408866_with_ep1_rl_(64bit)_(67718)-25.bin | |
2124976 ,setup_cyberpunk_2077_build_4902785change_6408866_with_ep1_rl_(64bit)_(67718).exe | |
30669496 ,setup_cyberpunk_2077_redmod_build_4902785change_6408866_with_ep1_rl_(64bit)_(67718).exe' -split '\n' ` | |
| %{ | |
$expected,$name = $_ -split ',' | |
$expected = [UInt32]$expected | |
$diff = (gci $name).Length - $expected | |
if (!$diff) { | |
return |
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
./single.ps1 bob paris | |
./private.ps1 steve newyork | |
./private.ps1 greg seattle | |
./private.ps1 emma newyork | |
<# | |
Will create | |
a wireguard tunnel to paris using bob's credentials in the init [non-]namespace, | |
a tunnel to seattle with the interface name "seattle" using greg's config under the namespace "greg", | |
and two tunnels to newyork (interfaces both called 'newyork') using options from steve and emma (under namespaces of the same name respectively) |
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
# |
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
cd $env:LOCALAPPDATA | |
( | |
'Ubisoft*', | |
'Grip', | |
'Evil*', | |
'ride3', | |
'Squad*', | |
'Remnant', | |
'Mordhau', | |
'Dead*', |
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
class RC { | |
hidden $type = $NULL | |
hidden $code = $NULL | |
hidden $size = $NULL | |
hidden RC($type) { | |
$this.type = $type | |
$this.size = $type::New(1)[0]::MaxValue + 1 | |
} | |
NewerOlder