$ ps -Alf | grep jar
check what jar processes you have running
check what java jar processes you have running:
find similar posts:
Java,
Linux/Unix
0
comments
check what jar processes you have running
check what java jar processes you have running:
$ ps -Alf | grep jar
find similar posts:
Java,
Linux/Unix
0
comments
Synchronize date and time on remote board via ssh
If you have a board without a battery then you might want to synchronize a date and time with your computer.
$ DATE=`date` ; ssh root@192.168.2.2 "TZ=America/Chicago date --set '$DATE' " ; echo "local: "; date ; echo "remote: " ; ssh root@192.168.2.2 " TZ=America/Chicago date "
Mon Jun 9 14:04:16 CDT 2014
local:Mon Jun 9 14:04:16 CDT 2014
remote:Mon Jun 9 14:04:16 CDT 2014
Note that output for Mac is CST and for Linux is UTC.
find similar posts:
i.MX6,
Linux/Unix,
Mac
0
comments
Synchronize date and time on remote board via ssh
If you have a board without a battery then you might want to synchronize a date and time with your computer.
$ DATE=`date` ; ssh root@192.168.2.2 "TZ=America/Chicago date --set '$DATE' " ; echo "local: "; date ; echo "remote: " ; ssh root@192.168.2.2 " TZ=America/Chicago date "
Mon Jun 9 14:04:16 CDT 2014
local:Mon Jun 9 14:04:16 CDT 2014
remote:Mon Jun 9 14:04:16 CDT 2014
Note that output for Mac is CST and for Linux is UTC.
find similar posts:
i.MX6,
Linux/Unix,
macOS
0
comments
GIT: common commands
Synch Commands
CLONE (copy) remote REPO to my local directory
if you have set up "SSH Public Keys" on the website of your GIT provider (XP-dev.com, github.com) you can use ssh:// without providing user name & password
git clone ssh://my_user_name@subdomain.repositoryhosting.com/company/MyApplication.git
if you did NOT provide SSH you will use https:/// with user name and password
Make sure you are in a correct directory (.git files should be in the that folder)
git clone https://subdomain.repositoryhosting.com/company/MyApplication.git
Make sure you are in a correct directory (.git files should be in the that folder)
pwd
Check that you are working on the correct remote repo
git config --get remote.origin.url
Get update of all remote changes, this does not change the workspace code
git fetch
Add all changed LOCAL files to be managed by git
git add --all
Commit all local changes to LOCAL git repo with a message (change the message as needed)
git commit -m "My good explanation of what I am committing here."
Take remote changes at merge them with you local code, your new changes will not be erased
git rebase
Same as git fetch && git rebase together, but good only when you don't have your our own commits
git pull
Send your local committed changes to remove server
git push
Make sure that you get this message "Your branch is up-to-date with 'origin/XYZ'."
Show differences
git status
Show differences
$ git diff HEAD FETCH_HEAD
Branch Operations
Switch to an existing branch
$ git checkout develop
Create a new branch named thrift
$ git checkout -b thrift
Delete an existing branch
$ git branch -D thrift
Resetting - removing local changes
reset hard to previous commit
$ git reset --hard 9a5xxx317
Reset to REMOTE SERVER state, your local changes will be destroyed
$ git reset --hard FETCH_HEAD
$ git clean -f -d
$ git status
On branch master
Your branch is behind 'origin/master' by 4 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
nothing to commit, working directory clean
$ git rebase
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Working with Submodules
In this tutorial you will see examples of how to work with modules in GTI. It is a good practice for multiple projects to re-use common libraries of code, for example model library, APIs, utility classes, etc.
List Submodules
$ git submodule
Add submodule to an existing projectBefore I start, I like to check what is the repository URL of the PARENT project, your submodules will likely have similar URL:
$ git config --get remote.origin.url
ssh://git@xyz.repositoryhosting.com/xyz/parent_project_name.git
In your (parent) project clone another project as submodule..
$ git submodule add --force ssh://git@xyz.repositoryhosting.com/xyz/submodule_name.git module/submodule_name
Cloning into 'module/submodule_name'...
remote: Counting objects: 47, done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 47 (delta 6), reused 47 (delta 6)
Receiving objects: 100% (47/47), 1.85 MiB | 715.00 KiB/s, done.
Resolving deltas: 100% (6/6), done.
Checking connectivity... done.
If you checked out a base project and your submodule is empty, you need to initialize your submodules. The command below will bring the remote code to your local folders recursively for each submodule you have.$ git submodule update -f --init --recursive
If the code you want in the submodule is in different branch then you have to checkout that branch$ git submodule foreach --recursive git checkout branch_name
Finally you can do your normal PULL, or FETCH and REBASE$ git submodule foreach --recursive git pull
Remove submodule
List currently registered submodules$ git submodule
$ git submodule deinit -f module/myOldModule
$ git rm -rf module/myOldModule
$ rm -rf module/myOldModule
Get original remote REPO URL
git config --get remote.origin.url
find similar posts:
git
0
comments
GIT: common commands
Synch Commands
CLONE (copy) remote REPO to my local directory
if you have set up "SSH Public Keys" on the website of your GIT provider (XP-dev.com, github.com) you can use ssh:// without providing user name & password
git clone ssh://my_user_name@subdomain.repositoryhosting.com/company/MyApplication.git
if you did NOT provide SSH you will use https:/// with user name and password
Make sure you are in a correct directory (.git files should be in the that folder)
git clone https://subdomain.repositoryhosting.com/company/MyApplication.git
Make sure you are in a correct directory (.git files should be in the that folder)
pwd
Check that you are working on the correct remote repo
git config --get remote.origin.url
Get update of all remote changes, this does not change the workspace code
git fetch
Add all changed LOCAL files to be managed by git
git add --all
Commit all local changes to LOCAL git repo with a message (change the message as needed)
git commit -m "My good explanation of what I am committing here."
Take remote changes at merge them with you local code, your new changes will not be erased
git rebase
Same as git fetch && git rebase together, but good only when you don't have your our own commits
git pull
Send your local committed changes to remove server
git push
Make sure that you get this message "Your branch is up-to-date with 'origin/XYZ'."
Show differences
git status
Show differences
$ git diff HEAD FETCH_HEAD
Branch Operations
Switch to an existing branch
$ git checkout develop
Create a new branch named thrift
$ git checkout -b thrift
Delete an existing branch
$ git branch -D thrift
Resetting - removing local changes
reset hard to previous commit
$ git reset --hard 9a5xxx317
Reset to REMOTE SERVER state, your local changes will be destroyed
$ git reset --hard FETCH_HEAD
$ git clean -f -d
$ git status
On branch master
Your branch is behind 'origin/master' by 4 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
nothing to commit, working directory clean
$ git rebase
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Working with Submodules
In this tutorial you will see examples of how to work with modules in GTI. It is a good practice for multiple projects to re-use common libraries of code, for example model library, APIs, utility classes, etc.
List Submodules
$ git submodule
Add submodule to an existing projectBefore I start, I like to check what is the repository URL of the PARENT project, your submodules will likely have similar URL:
$ git config --get remote.origin.url
ssh://git@xyz.repositoryhosting.com/xyz/parent_project_name.git
In your (parent) project clone another project as submodule..$ git submodule add --force ssh://git@xyz.repositoryhosting.com/xyz/submodule_name.git module/submodule_name
Cloning into 'module/submodule_name'...
remote: Counting objects: 47, done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 47 (delta 6), reused 47 (delta 6)
Receiving objects: 100% (47/47), 1.85 MiB | 715.00 KiB/s, done.
Resolving deltas: 100% (6/6), done.
Checking connectivity... done.
If you checked out a base project and your submodule is empty, you need to initialize your submodules. The command below will bring the remote code to your local folders recursively for each submodule you have.$ git submodule update -f --init --recursive
If the code you want in the submodule is in different branch then you have to checkout that branch$ git submodule foreach --recursive git checkout branch_name
Finally you can do your normal PULL, or FETCH and REBASE$ git submodule foreach --recursive git pull
Remove submodule
List currently registered submodules$ git submodule
$ git submodule deinit -f module/myOldModule
$ git rm -rf module/myOldModule
$ rm -rf module/myOldModule
Get original remote REPO URL
git config --get remote.origin.url
find similar posts:
git
0
comments
git does not recognize new changes
You changed or added files, but you get...
**out
$ git status On branch release Your branch is up-to-date with 'origin/release'. nothing to commit, working directory cleanMake sure that your .gitignore file does not have pattern as follows:
**out
find similar posts:
git
0
comments
git does not recognize new changes
You changed or added files, but you get...
**out
$ git status On branch release Your branch is up-to-date with 'origin/release'. nothing to commit, working directory cleanMake sure that your .gitignore file does not have pattern as follows:
**out
find similar posts:
git
0
comments
Subscribe to:
Comments (Atom)
Post Scriptum
The views in this article are mine and do not reflect those of my employer.
I am preparing to cancel the subscription to the e-mail newsletter that sends my articles.
Follow me on:
X.com (Twitter)
LinkedIn
Google Scholar
I am preparing to cancel the subscription to the e-mail newsletter that sends my articles.
Follow me on:
X.com (Twitter)
Google Scholar
Popular Recent Posts
-
Keishin Kata (敬心形) of Shobudo (正武道) karate kei (敬) respect, reverence, or honor someone or something shin (心) heart or mind kata (形) fo...
-
Before arriving in Okinawa, several experiences prepared me for what I would eventually learn there. Karate was the first. It introduced me ...
-
I came across Ruri Ohama mentioning a book by Takafumi Horie and Yoichi Ochiai titled: “Job Atlas for 10 Years From Now. How Will You Live i...
-
Please look at the newer post: http://ukitech.blogspot.com/2009/09/eclipse-35-galileo-and-gwt-m2-svn.html 1) Upload a new version of Eclipse...
-
I have a habit of "stopping to smell the roses", or as in today's case, to take a photo of baby mushrooms on the forest floor....
-
http://code.google.com/apis/socialgraph/
-
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space or Unable to execute dex: Java heap space Java h...
-
Step 1: Register you app with Facebook. Sign in to Facebook using your standard credentials. Navigate to http://www.facebook.com/developer...
-
Many online videos warn about vegetables you should never eat, especially those rich in oxalates. The tone is dramatic. The reality is much ...
Most Popular Articles
-
Affordance as a Function of Intent and Action? As a person passionate about Behavioral Sciences, I found myself unable to shake the impre...
-
Step 1: Register you app with Facebook. Sign in to Facebook using your standard credentials. Navigate to http://www.facebook.com/developer...
-
Please look at the newer post: http://ukitech.blogspot.com/2009/09/eclipse-35-galileo-and-gwt-m2-svn.html 1) Upload a new version of Eclipse...
-
Creating Android ROS nodes to: - add control UI (HMI) - utilize existing phone sensors: -- gyroscope -- GPS -- compass -- camera - do...
-
In this tutorial we will learn how to install the Intellij IDEA database plugin. Start with opening Settings > search for plugins ...
-
Installing TuriCreate on Python 3.6 Anaconda Environment 1) Check what Python version Apple Turi Create supports https://github.com/ap...
-
In this tutorial we will overview integration basics of Android Studio and Gradle build tools.
-
This tutorial shows you how to change the code lower/upper case of code in Android Studio.
-
ImportError : No module named 'sklearn.model_selection' Before doing the embarrassing things I did below, read this: Setting Jupy...
-
This minimal PyTorch example implements a custom recurrent neural network (RNN) cell from first principles, showing how sequence memory eme...
apt quotation..
“A man should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.” by Robert A. Heinlein (author, aeronautical engineer, and naval officer)