TextMate 2: uses spaces instead of tabs and set tab size








  • Edit ~/.tm_properties and put:
    tabSize = 2
    softTabs = true
    softWrap = true
    
    [ source.java ]
    tabSize = 4
    softTabs = true
    
    [ source.python ]
    tabSize = 4
    softTabs = true
    
    [ source.tcl ]
    tabSize = 4
    softTabs = true
    



Uploading Multiple Files to Google Drive with Google App Script








  • Form.html Note: Replace rootFolderId with the id of destination folder on your Google Drive.


  • Code.gs



Enable livepatch on Ubuntu Linux 16.04 LTS








  1. Install snapd:
    sudo apt-get install snapd
  2. Install the canonical-livepatch snap:
    sudo snap install canonical-livepatch
  3. Go to https://ubuntu.com/livepatch and retrieve your livepatch token
  4. Enable the service with your token:
    sudo /snap/bin/canonical-livepatch enable [TOKEN]
  5. You can check the status at any time using:
    sudo /snap/bin/canonical-livepatch status --verbose



See also