Stripe CLI ubutu installation issues - ubuntu-20.04

I want to install the Stripe CLI on ubuntu 20.04. I folled the step installation who there are in Stripe docs.
Download the latest linux tar.gz file from https://github.com/stripe/stripe- cli/releases/latest
Unzip the file: tar -xvf stripe_X.X.X_linux_x86_64.tar.gz
Run the executable: ./stripe
But when I tried to run the executable not working.
I try to install via apt-get install stipe whitout success
Any idea to install the stripe cli on ubuntu 20.04?

If you haven't already figured out an answer to this question, you have to manually move the unzipped stripe program to usr/bin or usr/local/bin. I did personally did usr/local/bin so
(sudo) mv <filename> usr/local/bin
then ran
./stripe
and that worked.

You have to login into your stripe dashboard first to start using stripe-cli.
On ubuntu you can run ./stripe login to get logged in into your stripe dashboard.

The installation method that you are using is the correct one, and recommended by the documentation:
https://stripe.com/docs/stripe-cli#install
Have you paired your credentials as the documentation recommends? prompt should launch a browser that will allow you to do that. I would run stripe login without any parameters first, to make sure the account is paired.

1 wget Download the latest linux tar.gz file from https://github.com/stripe/stripe-cli/releases/latest
2 Unzip the file: tar -xvf stripe_X.X.X_linux_x86_64.tar.gz
3 mv stripe ./usr/local/bin
4 ./stripe login
5 stripe listen --forward-to http://localhost:80/api/subs/stripe-webhook

Related

spl-token create-token failed to create token

I am trying to create my first token using the Linode website
I created a Linux machine Ubuntu latest version
and I followed some steps to create my token
I used Solana blockchain for that, and I reached the part where we created the token
'''spl-token create-token'''
But I am getting an error : spl-token: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
I tried 2 days almost every single in the internet, and I did everything I could to fix it, but I couldn't
I tried to repeat the steps from the beginning, didn't work
I tried to write using nano to source.list and install it manually, didn't work
I tried the older version of ubuntu.. nothing
Any help?
Thx in advance
So that version of libssl is not found in Ubuntu
check
/lib/x86_64-linux-gnu
for installed versions, either alias an existing installed version or install 1.1
sudo apt-get update
sudo apt-get install libssl1.1 libssl-dev

How to install Fly CLI to mac

