OSX Homebrew Setup for Multiple Users
- Users & Groups --> add group 'brew' w/ users
- exec: sudo chgrp -R brew $(brew --prefix)/*
- exec: sudo chmod -R g+w $(brew --prefix)/*
""""""""""""""""""""""" | |
"--- !! VUNDLE !! --- " | |
""""""""""""""""""""""" | |
set shell=/bin/bash | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' |
""""""""""""""""""""""""""" | |
"--- GENERAL SETTINGS ---" | |
""""""""""""""""""""""""""" | |
scriptencoding utf-8 | |
set enc=utf-8 | |
set fileencoding=utf-8 | |
set fileencodings=ucs-bom,utf8,prc | |
set tabstop=4 | |
set shiftwidth=4 |
# ---------------------------- # | |
# --- GENERAL ZSH SETTINGS --- # | |
# ---------------------------- # | |
ZSH=$HOME/.zsh # Path to zsh_cfg.sh | |
ZSH_THEME="agnoster" # chosen theme | |
source $ZSH/zsh_cfg.sh # laod zsh config file | |
# path settings |
dconf reset -f /com/github/wwmm/pulseeffects/ | |
pactl unload-module module-device-manager |
""""""""""""""""""""""""""" | |
"--- GENERAL SETTINGS ---" | |
""""""""""""""""""""""""""" | |
scriptencoding utf-8 | |
set enc=utf-8 | |
set fileencoding=utf-8 | |
set fileencodings=ucs-bom,utf8,prc | |
set backspace=indent,eol,start "in case bcksp isnt working well" | |
set tabstop=2 |
Notes to make IR shield (made by LinkSprite) work in Raspberry Pi 3 (bought from Amazon [1]). | |
The vendor has some documentation [2] but that is not complete and sufficient for Raspbian Stretch. | |
Following are the changes that I made to make it work. | |
$ sudo apt-get update | |
$ sudo apt-get install lirc | |
# Add the following lines to /etc/modules file | |
lirc_dev | |
lirc_rpi gpio_in_pin=18 gpio_out_pin=17 |
function groupBy(array: any[], f): any { | |
const groups = {}; | |
array.forEach(function (o) { | |
const group = JSON.stringify(f(o)); | |
groups[group] = groups[group] || []; | |
groups[group].push(o); | |
}); | |
return Object.keys(groups).map(function (group) { | |
return groups[group]; | |
}); |
""""""""""""""""""""""""""" | |
"--- GENERAL SETTINGS ---" | |
""""""""""""""""""""""""""" | |
scriptencoding utf-8 | |
set enc=utf-8 | |
set fileencoding=utf-8 | |
set fileencodings=ucs-bom,utf8,prc | |
set tabstop=4 | |
set shiftwidth=4 |
import {Directive, ElementRef, Input, OnChanges, OnInit} from '@angular/core'; | |
import 'rxjs/add/operator/map'; | |
import {HttpClient, HttpErrorResponse} from "@angular/common/http"; | |
@Directive({ | |
selector: '[includeHtml]' | |
}) | |
export class IncludeHtmlDirective implements OnInit, OnChanges { |