Thanks for taking an interest in this awesome little project. We love to bring new members into the community, and can always use the help.
- Task tracking and Bug reports: GitHub
- Discussion: the Python Discord server
function TabExpansion($line, $lastWord) { | |
$lastBlock = [regex]::Split($line, '[|;]')[-1].TrimStart() | |
$aliases = @("pipenv") + @(Get-Alias | where { $_.Definition -eq "pipenv" } | select -Exp Name) | |
$aliasPattern = "($($aliases -join '|'))" | |
if($lastBlock -match "^$aliasPattern ") { | |
$Env:_PIPENV_COMPLETE = "complete-powershell" | |
$Env:COMMANDLINE = "$lastBlock" | |
(pipenv) | ? {$_.trim() -ne "" } | |
Remove-Item Env:_PIPENV_COMPLETE | |
Remove-Item Env:COMMANDLINE |
Thanks for taking an interest in this awesome little project. We love to bring new members into the community, and can always use the help.
# Editors | |
.vscode/ | |
.idea/ | |
# Vagrant | |
.vagrant/ | |
# Mac/OSX | |
.DS_Store |
import sys | |
PY2 = sys.version_info[0] == 2 | |
if PY2: | |
import _winreg as winreg | |
else: | |
import winreg | |
try: | |
reg = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE) | |
ps_key = winreg.OpenKey(reg, r'SOFTWARE\Microsoft\PowerShell') | |
except OSError: |
import sys | |
for m in sys.modules.keys(): | |
if not m.startswith('__') and '.' not in m: | |
sys.modules[m] = None |
\documentclass[10pt,twoside]{article} | |
\usepackage{multicol} | |
\usepackage{calc} | |
\usepackage{ifthen} | |
\usepackage{geometry} | |
\usepackage{amsmath,amsthm,amsfonts,amssymb} | |
\usepackage{color,graphicx,overpic} | |
\usepackage{hyperref} | |
\usepackage{polynom} | |
\usepackage[export]{adjustbox} |
\documentclass[14pt]{extarticle} | |
% -------------------------------------------------------------------------- | |
% Package imports | |
\usepackage{enumitem} | |
\usepackage{pdfpages} | |
\usepackage{calc} | |
\usepackage{ifthen} | |
\usepackage{geometry} | |
\usepackage{amsmath,amsthm,amsfonts,amssymb} |
# Source: http://www.hanselman.com/blog/ABetterPROMPTForCMDEXEOrCoolPromptEnvironmentVariablesAndANiceTransparentMultiprompt.aspx | |
setx prompt "[%computername%] $d$s$t$_$p$_$_$+$g" |
#!/usr/bin/env python3 | |
""" | |
Sources | |
* https://github.com/GhostofGoes/ADLES | |
""" | |
import logging | |
import logging.handlers | |
import sys | |
import os |
# Install latest version Python package from a git repo (e.g. if they haven't pushed to pypi) | |
python3 -m pip install --user git+ssh://[email protected]/DannyCork/python-whois.git | |
# Install network security tools | |
sudo apt install tcpdump tshark wireshark snmp snmp-mibs-downloader wireshark-doc nmap | |
# Install tools that aren't bundled with Ubuntu | |
sudo apt install cloc ipcalc mtr htop atop glances iftop iptraf nethogs | |
# Count lines of code | |
cloc ./* |