Terminal / Command Line and Git
javascript for cats and its repo
- Installation
- My favourites
- Basics
- Advanced
- Detailed Basics
- For Mac/Linux commands check my other Gist
- I list DOS commands below but it is highly recommended to use the last version of Powershell (version 6+) instead. It began the default command line tool in Windows and provides a wider range of options. Some commands are not supported in Powershell directly. You can use them with
cmd /c
. For example to useassoc
typecmd /c assoc
. - for learning Powershell you can check this article
contents:
- My favourites
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TokeletesDetektorClass{ | |
public static void main(String []args){ | |
System.out.println("Hello World"); | |
int tokeletese1 = 6; | |
int tokeletese2 = 7; | |
System.out.println(tokeletesSzamDetektor(tokeletese1)); | |
System.out.println(tokeletesSzamDetektor(tokeletese2)); |
Is is a quite usual use case that you want to use several terminal windows: you work on several different locations, you run different services at the same time without doing it in the background and so on. On typical solution is to use tabs: Mac Terminal has this capability, on Linux you can do it with Gnome Terminal. Other solution is to split the terminal to panes, twux does it for you.
My recommendation is to use two tabs and in one of the tabs open twux panes for services.
command: gnome-terminal
- Windows
create a mongodb folder in C: (or wherever you want)
mongod --directoryperdb --dbpath C:\mongodb\data\db --logpath C:\mongodb\log\mongo.log --logappend --rest --install
net start MongoDB
- start it with net which is to handle services
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int controlPin1 = 2; | |
const int controlPin2 = 3; | |
const int enablePin = 9; | |
const int directionSwitchPin = 4; | |
const int onOffSwitchStateSwitchPin = 5; | |
const int potPin = A0; | |
int onOffSwitchState = 0; | |
int previousOnOffSwitchState = 0; | |
int directionSwitchState = 0; | |
int previousDirectionSwitchState = 0; |
- Homebrew for command line installs. It is like apt-get in GNU/Linux. Usually there are nextnextfinish install files provided, but from time to time you will need Homebrew. To install a software like wget just type
brew install wget
- zsh (
brew install zsh
), oh my zsh
You should set environmental variables and other preparations Read about .bashrc and .bash_profile here or here, see a good example here