Skip to content

Instantly share code, notes, and snippets.

🌴
chillin around

Tom dunklesToast

  • Hanover
View GitHub Profile
@dunklesToast
dunklesToast / README.md
Last active Feb 24, 2019
Dell R710 Scripts for changing fan speed
View README.md

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 / nest.sh
Last active Jan 31, 2019
Awesome script to be lazy af
View nest.sh
#!/usr/bin/env bash
# Use it like this: nest.sh "file"
nest generate module $1
nest generate service $1
nest generate controller $1
cd src/$1
rm *.spec.*
@dunklesToast
dunklesToast / getCurrentFormattedTime.js
Last active Sep 9, 2017
Simple function which returns time in a nice formatted way
View getCurrentFormattedTime.js
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 Jun 25, 2016
Devintia Money API Snippet
View Money.java
class DBMoney implements ConfigurationSerializable{
int money;
public DBMoney( int value ){
money = value;
}
public DBMoney( Map<String, Object> data){
money = (int)data.get( "money" );
}
@Override
You can’t perform that action at this time.