start the script like this:
./setTo2160.sh idrac ip idrac user - you will be prompted for the password!
./resetToNormal.sh idrac ip idrac user you will be prompted for the password!
| @Injectable() | |
| @Processor('processor') | |
| export class Processor { | |
| constructor( | |
| private readonly service: Service, | |
| // this is needed for the CreateRequestContext decorators | |
| private readonly orm: MikroORM, | |
| private entityManager: EntityManager, | |
| ) {} |
| function getDate() { | |
| const d = new Date(); | |
| return `[${('0'+d.getDate()).toString().substr(-2)}.${('0'+(d.getMonth()+1)).toString().substr(-2)}.${d.getFullYear()} / ${('0'+d.getHours()).toString().substr(-2)}:${('0'+d.getMinutes()).toString().substr(-2)}:${('0'+d.getSeconds()).toString().substr(-2)}]` | |
| } |
| class DBMoney implements ConfigurationSerializable{ | |
| int money; | |
| public DBMoney( int value ){ | |
| money = value; | |
| } | |
| public DBMoney( Map<String, Object> data){ | |
| money = (int)data.get( "money" ); | |
| } | |
| @Override |