- Update /etc/apt/sources.list:
deb https://deb.parrotsec.org/parrot parrot main contrib non-free
- Then add public key:
wget -qO - https://archive.parrotsec.org/parrot/misc/parrotsec.gpg | apt-key add -
- Update apt
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
""" | |
function rounded_time | |
param: dt a date time object | |
kwarg: rnd the number of minutes to round to | |
Since datetime attributes are integers round them like a normal integer | |
This function will roll over hours i.e 10:59 -> 11:00 | |
This function will roll over days i.e 23:59 01/01 -> 00:00 01/02 | |
""" | |
from datetime imort datetime, timedelta |
deb https://deb.parrotsec.org/parrot parrot main contrib non-free
wget -qO - https://archive.parrotsec.org/parrot/misc/parrotsec.gpg | apt-key add -
import socket | |
import time | |
import sys | |
HOST = '18.216.82.207' | |
PORT = 2003 | |
s = socket.create_connection((HOST,PORT)) | |
## Python ### | |
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
*.pyc | |
# C extensions | |
*.so | |
# Distribution / packaging |
from datetime import date | |
class Birthday(object): | |
def __init__(self, year, month, day): | |
self.dob = date(year, month, day) | |
@property |
http://sherifsoliman.com/2016/09/30/Python-package-with-GitHub-PyPI/ |
import turtle | |
def draw_square(some_turtle): | |
for i in range(1,5): | |
some_turtle.forward(100) | |
some_turtle.right(90) | |
def draw_art(): | |
window=turtle.Screen() |
.mauticform_wrapper { | |
max-width: 600px; | |
margin: 10px auto; | |
} | |
.mauticform-innerform {} | |
.mauticform-post-success {} | |
.mauticform-name { |
import MySQLdb.cursors | |
from twisted.enterprise import adbapi | |
from scrapy.xlib.pydispatch import dispatcher | |
from scrapy import signals | |
from scrapy.utils.project import get_project_settings | |
from scrapy import log | |
SETTINGS = get_project_settings() |