Skip to content

Instantly share code, notes, and snippets.

View JohannesHoppe's full-sized avatar
🅰️
Working on Angular things!

Johannes Hoppe JohannesHoppe

🅰️
Working on Angular things!
View GitHub Profile
@JohannesHoppe
JohannesHoppe / update_git_repos.sh
Created May 25, 2016 16:25 — forked from douglas/update_git_repos.sh
Update all git repositories under a base directory
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
# Let the person running the script know what's going on.
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n"
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do
@JohannesHoppe
JohannesHoppe / @[email protected]
Created June 20, 2016 19:31
Substitute for ROUTER_FAKE_PROVIDERS @angular/[email protected] test workaround
/* workaround, see https://github.com/angular/vladivostok/issues/45 */
import { Router, ActivatedRoute } from '@angular/router';
class MockRouter { createUrlTree() {} }
class MockActivatedRoute { }
beforeEachProviders(() => [
provide(Router, { useClass: MockRouter }),
provide(ActivatedRoute, { useClass: MockActivatedRoute })
]);
/* workaround */
@JohannesHoppe
JohannesHoppe / git_fetch_all.cmd
Last active August 18, 2016 20:57
git_fetch_all.cmd
@echo off
%~d0
CD "%~dp0"
echo ##### Fetching all repositories from Git #####
for /D %%i in (*.*) do call :handlerepo %%i
EXIT /B 0
@JohannesHoppe
JohannesHoppe / git_pull_all.cmd
Last active August 18, 2016 20:59
git_pull_all.cmd
@echo off
%~d0
CD "%~dp0"
echo ##### Pulling all repositories from Git #####
for /D %%i in (*.*) do call :handlerepo %%i
EXIT /B 0
@JohannesHoppe
JohannesHoppe / set_plink.cmd
Created August 18, 2016 21:26
fix Error: Permission denied (publickey)
@JohannesHoppe
JohannesHoppe / execute-me.sh
Last active December 13, 2016 10:37
GIT: use rebase by default
git config --global pull.rebase true
@JohannesHoppe
JohannesHoppe / download-vsix-link
Created January 10, 2017 14:14 — forked from Mido22/download-vsix-link
In Visual Studio Code: for adding a download link to download extension in .vsix format to install offiline
@JohannesHoppe
JohannesHoppe / quotes.json
Created January 16, 2017 13:05
quotes.json
{
"quotes": [
{
"text": "Angular 1 is a framework. Angular 2 is a platform.",
"author": "Brad Green",
"source": "https://auth0.com/blog/ng-conf-summary-day-1/"
},
{
"text": "React is a scalpel, Angular is an operating room.",
"author": "Corinna Cohn",
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}\\bin\\angular-cli-ghpages.js",
"stopOnEntry": false,
//"args": ["--repo=xxx", "--name=yyy", "--email=zzz", "--dir=../TMP/BookMonkey", "--branch=master"],
@JohannesHoppe
JohannesHoppe / unsecure_chrome.cmd
Created February 17, 2017 17:27
Disable same origin policy in Chrome
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="C:/TEMP"