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
# In a PS terminal, type "code $profile" and put this in there | |
function killall { | |
param( | |
[ArgumentCompleter( | |
{ | |
param($cmd, $param, $values) | |
get-process | | |
? { $_.Name.StartsWith($values, [StringComparison]::OrdinalIgnoreCase) } | | |
Sort -Unique Name | |
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 bs4 import BeautifulSoup | |
from itertools import count | |
import requests | |
url = 'http://alpha.wallhaven.cc/search?categories=101&sorting=favorites&order=desc&page=' | |
jpg = 'http://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-%s.jpg' | |
png = 'http://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-%s.png' | |
status = '\r[page {:0>3}] [image {:0>2}|24] [{:.<24}]'.format |