You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
423 B
Python
19 lines
423 B
Python
4 years ago
|
#!/usr/bin/python3
|
||
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
# Required parameters:
|
||
|
# @raycast.schemaVersion 1
|
||
|
# @raycast.title Generate hex (16 characters)
|
||
|
# @raycast.mode silent
|
||
|
# @raycast.packageName Developer Utilities
|
||
|
|
||
|
# Optional parameters:
|
||
|
# @raycast.icon 💻
|
||
|
|
||
|
import binascii
|
||
|
import os
|
||
|
import subprocess
|
||
|
|
||
|
subprocess.run( [ "/usr/bin/pbcopy" ], input = binascii.b2a_hex( os.urandom( 8 ) ) )
|
||
|
subprocess.run( [ "/usr/bin/pbpaste" ] )
|