Last active
November 19, 2018 01:20
-
-
Save mcastelino/52269136cbac797d6944890063437bd8 to your computer and use it in GitHub Desktop.
Clearlinux tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#How to dump qemu device properties (example for virtio-net) | |
qemu-system-x86_64 -device virtio-net,help | |
#To rollback to DESIRED_VERSION | |
swupd verify --fix -m $(DESIRED_VERSION) | |
git reset --soft "HEAD^" | |
git commit --amend | |
#side by side terminal diff | |
git difftool -y -x "sdiff -w $COLUMNS" | less | |
#How to rebase a branch on to squashed parent | |
git rebase --onto parent_branch branch~n branch | |
here n == where you originally forked (i.e. the commit that got squashed on the parent) | |
#How to port forward securely over ssh (example 8080 on remoteIP to local 8080) | |
ssh -f -nNT -L 8080:127.0.0.1:8080 user@remoteIP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment