Skip to content

Instantly share code, notes, and snippets.

View silentHoo's full-sized avatar
✌️

Patrick Hillert silentHoo

✌️
View GitHub Profile
@silentHoo
silentHoo / publish_to_private_npm_from_ci.md
Last active September 21, 2022 06:49
Push and pull into and from your private npm registry via CI pipeline

Publish to private npm registry from your CI pipeline

If you want to publish packages to your private registry, e.g. to jfrog.io/Verdaccio/... you should note some important things:

1) Authenticate on your local machine

To authenticate against the private repository, you've to use the npm cli tool. But first you should get your API access token. That's safer than using your password.

npm adduser --registry https://<registry_url>/<api_path>/ --always-auth
@silentHoo
silentHoo / add-new-bitnami-discourse-plugins.sh
Last active May 24, 2018 15:19
This is how you start a Discourse stack with Bitnamis compose file and add a plugin to it
# if you use https://github.com/bitnami/bitnami-docker-discourse for your Discourse setup
# you can simply add some plugins (https://meta.discourse.org/c/plugin):
# 0) Clone docker-compose.yml
curl -sSL https://raw.githubusercontent.com/bitnami/bitnami-docker-discourse/master/docker-compose.yml > docker-compose.ym
# 1) Start Docker Compose
docker-compose up
# 2) Join container
@silentHoo
silentHoo / ngrxintro.md
Created July 28, 2016 09:49 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

#Comprehensive Introduction to @ngrx/store By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

const proxy = require('proxy-middleware');
import {join} from 'path';
import {SeedConfig} from './seed.config';
import {InjectableDependency} from './seed.config.interfaces';
export class ProjectConfig extends SeedConfig {
PROJECT_TASKS_DIR = join(process.cwd(), this.TOOLS_DIR, 'tasks', 'project');
constructor() {
// create a <test-span> element
var myElement = document.registerElement('test-span', {
prototype: Object.create(HTMLSpanElement.prototype),
extends: 'span'
});
// extend <test-span> to <test-span is="test-span-extended">
var myExtendedElement = document.registerElement('test-span-extended', {
prototype: Object.create(myElement.prototype),
extends: 'test-span'