Skip to content

Instantly share code, notes, and snippets.

View romach's full-sized avatar

Roman Cherepanov romach

View GitHub Profile
npm install -g @angular/cli
ApplicationContext context = new AnnotationConfigApplicationContext(AppConfiguration.class);
    @Bean
    MessageProvider messageProvider() {
        return new HelloWorldMessageProvider();
    }
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
@NgModule({
imports: [
StoreModule.forRoot(rootReducer),
// Instrumentation must be imported after importing StoreModule (config is optional)
StoreDevtoolsModule.instrument({
maxAge: 50
})
]
@romach
romach / README.md
Last active November 3, 2019 14:57

test

  • in /etc/ssh/sshd_config set PermitRootLogin no
  • run service ssh restart
sudo adduser <username> sudo

execute passwd usermname with root user