Azure Trusted Signing Signtool Error
SignTool Error: An unexpected internal error has occurred.
Error information: "Error: SignerSign() failed." (-2147467259/0x80004005)
My full error was as follows:
To overwrite the default bash prompt string, also known as PS1(prompt string one), create a file name at ~/.config/git/git-prompt.sh
e.g. C:/Users/ItsMe/.config/git/git-prompt.sh
You'll need to set a variable named PS1. Here's a very simple example of a custom prompt of "hello" followed by a newline and the classic '$' symbol:
PS1="hello\n$ "
I used to move my files into a dropbox enabled folder and let them deal with the uploading but that feature has become so unreliable to be uesless to me. Instead I've written this python3 script to upload files using the dropbox sdk instead.
Downloading the dropbox python sdk is as easy as:
pip install dropbox
If your file is less than 150MB then dropbox.files_upload can be used, larger than that and dropbox.files_upload_session_start must be called and given a small chunk of your file, with the remaining chunks being uploaded with dropbox.files_upload_session_append and the final chunk with dropbox.files_upload_session_finish.
What a faff! So this script will do it all for you and print out a nice progress bar too :)
This has been sped up a lot |
Call with upload_to_dropbox(file_path, target_path) where file_path is the file you want to upload and target_path is the dropbox location (including the uploaded file name).
It will also return a True value if the upload was successful.
I work out the dropbox location by finding the folder I want in a browser and getting the url
e.g. "https://www.dropbox.com/home/Projects/Groobles%20Files"
Then remove the dropbox.com/home bit and replace %20s with the spaces they represent, then add the file name
e.g. "/Projects/Groobles Files/uploadedfile.zip"
The script:
IPP or oneAPI installs a visual studio extension that does all this linking for you, but if you are using a version of visual studio that is no longer supported, or if the extension just isn't installing for you for some reason (like I found...) then here's how to static link it manually.
You may need to add additional libraries for your needs but this is the gist of it:
My boss wants us to greet the team every morning but I'm a busy woman so here's how I automated a "good morning" message to slack every day from my PC.
oauth_config:
scopes:
user:
- chat:write
set min=1set max=3set /a selectionNum=(%RANDOM%*max/32768)+minif %selectionNum%==1 (set message=good morninggoto sendmsg)if %selectionNum%==2 (set message=good morning :slightly_smiling_face:goto sendmsg)if %selectionNum%==3 (set message=morning!goto sendmsg):sendmsgcurl -d "text=%message%" -d "channel=general" -d "as_user=true" -H "Authorization: Bearer xoxp-xxxxxx-xxxxxx-xxxxxx-xxxxxx" -X POST https://slack.com/api/chat.postMessage
This is the error I'm getting after updating the git version on my jenkins server:
Azure Trusted Signing Signtool Error SignTool Error: An unexpected internal error has occurred. Error information: "Error: SignerSign...