I download the latest version of the Fly cli
https://concourse-ci.org/download.html
to ~/Downloads then cd to ~/Downloads
cd ~/Downloads
mv fly_darwin_amd64 fly
install fly
then I do
fly
and i get
-bash: fly: command not found
Is one of my steps wrong?
Try
cd ~/Downloads
mv fly_darwin_amd64 /usr/local/bin/fly
chmod 0700 /usr/local/bin/fly (Thanks to #Andrew Ramnikov)
For the newest mac os version, you need to allow the App to run from System Settings->Security and Privacy->General-> Allow app
fly -version
On MacOS, you can install with brew like, brew install --cask fly.
You might also want to install CredHub to manage credentials, brew install cloudfoundry/tap/credhub-cli.
Note that in the accepted answer, in Catalina and Newer the equivalent to the last step to allow the app in privacy settings is: xattr -d com.apple.quarantine /usr/local/bin/fly
And this does not require admin rights, but doing it via the GUI does.
Go to System Preferences -> Security & Privacy -> General and click allow anyway next the the fly app.
I ended up moving the fly binary to a folder in my home directory, and just added it to my path variable in ~/.bash_profile so I guess it works now.
edit
However, when I do
fly -t main login
I get
error: unknown target: main
easiest way is to run first command curl 'http://localhost:8080/api/v1/cli?arch=amd64&platform=darwin' -o fly \ && chmod +x ./fly which will create a fly binary and for the second part of command just do it manually && mv ./fly /usr/local/bin/ meaning you need to copy fly binary into /usr/local/bin

Google Assistant on RPI3 with Android Things

I tried to follow the documentation and got stuck in the point
Open a terminal and follow the instructions to configure a new Python virtual environment and install the `google-assistant-library.
The link in this point redirects to a general page (Introduction to the Google Assistant Library) rather than the instructions.
I think it misses the explanation what it means to open the terminal and exact steps to be followed.
Is the link really correct?
Maybe I need help in using the console correctly, but I am not getting it from that poor documentation.
I can connect to RP with Serial to USB cable and Putty. But simply I do not know what that point 11 and onwards mean...
Any idea?
Thank you
It looks like the links in the Assistant SDK docs were modified, but it should be pointing to this page:
sudo apt-get update
sudo apt-get install python3-dev python3-venv # Use python3.4-venv if the package cannot be found.
python3 -m venv env
env/bin/python -m pip install --upgrade pip setuptools
source env/bin/activate
python -m pip install --upgrade google-auth-oauthlib[tool]
google-oauthlib-tool --scope https://www.googleapis.com/auth/assistant-sdk-prototype \
--save --headless --client-secrets /path/to/client_secret_client-id.json
This will save the credentials at /path/to/.config/google-oauthlib-tool/credentials.json, which you can then copy into your project in order to authenticate the Google Assistant.
As Nick and proppy noted, one step is to obtain authorization code to be used in later steps. Unfortunately the documentation skipped few very important steps and it can lead to confusion. Sadly Google did not simplify the process of integrating the Assistant in the same development environment and hope they will integrate this clumsy process to Android Studio as with other services
If you are developing under Windows you need to:
use a Linux environment and follow the steps in console of that Linux PC (not in the Android Things console of the RP!). Or install Python in Windows. I used the Raspbian in my RP3 to do the Linux version of the procedure...
install Python environment first in the Linux PC console
sudo apt-get update
sudo apt-get install python3-dev python3-venv
python3 -m venv env
env/bin/python -m pip install --upgrade pip setuptools
source env/bin/activate
in this Python environment install google-auth-oauthlib that will generate the credential file
python -m pip install --upgrade google-auth-oauthlib[tool]
change the directory to place you saved the downloaded json file from step before step 11 in the documenatation. e.g.
cd /home/pi/Downloads/
run the google auth tool with the path to your downloaded json file (including its long name, replace idxxx with your id)
google-oauthlib-tool --client-secrets /home/pi/Downloads/client_secret_client-idxxx.json --scope https://www.googleapis.com/auth/assistant-sdk-prototype --save --headless
there will be a link generated in the console. You have to insert the link into browser . You will be prompted in browser to let the tool to use your account and the you will receive an authentication code. Enter this code to the prompt back in the console.
find the generated authenticated authorization code file in the folder prompted in the console and continue in the original documentation steps

How to uninstall Jenkins on mac completely

I installed Jenkins with brew on mac. But it occurs some problem, I want to re-install it. Previously, at the first time I access http://localhost:8080, the page guides you to install some plugins and need you to input the password. But when I use 'brew uninstall jenkins' command and install again, the page will not show. I don't remember the previous default admin passsword. So I can't access the jenkins now. I delete the homebrew cache as well, it not worked.
Is there any solutions to uninstall Jenkins completely? I just want to start from the beginning of the installation.
Thanks.
In terminal, write and execute
$/Library/Application\ Support/Jenkins/Uninstall.command
Note If you installed it with sudo, then use this:
$sudo /Library/Application\ Support/Jenkins/Uninstall.command
Then follow the instructions.
Remove the hidden .jenkins directory in your home directory that contains the configuration.
Removing the .jenkins file is actually an answer, depending how Jenkins was installed. For example, the homebrew installation does create instance-specific work area in $HOME/.jenkins
If you have the jenkins instance already running, go to $JENKINS_BASE_URL/configure and check the value of 'Home directory' - that is the place where all user-specific data is stored, like the jobs.
PS: BTW - can't get away from SO stupidity. This is a comment to the answer by Ayobi, but don't have reputation to comment.
To uninstall Jenkins service from your Mac OS X computer, execute uninstall script from terminal:
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
/Library/Application Support/Jenkins/Uninstall.command
https://wiki.jenkins.io/display/JENKINS/Thanks+for+using+OSX+Installer
I installed Jenkins as pkg from jenkins.io. There was some issue and I wanted to delete it. I couldn't find Jenkins folder or Uninstall Command in Library, so this is what I did,
Go to /Applications --> Delete the Jenkins folder
Delete /Users/Shared/Jenkins
Delete Jenkins (there will be a standard user with no name username for the first time when jenkins is installed) from "Users & Groups"
After this I re-installed Jenkins and it seem to work.
Try:
brew uninstall jenkins-lts
rm -r /Users/admin/.jenkins

Where is mongoimport installed on Mac OS X

I'm trying to setup a cronjob for a regularly scheduled import of json data into a mongo database. To conduct the import, I have the following command in the Python script that the cronjob runs:
os.system("mongoimport --jsonArray --db %s --collection %s --file .../data.txt" %(db_name,collection_name))
However, the log file of the cronjob keeps displaying the following error:
sh: mongoimport: command not found
I think I need to call mongoimport with the full file path in the code, but I'm not sure where mongodb/mongod/mongoimport is installed on my system. whereis mongoimport, whereis mongodb, whereis mongod all return nothing.
I installed mongodb with Homebrew. Packages installed with Homebrew are located in /Library/Caches/Homebrew. However, in my system that folder only has a mongodb-2.6.4_1 tar file. Do I have to unpack this tar file to access mongoimport?
Thanks for your help.
As of June 2020,
I installed mongodb latest version using brew as per the documentation , and I faced the same issue command not found: mongoimport .
I had to to install mongodb-database-tools
brew install mongodb/brew/mongodb-database-tools
Then I could use mongoimport
Just adding this solution, incase it helps someone
Got the same issue, but I installed mongodb via Mac Port. Unfortunately, from version 3 of mongodb, these mongodb tools are maintained as a separate project, so I updated Mac port to latest version then installed mongo tools separately.
sudo port install mongo-tools
Hope this helps someone that installing mongodb by mac port.
If you installed MongoDB correctly you need to create a ~/.bash_profile and assign /usr/local/mongodb/bin to the $PATH environment variable
After that you should be able to access the mongoimport command
If you used brew for installation, mongod is in /usr/local/bin/ directory. Other utilities (mongoimport, mongoexport etc.) are in the same path. All you need to do is open another terminal.
Visit https://www.mongodb.com/download-center/community and you can download a tarball for MacOS, which contains all the tools including mongoimport.
Untar, add to you PATH and voilĂ !
Try using ./mongoimport or sudo ./mongoimport
After following all of these examples, I was able to use it that way from bash.

Resources