crontab solutions

make sure to enable write for the .sh file

chmod +x test.php

copy in /usr/local/sbin

crontab -l

crontab -e

Leave a comment

Filed under Technical Links

css snippets

http://littlesnippets.net/

https://codemyui.com

Leave a comment

Filed under Technical Links

Custom post types

The Complete Guide To Custom Post Types

Leave a comment

Filed under Technical Links

wordpress app

Developing a WordPress Theme from Scratch

Leave a comment

Filed under Technical Links

MsDeploy add and remove files

http://sedodream.com/2010/05/01/WebDeploymentToolMSDeployBuildPackageIncludingExtraFilesOrExcludingSpecificFiles.aspx

Exclude

  

  
    Project
  

Include:

  

  
    CustomCollectFiles;
    $(CopyAllFilesToSingleFolderForPackageDependsOn);
  

  

  
    

    
      Extra Files\%(RecursiveDir)%(Filename)%(Extension)
    
  

  
    
      CustomCollectFiles;
      $(CopyAllFilesToSingleFolderForMsdeployDependsOn);
    
  

Leave a comment

Filed under Technical Links

Angular2 dynamic routes

http://stackoverflow.com/questions/36350906/dynamic-build-routes-or-dynamic-component-import-angular-2

Actually just do this:

import { Component } from ‘@angular/core’;
import { Router } from ‘@angular/router’;

@Component({
selector: ‘my-app’,
template: `

<h1>Test</h1>
<a (click)=”changeRoutes()”>change routes</a>
<nav>
<a routerLink=”mod1″ routerLinkActive=”active”>Module1</a>
<a routerLink=”mod2″ routerLinkActive=”active”>Module2</a>
</nav>
<router-outlet></router-outlet>
`
})
export class AppComponent {

constructor(private router:Router) { }

changeRoutes():any{
this.router.resetConfig([
{ path: ”, redirectTo: ‘mod1’, pathMatch: ‘full’},
{ path: ‘mod2’, loadChildren: ‘app/modules/module1/module1.module#Module1Module’ },
{ path: ‘mod1’, loadChildren: ‘app/modules/module2/module2.module#Module2Module’ }
]);
this.router.navigateByUrl(‘/’);
}
}

Leave a comment

Filed under Technical Links

Free log service

https://www.loggly.com/plans-and-pricing/

Leave a comment

Filed under Technical Links