Skip to content

Instantly share code, notes, and snippets.

save-prefix=
<div>
<!-- a named slot -->
<slot name="start"></slot>
<p>Here is content from in the component</p>
<!-- default slot, will be used by default -->
<slot></slot>
</div>
<my-component>
.md ion-grid {
}
.ios ion-grid {
}
#!/usr/bin/env node
const puppeteer = require('puppeteer');
const fs = require('fs');
const args = process.argv.slice(2);
const host = args[0] || 'http://127.0.0.1:8080';
const indexMatches = [
'.gz',
'.map',
'3rdpartylicenses.txt',
'ngsw-manifest.json',
"| \/ (_) | (_)
"| . . |_| | _____ ___ _ ____ ___ _ __ ___ _ __ ___
"| |\/| | | |/ / _ \/ __| | '_ \ \ / / | '_ ` _ \| '__/ __|
"| | | | | < __/\__ \ | | | \ V /| | | | | | | | | (__
"\_| |_/_|_|\_\___||___/ |_| |_|\_/ |_|_| |_| |_|_| \___|
"
" Author: Mike Hartington
" repo : https://github.com/mhartington/dotfiles/
"
" Plugins ------------------------------------------------------------------{{{
function ghUpdate() {
if git remote | grep upstream > /dev/null; then
echo "upstream is set"
elif [ -z "$1" ]; then
read "?Whats the URl of the original repo? " answer
git remote add upstream $answer
else
git remote add upstream $1
fi
git fetch upstream
> ng serve --host=0.0.0.0 --port=8100 --progress=false
[ng] Cannot read property 'host' of null
[ng] TypeError: Cannot read property 'host' of null
[ng] at Architect._loadJsonFile (/Users/mhartington/GitHub/StarTrack-ng/node_modules/@angular-devkit/architect/src/architect.js:200:32)
[ng] at Architect.loadArchitect (/Users/mhartington/GitHub/StarTrack-ng/node_modules/@angular-devkit/architect/src/architect.js:68:45)
[ng] at MergeMapSubscriber.workspaceLoader.loadWorkspace.pipe.operators_1.concatMap.workspace [as project] (/Users/mhartington/GitHub/StarTrack-ng/node_modules/@angular/cli/models/architect-command.js:150:184)
[ng] at MergeMapSubscriber._tryNext (/Users/mhartington/GitHub/StarTrack-ng/node_modules/@angular/cli/node_modules/rxjs/operators/mergeMap.js:122:27)
[ng] at MergeMapSubscriber._next (/Users/mhartington/GitHub/StarTrack-ng/node_modules/@angular/cli/node_modules/rxjs/operators/mergeMap.js:112:18)
[ng] at MergeMapSubscriber.Subscriber.next (/Users/mhartington/GitHub/Star

Mac's tend to have App Icons that are all over the place. Here's a quick little trick to modify them and make them consistent.

Disable SIP

First we need to disable SIP to change some system icons. This is pretty simple, but read about it here

With this done, we can now modify apps like Finder, Messages, Mail, or any Apple Apps.

Download LiteIcon

# reload config
alt - r : khd -e "reload"
# open terminal, blazingly fast compared to iTerm/Hyper
alt - f : open /Applications/Kitty.app
alt - s : open /Applications/Safari.app
alt - d : open /Applications/Slack.app
# focus window
# alt - h : chunkc tiling::window --focus west
#!/bin/bash
#
# NOTE: specify the absolutepath to the directory to use when
# loading a plugin. '~' expansion is supported.
#
chunkc core::plugin_dir /usr/local/opt/chunkwm/share/chunkwm/plugins
#