View alignbytes.ps1
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 |
View _wireguard.ps1
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) |
View monitoring.sh
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 |
View _ffmpeg.ps1
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
# |
View free.ps1
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*', |
View rc4.ps1
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 | |
} | |
View _NetLbfoTeam.ps1
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
try { | |
Switch ($args[0]) { | |
#entrypoint | |
$NULL { | |
if (!(Start-Process ` | |
-FilePath 'PsExec' ` | |
-ArgumentList ( | |
'-s', | |
'-nobanner', | |
'-accepteula', |
View stackoverflow-unsave.js
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
//go to one of your lists, eg https://superuser.com/users/saves/241800 | |
$('.s-block-link.js-unsave').click() | |
//NO NEED TO USE THIS | |
(async (links) => { | |
const request = { | |
body : 'fkey=' + localStorage['se:fkey'].replace(/,.*$/, ''), | |
method : 'POST', |
View merge.ps1
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
$from = $from | gi | |
$to = ($to | gi).FullName | |
$from ` | |
| Get-ChildItem -File -Recurse ` | |
| &{ | |
Begin { | |
$from = '^' + [Regex]::Escape($from.FullName) | |
} | |
Process { |
View batt50.ps1
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
while ((Get-CimInstance Win32_Battery).EstimatedChargeRemaining -gt 55) { sleep 60 } shutdown -s -t 0 |
NewerOlder