start new:
tmux
start new with session name:
tmux new -s myname
| # Reference: https://stackoverflow.com/a/29788254 | |
| # The other methods didn't work for me since the commit had a lot of changes and conflicts to a lot of other files. What I came up with was simply | |
| git show SHA -- file1.txt file2.txt | git apply - | |
| # It doesn't actually add the files or do a commit for you so you may need to follow it up with | |
| git add file1.txt file2.txt | |
| git commit -c SHA | |
| # Or if you want to skip the add you can use the --cached argument to git apply |
| #!/bin/bash | |
| monitor-sensor --accel | while read line | |
| orientation="normal" | |
| rotate="none" | |
| do | |
| if [[ $line =~ .*right.* ]]; then | |
| orientation="right" | |
| rotate="cw" | |
| elif [[ $line =~ .*left.* ]]; then |
| Aim | |
| To make sense of LibreOffice source code. I plan to put a breakpoint in the constructors of | |
| SwTableBox, and then get the back trace to see the flow and gain a little understanding of what's | |
| going on. This is post is aimed at beginners, so a little knowledge of C++/Java should be able to | |
| get one through this. | |
| [A Little Background Info (Skip this) | |
| I'm a programmer from the Center for Development of Advanced Computing (CDAC), India, currently |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <sys/types.h> | |
| #include <sys/stat.h> | |
| #include <sys/ioctl.h> | |
| #include <sys/poll.h> | |
| #include <sys/time.h> | |
| #include <fcntl.h> | |
| #include <errno.h> |