This file contains hidden or 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/python3 | |
| ''' | |
| Downloading/Updating Color spreads of One Piece from the fandom site. | |
| Usage: | |
| python ./WebCrawling_wikiFandom.py | |
| --> will download all the images in the current directory | |
| python ./WebCrawling_wikiFandom.py -p "{PATH-TO-UPDATE}" |
This file contains hidden or 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
| # IMPORT | |
| import subprocess | |
| # DEF | |
| def List_LocalIPs(): | |
| ipsList = [] #{"adapterName", "adapterIp"} | |
| result=subprocess.run('ipconfig',stdout=subprocess.PIPE,text=True).stdout.lower() | |
| for l in result.split('\n'): | |
| if 'ethernet' in l or 'wireless' in l: | |
| adapterName = l.replace(':','') |
This file contains hidden or 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
| # Setup tmp dir | |
| $wrkDir = "$env:USERPROFILE\Desktop\TmpFonts" | |
| New-Item $wrkDir -ItemType Directory | Out-Null | |
| # Download | |
| Write-Host -ForegroundColor DarkYellow "[I] Downloading fonts in $wrkDir" | |
| $FontURL = "https://github.com/ryanoasis/nerd-fonts/releases/download/v2.2.2/CascadiaCode.zip" | |
| $DestFont = "$wrkDir\CaskaydiaCoveNF.zip" | |
| $ProgressPreference = 'SilentlyContinue' | |
| Invoke-WebRequest -Uri $FontURL -OutFile $DestFont | |
| $ProgressPreference = 'Continue' |
This file contains hidden or 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
| $Pythons3Search = winget search 'Python.3' | |
| $PythonResults = $Pythons3Search[3..$Pythons3Search.Length] | |
| [version]$ver ='3.0' | |
| $node = '' | |
| Foreach ($entry in $PythonResults) { | |
| $entryVer = [version]$entry.replace(' ',';').split(';')[2] | |
| $entryid = $entry.replace(' ',';').split(';')[1] | |
| if ($ver -lt $entryVer ){ | |
| $ver = $entryVer | |
| $node = $entryid |