Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# https://alkusin.net/crubuntung
bypass() {
sudo -v
while true;
do
sudo -n true
sleep 45
kill -0 "$$" || exit
@refrax
refrax / qclock2
Created August 1, 2014 13:02
qclocktwo conky config
background no
own_window yes
own_window_type normal
own_window_class Conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment mm
gap_x 0
#575
gap_y 0
#310
@refrax
refrax / pass_gen.py
Last active August 29, 2015 14:04
Python secure password generation function
def pass_gen(length=12):
"""Generates a random password of the length specified. Also
makes sure that mimimum complexity requirements are met.
This generates very strong passwords.
EX: pass_gen(12)
makes a 12 char password that will have at least 1 special, 1
number, and 1 lower case letter. If no length is specified,
12 is default length.
"""