Skip to content

Instantly share code, notes, and snippets.

View Jeffallan's full-sized avatar
🏠
Working from home

Jeffallan

🏠
Working from home
View GitHub Profile
@Jeffallan
Jeffallan / ParrotToUbuntu.md
Last active February 10, 2023 01:18
Add parrot repos to ubuntu
  1. Update /etc/apt/sources.list:

deb https://deb.parrotsec.org/parrot parrot main contrib non-free

  1. Then add public key:

wget -qO - https://archive.parrotsec.org/parrot/misc/parrotsec.gpg | apt-key add -

  1. Update apt
@Jeffallan
Jeffallan / time_round.py
Created September 28, 2019 19:04
easy time rounding for python
"""
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
@Jeffallan
Jeffallan / .bashrc
Created December 18, 2019 20:19 — forked from rickdaalhuizen90/.bashrc
Parrot Os bash theme for ubuntu
# ~/.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