<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>localhost.pbcopy</string>| HOMEBREW_VERSION: 0.9 | |
| HEAD: f3f601b7bbbbc621fb49b8aa08f0705cb5306adb | |
| HOMEBREW_PREFIX: /usr/local | |
| HOMEBREW_CELLAR: /usr/local/Cellar | |
| CPU: quad-core 64-bit sandybridge | |
| OS X: 10.7.4 | |
| Kernel Architecture: x86_64 | |
| Xcode: 4.3.2 | |
| GCC-4.0: N/A | |
| GCC-4.2: N/A |
| /** | |
| The idea here is that all changes to your new object can be observed | |
| */ | |
| Ember.View.extend({ | |
| model: Ember.StalkableObject.create(), | |
| saveModel: Ember.observer(function () { | |
| /** do some fancy stuff to save changes to your model */ | |
| }, 'model.@properties') | |
| }); |
| App = require 'app' | |
| ###* | |
| Controller ExampleItemsController | |
| @class ExampleItemsController | |
| @namespace App | |
| @extends Ember.ArrayController | |
| ### | |
| module.exports = App.ExampleItemsController = Ember.ArrayController.extend App.Mixins.PagedSearchableArrayController, |
I frequently administer remote servers over SSH, and need to copy data to my clipboard. If the text I want to copy all fits on one screen, then I simply select it with my mouse and press CMD-C, which asks relies on m y terminal emulator (xterm2) to throw it to the clipboard.
This isn't practical for larger texts, like when I want to copy the whole contents of a file.
If I had been editing large-file.txt locally, I could easily copy its contents by using the pbcopy command:
Arch Linux is both lightweight and highly customizable, and is the perfect distro for creating a kiosk using the low-powered RasPi 2. Full details about Arch Linux on the RasPi 2 can be found on the [Official Arch Linux ARM wiki] (https://archlinuxarm.org/platforms/armv7/broadcom/raspberry-pi-2).
Getting started
| #!/usr/bin/env bash | |
| # WARNING!! | |
| # This will obliterate all the data in your partition!! (not actually true, but act as if it was) | |
| # Do NOT execute this script if you don't fully understand it! | |
| # a few vars | |
| amount_of_swap=$( free --si -g | grep Mem: | gawk '{ print $2 + 1}' ) | |
| # create directories |
| # prerequisites: | |
| ## install software | |
| apt install mariadb-server libmariadbclient-dev sqlite3 | |
| ## install mysqlclient in virtualenv | |
| su -c 'homeassistant/bin/pip3 install mysqlclient --upgrade' -l homeassistant | |
| ## create database | |
| mysql -e 'CREATE SCHEMA IF NOT EXISTS `hass_db` DEFAULT CHARACTER SET utf8' | |
| ## create user (use a safe password please) | |
| mysql -e "CREATE USER 'hass_user'@'localhost' IDENTIFIED BY 'hass_pw'" | |
| mysql -e "GRANT ALL PRIVILEGES ON hass_db.* TO 'hass_user'@'localhost'" |
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.