Useful git aliases

October 25, 2016 Leave a comment

Here’s some useful git configurations and aliases.  The way you make a git alias is as follows:

$ git config --global checkout
$ git config --global branch
$ git config --global commit
$ git config --global 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.

alias.loga=log --oneline -15 --graph --decorate --all
alias.rev=remote -v
alias.lst=ls-tree --abbrev -l HEAD
core.pager=less -r
Categories: Uncategorized

PIXMA 100 setup

October 16, 2016 Leave a comment

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.
Categories: Uncategorized

no sound on ipad games

November 28, 2015 Leave a comment

check rotation lock, it is the same switch for mute, which can stop game sounds

Categories: Uncategorized

hotas joystick

November 27, 2015 Leave a comment

pressing mapping&preset together, then the home light will flash. then reboot. you can test whether the driver is working from settings

Categories: Uncategorized

wireless on debian toshiba satellite

April 14, 2013 Leave a comment
  1. lspci, look for wireless network
  2. the drivers are proprietary, non-free so google for the driver and install.  in this case it was firmware-iwlwifi.
  3. wireless-tools
  4. wicd (networkmanager also may have been helpful at some time, but i think its best to have only 1 of them installed.)
  5. 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.)
Categories: debian

wipe failing drive using systemrescuecd

February 18, 2013 Leave a comment
ddrescue --force /dev/zero /dev/sdb log.txt
Categories: Uncategorized

fill out and sign a PDF on debian

January 18, 2013 Leave a comment
  1. 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)
  2. edit a photo of signature in gimp (nice video
    1. layer/transparency/add alpha channel.  like writing on an overhead slide, the checkerboard represents the background through the slide
    2. use fuzzy select tool from toolbox to select the background from the photo
    3. delete the background, should see checkerboard.  delete within loops for O, Q, etc.
    4. 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.
    5. open the pdf from gimp and select the page which needs the signature
    6. use the rectangle select tool to select the area where the signature should go.  note the height and/or width of the field.
    7. go to the signature image and image/scale image.  enter either the height or width to scale to, then`edit/copy visible.
    8. go back to the pdf and right click on the rectangle and paste.
    9. export the page to pdf
  3. 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).