Skip to content

Instantly share code, notes, and snippets.

View st0le's full-sized avatar

Gaurav Kamath st0le

View GitHub Profile
@st0le
st0le / killall.ps1
Created May 20, 2020 18:33 — forked from ReubenBond/killall.ps1
killall cmd for PowerShell with completion
# 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 |
@st0le
st0le / wallhaven.py
Created February 28, 2017 19:40 — forked from avamsi/wallhaven.py
Python script to download wallpapers from wallhaven.
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