- How to abort a git merge? #git
git reset --hard HEAD
- How to mail your agenda files? #emacs #org #cli
add to .gnus
(defun org-mail ()
"Send mail of agenda to myself."
git reset --hard HEAD
add to .gnus
(defun org-mail ()
"Send mail of agenda to myself."
ubunutmotd.txt - How ubuntu manages dynamic motd.
http://gregorygrubbs.com/emacs/10-tips-emacs-windows/ - How to make use of windows emacs and cygwin tools.
SSL Certificate location on Linux
For system wide use OpenSSL should provide you /etc/ssl/certs
and /etc/ssl/private
.
The latter of which will be restricted 700
to root:root
.
If you have an application not performing an initial privsep from root then it might suit you to locate them somewhere local to the application with the relevantly restricted ownership and permissions.
$ cd /usr/ssl/certs
I've been asked a few times over the last few months to put together a full write-up of the Git workflow we use at RichRelevance (and at Precog before), since I have referenced it in passing quite a few times in tweets and in person. The workflow is appreciably different from GitFlow and its derivatives, and thus it brings with it a different set of tradeoffs and optimizations. To that end, it would probably be helpful to go over exactly what workflow benefits I find to be beneficial or even necessary.
up vote 157 down vote
When you are stuck with your vagrant machine the way described above there is no need to boot in gui mode (and is impossible without an X server).
While your VM is booting, in a separate terminal window, just find out the id of the running machine.
vboxmanage list runningvms
pacman can update all packages on the system with just one command. This could take quite a while depending on how up-to-date the system is. This command can synchronize the repository databases and update the system's packages (excluding "local" packages that are not in the configured repositories):
# pacman -Syu
Querying package databases
pacman queries the local package database with the -Q flag; see:
$ pacman -Q --help
# How to create an RPM from source with spec file | |
# This is for Redhat versions of linux. Sometimes when you search for an rpm package, | |
# it is either outdated or not available. The only thing available is the source code. | |
# You can create a custom RPM package from source. | |
# | |
# For this example, I'll be using the latest version of Git, currently v.1.7.7.3 | |
# Step: 1 | |
# Install rpmbuild |
y default, omnibus-gitlab stores the Git repository data under /var/opt/gitlab/git-data. The repositories are stored in a subfolder repositories. You can change the location of the git-data parent directory by adding the following line to /etc/gitlab/gitlab.rb. | |
git_data_dir "/mnt/nas/git-data" | |
Note that the target directory and any of its subpaths must not be a symlink. | |
Run sudo gitlab-ctl reconfigure for the change to take effect. | |
If you already have existing Git repositories in /var/opt/gitlab/git-data you can move them to the new location as follows: |
http://serverfault.com/questions/575836/what-access-rights-could-be-blocking-access-to-a-gitlab-repository |