fatrace reports file access events from all running processes.
$ sudo apt-get install fatrace
nJoy 😉
fatrace reports file access events from all running processes.
$ sudo apt-get install fatrace
nJoy 😉
First you need to install sshpass.
apt-get install sshpassyum install sshpasspacman -S sshpassExample:
sshpass -p "YOUR_PASSWORD" ssh -o StrictHostKeyChecking=no YOUR_USERNAME@SOME_SITE.COM
Custom port example:
sshpass -p "YOUR_PASSWORD" ssh -o StrictHostKeyChecking=no YOUR_USERNAME@SOME_SITE.COM:2400
from : https://stackoverflow.com/questions/12202587/automatically-enter-ssh-password-with-script
This works better for me though for sshfs:
echo $mypassword | sshfs -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no user@host mountpoint -o workaround=rename -o password_stdin
nJoy 😉
[root@ftp /mnt/test]# ntfs-3g /dev/da10s1 /mnt/test
fuse: failed to open fuse device: No such file or directory
kldload fuse
That’s a missing module needs loading.
nJoy 😉
geom disk list
nJoy 😉
The disk will not automatically resize on many platforms once more disk space was made available.
Particularly in Ubuntu 16.04
Rescanning the device for size maps :
echo 1 > /sys/class/scsi_device/2\:0\:0\:0/device/rescan
Then standard procedures to grow the fs apply.
nJoy 😉
The problem :
When we have a react.js based site (hosted on port 8000) and ngrok it for development purposes we get
Invalid Host Header
The fix is to override the header on reflection:
ngrok http 8000 -host-header="localhost:8000"
That’s it
😉 nJoy
General idea of the config
https + proxy pass + virtual host
Nginx as a proxy causes a failure of wss:// connections to the backend server.
add these parameters to the proxy section :
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
proxy_set_header Host $host;
Voila’ !!!
😉 nJoy
test :
perl -e exit
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Paste the following or add to server bash.rc :
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_TYPE=en_US.UTF-8
nJoy 😉
1. Clear PageCache only.
# sync; echo 1 > /proc/sys/vm/drop_caches
2. Clear dentries and inodes.
# sync; echo 2 > /proc/sys/vm/drop_caches
3. Clear PageCache, dentries and inodes.
# sync; echo 3 > /proc/sys/vm/drop_caches
nJoy 😉
SELECT * FROM pg_replication_slots;
nJoy 😉