This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Use this with a global hotkey to the following: gksudo [FULLPATH]/enterpass.sh | |
if [[ $EUID -ne 0 ]] ; then | |
notify-send "This script must be run as root" | |
exit | |
fi | |
if ! command -v userpass > /dev/null ; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
file=/home/$SUDO_USER/.local/share/userpass.list | |
function showHelp { | |
version=0.0.2 | |
versionDate="2014-06-24" | |
echo "$0 - manage passwords | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Parent; | |
impl Parent { | |
fn new_child<'a>(&'a self) -> Child<'a> { | |
Child { | |
parent: self | |
} | |
} | |
} |