Modifiers are flags that are set on different attributes, objects etc. within a program to control certain things like access and other functionality. There are two types of modifiers; Access – modifiers are used to set the access level for classes, attributes, methods and constructors. What that means is it will set who/what and how… Continue reading Modifiers, who, what, why, when?
Hardware…
The only part of a computer you can kick!
Redo last command as (g)root
Whoops I meant root or did I? It’s less funny is you don’t get the reference – google it. Running a command and then finding you need elevated privileges can be a bit annoying but this command below can save your hassle! One step closer to becoming a command-line-ninja!
Did you want many dirs?
Creating directories/folders can be a laborious task if you need to make many especially if they are nested, this handy trick saves your bacon and makes life a lot easier! Easy-peasy, directory squeezy!
! false
… it’s funny because it’s true
Cron!
Cron is a time-based scheduler to execute scripts/commands on a time frame that you set. This is a neat little utility that is often over-looked for forgotten. I’ll be honest I didn’t have much experience for cron for a few years so basically forgot all there is to know! Well here is the basics anyone… Continue reading Cron!
Simple model management and generation in Java
In Java managing models and their generational usages can be a bit cumbersome when you are developing code or a system that has a lot of transitional states i.e. REST call to a API to retrieve some data to manipulate, polling from a topic to process a state change or something along the lines of… Continue reading Simple model management and generation in Java
Setting global git config
Setting the correct git config is a good indicator of a good dev and in some areas a requirement i.e. github will verify your commits if they can prove it came from you and a source that it knows to be verified. I won’t go down the rabbit hole of git configuration as their documentation… Continue reading Setting global git config
Finding and clearing out large files
We have all been where you are experiencing some funky behaviour in a *nix OS and little do you know you have filled up a file system because some log or process has spun out of control and is continually writing to disk. Well I done this again today without realising this is what was… Continue reading Finding and clearing out large files