hosts files layout:
/etc/hosts ('compiled' version)
/etc/hosts.d/
/etc/hosts.d/adblock (adblocking hosts file)
/etc/hosts.d/base (original system hosts file)
/etc/hosts.d/dev (work-related file for development)
.bashrc:
| alias: "[Washing] Done" | |
| description: "" | |
| trigger: | |
| - platform: numeric_state | |
| entity_id: sensor.washing_machine_power | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 0 | |
| above: "500" |
| blueprint: | |
| name: Low battery level detection & notification for all battery sensors | |
| description: Regularly test all sensors with 'battery' device-class for crossing | |
| a certain battery level threshold and if so execute an action. | |
| domain: automation | |
| input: | |
| threshold: | |
| name: Battery warning level threshold | |
| description: Battery sensors below threshold are assumed to be low-battery (as | |
| well as binary battery sensors with value 'on'). |
| grid.addColumn(Customer::getFirstName) | |
| .setHeader("Firstname") | |
| .setSortable(true) | |
| .setSortProperty("first_name"); | |
| grid.addColumn(Customer::getLastName) | |
| .setHeader("Lastname") | |
| .setSortable(true) | |
| .setSortProperty("last_name"); | |
| grid.addColumn(Customer::getStatus) | |
| .setHeader("Status") |
| { | |
| "globals" : | |
| { | |
| "alwaysShowTabs" : true, | |
| "defaultProfile" : "{c3dc362e-35b7-40ad-adae-a240cde43d27}", | |
| "initialCols" : 150, | |
| "initialRows" : 50, | |
| "keybindings" : | |
| [ | |
| { |
| Stock Ubuntu 16.04 installation |
| // https://speakerdeck.com/pedronauck/reactjs-keep-simple-everything-can-be-a-component | |
| var React = require('react'); | |
| var NewsTitle = React.createClass({ | |
| propTypes: { | |
| title: React.PropTypes.object.isRequired | |
| }, | |
| render: function () { | |
| var createdAt = this.props.title.createdAt; |
| #!/bin/sh -e | |
| # default brightness | |
| echo 936 > /sys/class/backlight/intel_backlight/brightness | |
| # sound powersaving | |
| echo 1 > /sys/module/snd_hda_intel/parameters/power_save | |
| # device powersaving | |
| for device in /sys/bus/pci/devices/*/ ; do |
hosts files layout:
/etc/hosts ('compiled' version)
/etc/hosts.d/
/etc/hosts.d/adblock (adblocking hosts file)
/etc/hosts.d/base (original system hosts file)
/etc/hosts.d/dev (work-related file for development)
.bashrc:
| function aLot(n, one, two, many) { | |
| var s = n === 1 ? one : (n === 2 ? two : many); | |
| return s.replace(/\{\}/g, n); | |
| } | |
| aLot(1, 'one link', 'two links', 'countless links ({})'); | |
| aLot(2, 'one link', 'two links', 'countless links ({})'); | |
| aLot(99, 'one link', 'two links', 'countless links ({})'); |
| # commands | |
| alias apt='sudo apt-get' | |
| # stash | |
| function stash() { | |
| filename=$(basename "$2") | |
| filename="${filename%.*}" | |
| case "$1" in | |
| compress) # compress & encrypt |