Skip to content

Instantly share code, notes, and snippets.

View michaelilyin's full-sized avatar

Michael Ilyin michaelilyin

  • Voronezh
View GitHub Profile
@michaelilyin
michaelilyin / synology-shutdown-temperature.md
Created November 23, 2020 07:17 — forked from borekb/synology-shutdown-temperature.md
How to increase the shutdown temperature on Synology NAS

Synology: how to increase shutdown temperature

My Synology DS218+ runs with a single SSD disk that has an operating temperature range of 0–70 °C, which is common for SSDs. Synology, however, has a default shutdown temperature of 61 °C, probably due to HDDs and some lazy programming.

I'm a very light user of NAS – all I want is a network attached storage and silence. My DS218+ has one 2 TB SSD disk in it and I've changed the system fan for a quieter / slower one.

Everything runs fine but about once in a month, I get this notification:

[Synology DS218+]Synology shut down due to disk overheating. >

@michaelilyin
michaelilyin / details.component.html
Created May 18, 2020 18:05
Find an issue and propose decision
<div *ngFor="let order of orders">
<div>{{ order.number }}</div>
<div>{{ order.description }}</div>
</div>
@michaelilyin
michaelilyin / details.component.html
Created May 18, 2020 18:05
Find an issue and propose decision
<div *ngFor="let order of orders">
<div>{{ order.number }}</div>
<div>{{ order.description }}</div>
</div>
@michaelilyin
michaelilyin / container.component.html
Last active May 19, 2020 08:20
Find an issue and propose decision
<button (click)="config.expanded = !config.expanded">{{ config?.expanded ? 'Collapse' : 'Expand' }}</button>
<hrh-expandable-info [config]="config"></hrh-expandable-info>
@michaelilyin
michaelilyin / task-create-form.component.ts
Last active May 19, 2020 08:02
Find an issue and propose decision
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { TasksService } from '../tasks.service';
import { Location } from '@angular/common';
interface TaskForm {
name: string;
description: string;
}
@michaelilyin
michaelilyin / users.component.html
Created May 18, 2020 16:31
Find an issue and propose decision
<span>Total users: {{ (users$ | async).length }}</span>
<div *ngFor="let user of users$ | async">
{{ user.firstName }} {{ user.lastName }}
</div>
sudo sh -c 'for bin in /opt/jdk-12.0.1/bin/*; do update-alternatives --install /usr/bin/$(basename $bin) $(basename $bin) $bin 100; done'
sudo sh -c 'for bin in /opt/jdk-12.0.1/bin/*; do update-alternatives --set $(basename $bin) $bin; done'
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import java.util.concurrent.Executors
import java.util.concurrent.atomic.AtomicInteger
import kotlin.concurrent.thread
import kotlin.system.measureTimeMillis
val n = 100
val delay = 1000L
@michaelilyin
michaelilyin / simple.spec.ts
Last active June 5, 2018 11:32
Angular testing
describe('Person class', () => {
it('should provide full name', () => {
const person = new Person('John', 'Smith');
expect(person.fullName).toBeTruthy();
expect(person.fullName).toEqual('John Smith')
});
});
@michaelilyin
michaelilyin / .gitlab-ci.yml
Created March 29, 2018 09:46
Angular configs
image: weboaks/node-karma-protractor-chrome:xvfb
cache:
key: "$CI_COMMIT_REF_NAME"
paths:
- node_modules/
before_script:
- npm install