Skip to content

Instantly share code, notes, and snippets.

View dunklesToast's full-sized avatar
🌴
chillin around

tom dunklesToast

🌴
chillin around
  • Hanover
  • 14:12 (UTC +02:00)
View GitHub Profile
@dunklesToast
dunklesToast / mikroorm-service-request-context.ts
Created April 1, 2025 08:44
small example of how to use mikroorm's CreateRequestContext decorator with queues in NestJS
@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,
) {}
@dunklesToast
dunklesToast / README.md
Last active May 14, 2022 13:29
Dell R710 Scripts for changing fan speed

Dell PowerEdge R710 Fan Control

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!

@dunklesToast
dunklesToast / getCurrentFormattedTime.js
Last active September 9, 2017 12:49
Simple function which returns time in a nice formatted way
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)}]`
}
@dunklesToast
dunklesToast / Money.java
Last active June 25, 2016 18:53
Devintia Money API Snippet
class DBMoney implements ConfigurationSerializable{
int money;
public DBMoney( int value ){
money = value;
}
public DBMoney( Map<String, Object> data){
money = (int)data.get( "money" );
}
@Override