#Useful Stuff
##Sugar Packages
- Install:
sugar-install-bundle /run/media/<USB device name>/<filename.xo>
- Make an
xo
:zip -r YourActivityName.xo YourActivityName.activity
##GIT
Always remember, do not make changes directly in the master
branch. All it takes is a command to make and switch to a new branch
git checkout -b <new-branch>
Example: git checkout -b duplicatechunks walterbender/master
This will create a new branch called duplicatechunks
from the walterbender remote's master branch.
###Reference
Atlassian:
###Manage the URLs of the source (Syncing) The git remote command lets you create, view, and delete connections to other repositories. Remote connections are more like bookmarks rather than direct links into other repositories. Instead of providing real-time access to another repository, they serve as convenient names that can be used to reference a not-so-convenient URL.
git remote -v
is used to display the remotes of the current repo, -v
is for listing the URL with the name of the remote
Add: git remote add <name> <url>
Remove: git remote rm <name>
Rename: git remote rename <old-name> <new-name>
When you clone a repository with git clone, it automatically creates a remote connection called origin pointing back to the cloned repository. This is useful for developers creating a local copy of a central repository, since it provides an easy way to pull upstream changes or publish local commits.
###git fetch
The git fetch command imports commits from a remote repository into your local repo. The resulting commits are stored as remote branches instead of the normal local branches that we’ve been working with. This gives you a chance to review changes before integrating them into your copy of the project.
git fetch <remote>
Fetch all of the branches from the repository. This also downloads all of the required commits and files from the other repository.
###git cherry-pick
Choose which patch to apply. Use any patch from the repo from the commit hash. Example git cherry-pick 1eb4
###git log and git reflog
###git reset
###git pull --rebase walterbender master
###git push --force origin
###git blame
##Reading List
##Synergy Free Download
##To Record Screen in Ubuntu
Well the application "RecordMyDekstop" gives pixelated lines on changing the windows. Which cannot seem to be cured easily, so rather just install the ffmpeg and then run the following command to record:
ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1366x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -crf 0 -threads 0 output.mkv