terminal

Firebase command not found days after having already successfully used it

[亡魂溺海] 提交于 2021-01-02 20:40:38
问题 I am trying to use the 'firebase' command from my Mac terminal to deploy firebase cloud functions using 'firebase deploy --only functions'. I just used this command a week or two ago when I updated my firebase-functions and firebase-tools to version 3.18.4 but now everytime I try to use the 'firebase' keyword to run a command it says -bash: firebase: command not found . When I run npm -g list I see that I have firebase, firebase-tools and more in that list. I've tried running 'npm install -g

The “git” command requires the command line developer tools. Would you like to install?

主宰稳场 提交于 2021-01-01 08:33:13
问题 I'm super new to coding (actually trying to teach myself some Python), but there's a thing bugging me that I cannot seem to find any info online about my particular case: When I run git on the terminal, there is: The "git" command requires the command line developer tools. Would you like to install.." Now, since I have a very basic Macbook 12, I try to keep it as lightweight and uncluttered as possible, so I don't want to install any IDE or anything, I'm practising coding with vim 7.3, but in

How to run two commands in one subprocess call? [closed]

落花浮王杯 提交于 2020-12-27 07:30:22
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed yesterday . Improve this question I would like to run the following commands in Python, using the package subprocess. cd C:\Users\...\csv attrib +U -P /s In my mind, I would like to do something like cmd = [r'C:\Users\...\csv','attrib +U -P /s'] pro = subprocess.Popen(cmd, stdout=subprocess

adding ~/bin directory in your path [closed]

我怕爱的太早我们不能终老 提交于 2020-12-25 01:04:25
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Improve this question I need to add ~/bin directory in your path. But I am not sure what the actual command for this is, I know it goes in my .bash_profile Does anyone know this, or a tutorial on how to set up a new .bash_profile for a terminal on a new mac (UNIX) 回答1: Add this to .bash_profile: export PATH="

How do I connect to a websocket manually, with netcat/socat/telnet?

て烟熏妆下的殇ゞ 提交于 2020-12-24 06:43:00
问题 I am trying to connect to the reference websocket echo server "manually", in order to learn how the protocol works (I am using socat for that). However, the server invariably closes the connection without providing an answer. Any idea why? Here is what I do: socat - TCP:echo.websocket.org:80 Then, I paste the following text in the terminal: GET /?encoding=text HTTP/1.1 Origin: http://www.websocket.org Connection: Upgrade Host: echo.websocket.org Sec-WebSocket-Key: P7Kp2hTLNRPFMGLxPV47eQ==

How do I connect to a websocket manually, with netcat/socat/telnet?

和自甴很熟 提交于 2020-12-24 06:42:51
问题 I am trying to connect to the reference websocket echo server "manually", in order to learn how the protocol works (I am using socat for that). However, the server invariably closes the connection without providing an answer. Any idea why? Here is what I do: socat - TCP:echo.websocket.org:80 Then, I paste the following text in the terminal: GET /?encoding=text HTTP/1.1 Origin: http://www.websocket.org Connection: Upgrade Host: echo.websocket.org Sec-WebSocket-Key: P7Kp2hTLNRPFMGLxPV47eQ==

Key mappings in a Visual Studio Code git-bash terminal

微笑、不失礼 提交于 2020-12-15 01:52:50
问题 I'm using a git-bash terminal in Visual Studio Code. In a normal git-bash terminal outside Visual Studio code, (Ctrl+k) will clear to end of line. However when I do this in a Visual Studio Code git-bash terminal I get message "Waiting for second key of chord". How can I change behavior to be same as a standard git-bash terminal? Thanks. 回答1: I found it right after posting! Just needed to disable Terminal > Integrated : Allow Chords in the Settings. I didn't see this before & didn't know such

Key mappings in a Visual Studio Code git-bash terminal

余生颓废 提交于 2020-12-15 01:48:50
问题 I'm using a git-bash terminal in Visual Studio Code. In a normal git-bash terminal outside Visual Studio code, (Ctrl+k) will clear to end of line. However when I do this in a Visual Studio Code git-bash terminal I get message "Waiting for second key of chord". How can I change behavior to be same as a standard git-bash terminal? Thanks. 回答1: I found it right after posting! Just needed to disable Terminal > Integrated : Allow Chords in the Settings. I didn't see this before & didn't know such

Key mappings in a Visual Studio Code git-bash terminal

邮差的信 提交于 2020-12-15 01:48:09
问题 I'm using a git-bash terminal in Visual Studio Code. In a normal git-bash terminal outside Visual Studio code, (Ctrl+k) will clear to end of line. However when I do this in a Visual Studio Code git-bash terminal I get message "Waiting for second key of chord". How can I change behavior to be same as a standard git-bash terminal? Thanks. 回答1: I found it right after posting! Just needed to disable Terminal > Integrated : Allow Chords in the Settings. I didn't see this before & didn't know such

Key mappings in a Visual Studio Code git-bash terminal

大憨熊 提交于 2020-12-15 01:47:05
问题 I'm using a git-bash terminal in Visual Studio Code. In a normal git-bash terminal outside Visual Studio code, (Ctrl+k) will clear to end of line. However when I do this in a Visual Studio Code git-bash terminal I get message "Waiting for second key of chord". How can I change behavior to be same as a standard git-bash terminal? Thanks. 回答1: I found it right after posting! Just needed to disable Terminal > Integrated : Allow Chords in the Settings. I didn't see this before & didn't know such