Do yourself a favor and login as root to save yourself some time and headaches:
$ sudo su -Install unattended-upgrades:
| <section> | |
| <nav></nav> | |
| <article></article> | |
| </section> | |
| <style> | |
| nav{ | |
| top: 0; | |
| bottom: 0; | |
| left: 0; |
| cd /branches/myBranch | |
| svn log --stop-on-copy | |
| # note the revision number your branch at which your branch was created | |
| cd /trunk | |
| svn update | |
| # note the revision number at which your trunk is at currently | |
| svn merge -r[branchRevNum]:[trunkRevNum] svn+ssh://server/project/branch/myBranch | |
| # resolve any conflicts |
| .center { | |
| position: absolute; | |
| left: 50%; | |
| top: 50%; | |
| transform: translate(-50%, -50%); | |
| /* | |
| Not even necessary really. | |
| e.g. Height could be left out! |
| <snippet> | |
| <content><![CDATA[ | |
| (function () { | |
| 'use strict'; | |
| ${1:// body} | |
| })(); | |
| ]]></content> | |
| <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
| <tabTrigger>iife</tabTrigger> |
| # first: | |
| lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
| sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
| # To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
| # go to /usr/local/lib and delete any node and node_modules | |
| cd /usr/local/lib | |
| sudo rm -rf node* |
| #!/usr/bin/env node | |
| 'use strict'; | |
| const chalk = require('chalk'); | |
| const del = require('del'); | |
| const fs = require('fs'); | |
| const google = require('googleapis'); | |
| const googleAuth = require('google-auth-library'); | |
| const _ = require('lodash'); |
| # Import the RPi.GPIO and OS | |
| import RPi.GPIO as GPIO | |
| import os | |
| import sys | |
| import time | |
| # GPIO port setup | |
| GPIO.setmode(GPIO.BCM) | |
| # Power switch: will send a shutdown message to the OS |
A Pen by Will Pracht on CodePen.