initial import

This commit is contained in:
2020-12-08 04:32:03 +00:00
commit 2f5cee408d
13 changed files with 203 additions and 0 deletions

20
generate-ssid.py Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Generate SSID name
# @raycast.mode silent
# @raycast.packageName Developer Utilities
# Optional parameters:
# @raycast.icon 💻
import subprocess
from xkcdpass import xkcd_password as xp
wordfile = xp.locate_wordfile()
wordlist5 = xp.generate_wordlist( wordfile = wordfile, min_length = 5, max_length = 5 )
ssid = xp.generate_xkcdpassword( wordlist5, numwords = 3, delimiter = ' ', case = 'capitalize' )
subprocess.run( [ "/usr/bin/pbcopy" ], input = ssid.encode( "utf-8" ) )
print( ssid )