Skip to content

Instantly share code, notes, and snippets.

View kkarakk's full-sized avatar
💭
Back on the grind

Karan Harsh Wardhan kkarakk

💭
Back on the grind
  • India
View GitHub Profile
@kkarakk
kkarakk / index.html
Created June 2, 2014 14:18
A Pen by karan harsh wardhan.
<html>
<head>
<link rel="stylesheet" type="text/css" href="theme.css">
</head>
<body>
<div>
<div class="img-circular" id ="inner"></div>
</div>
</body>
@kkarakk
kkarakk / TorrentTrackerPythonExtract
Created January 4, 2015 01:35
Python Regex to extract torrent tracker names
'''http://bitsnoop.com/trackers/ has a list of active trackers so made a quick dirty regex to extract only the tracker names in order to quickly paste said tracker names to utorrent/deluge
regex is "(http|udp):\/\/[\d|\D]+?\s+([^a-z\/^\d]?)?" for easy copy/paste '''
import re
regex = re.compile("(http|udp):\/\/[\d|\D]+?\s+([^a-z\/^\d]?)?")
with open("trackers.txt") as f:
for line in f:
result=regex.search(line)
if result is not None:
@kkarakk
kkarakk / customize_powershell_prompt.txt
Last active October 13, 2018 13:33
Customize Powershell
# Creates profile if doesn't exist then opens editor,wait a beat
if (!(Test-Path -Path $PROFILE)){ New-Item -Path $PROFILE -ItemType File } ; ise $PROFILE
************************************************************************************************
************************************************************************************************
# this goes inside the profile, save it and then open a new power shell window to see results
#create ascii art block
$block = @"