Here’s some useful git configurations and aliases. The way you make a git alias is as follows:
$git config --global alias.co checkout
$git config --global alias.br branch
$git config --global alias.ci commit
$git config --global alias.st status
You can use git config to also set various items such as the diff.tool, which uses gvimdiff whenever you use git difftool. This makes the diffs much more visually understandable since you can scroll and see more context.
color.ui=auto diff.tool=gvimdiff alias.loga=log --oneline -15 --graph --decorate --all alias.rev=remote -v alias.lst=ls-tree --abbrev -l HEAD core.pager=less -r
this is a cheap and apparently old printer. Important points:
- It doesn’t connect to my WiFi — it needs a WPS button on the router
- It doesn’t work with USB3 ports, needs to be connected to an older port
- It needs to be rebooted prior it each printing session
- The paper tray needs to be unfolded from the back, and the paper catcher needs to be unfolded from the front.
check rotation lock, it is the same switch for mute, which can stop game sounds
pressing mapping&preset together, then the home light will flash. then reboot. you can test whether the driver is working from settings
- lspci, look for wireless network
- the drivers are proprietary, non-free so google for the driver and install. in this case it was firmware-iwlwifi.
- wicd (networkmanager also may have been helpful at some time, but i think its best to have only 1 of them installed.)
- reboot and check the hardware wireless switch is on. (removed something called avahi-auto ipd because i wasnt getting connection and i thought it was interfering, turned out to be the wireless switch, doesn’t seem to have messed anything up either way and i don’t know what it does.)
ddrescue --force /dev/zero /dev/sdb log.txt
- fill out form with xournal and export pdf. (oowriter didn’t read xournal’s output even with the libreoffice pdf import extension, but the xournal’d pdf did print, gimp was able to read it, and it was emailable)
- edit a photo of signature in gimp (nice video http://youtu.be/efAOsvfi4sU)
- layer/transparency/add alpha channel. like writing on an overhead slide, the checkerboard represents the background through the slide
- use fuzzy select tool from toolbox to select the background from the photo
- delete the background, should see checkerboard. delete within loops for O, Q, etc.
- from brushes, select the largest black brush and set mode to overlay. brush over the signature to darken it to a uniform black, otherwise it looks grayish like a photo when printed.
- open the pdf from gimp and select the page which needs the signature
- use the rectangle select tool to select the area where the signature should go. note the height and/or width of the field.
- go to the signature image and image/scale image. enter either the height or width to scale to, then`edit/copy visible.
- go back to the pdf and right click on the rectangle and paste.
- export the page to pdf
- use pdfshuffler to replace the unsigned page with the signed page in the PDF in order. may need pdfshuffler orig sign orig (wasn’t able to move later pages to earlier ones, but was able to delete pages).