- How to reset NVRAM
or
sudo nvram -c - Show all configs:
sudo nvram -p
To prevent automatic startup when:
- opening the lid/connecting to power:
sudo nvram BootPreference=%00 - opening the lid:
sudo nvram BootPreference=%01
sudo nvram -csudo nvram -pTo prevent automatic startup when:
sudo nvram BootPreference=%00sudo nvram BootPreference=%01| { | |
| // Most code lines should be 40~80 column long after 150 col is not acceptable. | |
| // And the reader have to scroll to the right | |
| "editor.rulers": [ | |
| 40, | |
| 80, | |
| 150 | |
| ], | |
| } |
| class Counter { | |
| static instance; | |
| static getInstance(){ | |
| if(!Counter.instance) Counter.instance = new Counter(); | |
| return Counter.instance; | |
| } | |
| counter = 0; | |
| getCount() { |
| echo pass | sudo openconnect c9.serverkm.xyz:443 --user=user --passwd-on-stdin --script=/etc/vpnc/vpnc-script |
| const {performance} = require('perf_hooks'); | |
| const start = performance.now(); | |
| //Your Code Lays Here :) | |
| const end = performance.now(); | |
| /* | |
| cte : Constant to make 0 < (end-start) < 1 when there is no code | |
| * it's just for better understanding ( if you dont want it leave it to be ) |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |