Skip to content

Instantly share code, notes, and snippets.

View dennisotugo's full-sized avatar
🎯
Focusing

Dennis W. Otugo dennisotugo

🎯
Focusing
View GitHub Profile

https://esc.sh/blog/nvme-ssd-and-linux-freezing/

nvme_core.default_ps_max_latency_us=5500

How to update the Kernel parameter

First of all, figure out if you are using Grub or systemd boot. If you are using Pop OS!, you are most probably using systemd-boot. I believe Ubuntu is still using Grub2, please do your research.

For Grub

for f in *.tar; do tar xf $f; done
for f in *.tar.md5; do tar xf $f; done
lz4 -dm *.lz4
adb reboot bootloader
heimdall flash \
--pit part.pit \
--BOOTLOADER sboot.bin \
--CM cm.bin \
--PARAM param.bin \
--UP_PARAM up_param.bin \
{
"test_cms1": {
"mappings": {
"cms_block": {
"properties": {
"active": {
"type": "boolean"
},
"content": {
"type": "text"
{
"test_cms1_1559332637": {
"mappings": {
"category": {
"properties": {
"available_sort_by": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",

Keybase proof

I hereby claim:

  • I am dennisotugo on github.
  • I am dennisotugo (https://keybase.io/dennisotugo) on keybase.
  • I have a public key ASDCqjUt406i1fe8wDjWty0iq0w851gDJKt9kUiPWKj3YQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am dennisotugo on github.
  • I am dennisotugo (https://keybase.io/dennisotugo) on keybase.
  • I have a public key ASDCqjUt406i1fe8wDjWty0iq0w851gDJKt9kUiPWKj3YQo

To claim this, I am signing this object:

//Add a user and give admin privilege
# adduser username
# usermod -aG sudo username
Output
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
Nginx HTTP ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
Nginx HTTP (v6) ALLOW Anywhere (v6)
$ sudo ufw status
Output
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
Nginx Full ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
Nginx Full (v6) ALLOW Anywhere (v6)