start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
set -o errexit | |
# Author: David Underhill | |
# Script to permanently delete files/folders from your git repository. To use | |
# it, cd to your repository's root and then run the script with a list of paths | |
# you want to delete, e.g., git-delete-history path1 path2 | |
if [ $# -eq 0 ]; then | |
exit 0 |
AddType video/ogg .ogv | |
AddType video/mp4 .mp4 | |
AddType video/webm .webm |
<SCRIPT LANGUAGE="JavaScript"> | |
<!-- | |
// F. Permadi 2005. | |
// (C) F. Permadi | |
// Print DOM tree | |
//////////////////////////////////////////// | |
// This function traverses the DOM tree of an element and prints the tree. | |
// This function called recursively until the DOM tree is fully traversed. | |
// | |
// Parameters: |
When connecting to a remote server via SSH it is often convenient to use SSH agent forwarding so that you don't need a separate keypair on that server for connecting to further servers.
This is enabled by adding the
ForwardAgent yes
option to any of your Host
entries in ~/.ssh/config
(or alternatively with the -A
option). Don't set this option in a wildcard Host *
section since any user on the remote server that can bypass file permissions can now als use keys loaded in your SSH agent. So only use this with hosts you trust.
tar xf wget-1.15.tar.xz
bb10_compile
from this gist to source folder#!/bin/bash | |
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
Let's say, 5 commits are made in develop branch.
Now we want to squash these commits into one commit (i.e., the latest commit on 2017/06/23).
git rebase -i HEAD~4
#!/bin/bash | |
datalad remove * | |
cd .annex-cache/ | |
git-annex uninit | |
cd .. | |
rm -rf .annex-cache/ |