-
Aventuras no Terminal: criando um novo usuário | MacMagazine.com.br
“sudo dscl . -append /Groups/admin GroupMembership johndoe”
-
cyanogenmod – How to find the root of android slow down – Android Enthusiasts Stack Exchange
“Very low amount of free RAM. Check under Settings>Apps>Running how much free RAM you have If your free RAM is too low (70-150MB or less) it’s probably the cause so check which app/apps, if it’s not an app maybe it’s a bug in the ROM. (see 3)
Low free space on internal storage. (check under Setting>Storage) If the free space is too low (~2GB or less), try free up some space and check if that helps
Kernel bug/misconfiguration. Try to check your CPU usage stats, clock speed, governor, number of active cores etc… (If you havn’t flashed a custom kernel and never changed the governor/clock speed or other performance settings it’s probably not the problem)
ROM bug You can try perform a nandroid backup, then reinstall the rom after full wipe and see how it performs, if it’s still slow, try clean install of the version that previously worked fine (only if you know what you doing!)
Bug in one of the user apps. If your CPU/RAM usage is too high for no reason maybe one of your apps eating it. I recommend you to try OSMonitor or any similar app to find which app eating your CPU/RAM.
“ -
Decryption unsuccessfull | Moto G5
“If you formatted some partition from F2FS to EXT4, the mobile will accuse this error. Go back to F2FS.
This error can also occur if you have not made all the necessary WIPES.”
Mês: janeiro 2019
Update (weekly)
-
monitoring – How do you monitor the progress of dd? – Ask Ubuntu
“dd if=/dev/urandom | pv | dd of=/dev/null”
-
jquery set checkbox checked – Stack Overflow
“.prop(‘checked’, true);
Before jQuery 1.6 (see user2063626’s answer):.attr(‘checked’,’checked’)”
-
cursor.sort() — MongoDB Manual
“db.orders.find().sort( { “item.category”: 1, “item.type”: 1 } )”
Update (weekly)
-
How to specify `–authenticationDatabase` in mongoose? · Issue #3905 · Automattic/mongoose · GitHub
“Easiest way is to specify authSource in the uri
const uri = ‘mongodb://monguser:mongpass@192.168.2.2:27017/ps?authSource=admin’;”
-
“use admin
db.createUser(
{
user: “myUserAdmin”,
pwd: “abc123”,
roles: [ { role: “userAdminAnyDatabase”, db: “admin” }, “readWriteAnyDatabase” ]
}
)” -
Installing Express/Nginx app with SSL using Certbot on Ubuntu 18.04 | Codementor
“sudo npm install -g pm2
sudo pm2 startup
sudo pm2 start index.js
sudo pm2 save”-
server { listen 80; server_name yourdomain.com www.yourdomain.com; location / { proxy_pass http://localhost:3001; # Change the port if needed proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection ‘upgrade’; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } }
-
sudo ln -s /etc/nginx/sites-available/yourdomain.com.conf /etc/nginx/sites-enabled/
-
sudo add-apt-repository ppa:certbot/certbot sudo apt update sudo apt install python-certbot-nginx
-
sudo certbot –nginx
-
sudo service nginx restart
-
-
How can I get a Let’s Encrypt certificate for a non-public facing server? – Server Fault
“Basically, you run this command and follow the directions:
certbot -d site.your.dom.ain –manual –preferred-challenges dns certonly”
-
node.js – mongoose query same field with different values – Stack Overflow
“mongoose.find({title: {$in: [‘some title’, ‘some other title’]}})”