Set git to use the credential memory cache:
git config --global credential.helper cache
To change the default password cache timeout, enter the following:
git config --global credential.helper 'cache --timeout=3600'
# (setting is in seconds)
Set git to use the credential memory cache:
git config --global credential.helper cache
To change the default password cache timeout, enter the following:
git config --global credential.helper 'cache --timeout=3600'
# (setting is in seconds)
To remove all untracked files:
git clean -df
For a specific file use:
git checkout path/to/file/to/revert
Edit the sudoers file:
sudo visudo
Find this line:
%sudo ALL=(ALL) ALL
To dump a filesystem into /mnt (a filesystem mounted on a seperate disk)…
cd /mnt
dump -L -0 -f- /path/to/origin | restore -r -f-
For remote operations, pipe the restore command via ssh:
dump -L -0 -f- /path/to/origin | ssh -2 -C -l remoteuser 192.168.0.2 restore -r -f-
Determine the file system by using the file-utility.
file image.img
Use mdconfig to link the IMG image to a virtual device.
mdconfig -a -t vnode -f /path/to/image.img -u 0
cd to local repo containing old_branch and:
git push https://github.com/accountname/new_repo.git +old_branch:master
VBoxManage list hdds | |
vboxmanage clonehd 846e5dbd-a88e-439e-8519-ea8aa47d7eb7 D:\Ubuntu.vmdk –format vmdk |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
set -xe | |
# This script is meant for quick & easy install via: | |
# $ curl -fsSL URL_HERE | sh | |
# On FreeBSD: | |
# $ fetch --no-verify-peer -qo - URL_HERE | sh | |
get_platform() { | |
platform=$(uname) |
#!/bin/sh | |
set -xe | |
sudo apt-get install git-core gitk git-gui subversion curl lvm2 thin-provisioning-tools python-pkg-resources python-virtualenv python-oauth2client | |
# install depot tools | |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
PATH=$PATH:/path/to/depot_tools | |
# Making sudo a little more permissive |