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 | |
# Created by github.com/Zwyx | |
# MIT Licence | |
if [ "$1" == "--help" ] || [ "$1" == "-h" ]; then | |
echo "Usage: ./encrypt.sh [subfolder-name]..." | |
exit | |
fi |
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
passpro() { | |
# Set a different password store directory, | |
# then run `pass` with all the arguments received by `passpro` | |
PASSWORD_STORE_DIR=~/.password-store-pro pass $@ | |
} | |
_passpro() { | |
# Same idea for the completer | |
PASSWORD_STORE_DIR=~/.password-store-pro _pass | |
} |
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
p() { | |
# Insert the password into the X selection | |
# (also called primary, see `man xclip`) | |
pass $1 | head -n 1 | tr -d "\n" | xclip | |
# Countdown | |
for i in {5..1}; do | |
printf "\r$i" | |
sleep 1 | |
done |
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
.nfc { | |
height: 100vh; | |
width: 100vw; | |
background-color: #21252b; | |
color: #abb2bf; | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
text-align: center; | |
} |
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
import React from "react"; | |
import "./App.css"; | |
/** Type for the possible steps of the app */ | |
type TStep = | |
| "initializing" | |
| "noNfc" | |
| "nfcNotEnabled" | |
| "waitingForNfcEnabled" | |
| "waitingForTag" |