- Paylasilacak dizini erisime ac:
sudo chmod ugo+rwx /run/media/nuc/kirmizi
- NFS icin kullanilacak dizini olustur:
sudo mkdir -p /srv/nfs/kirmizi
fstab
dosyasini ac:sudo xed /etc/fstab
- Mount komutunu dosyaya ekle:
/run/media/nuc/kirmizi /srv/nfs/kirmizi none bind 0 0
- Dizinleri tekrar bagla:
sudo mount -a
exports
dosyasini ac:sudo xed /etc/exports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @source answer https://stackoverflow.com/a/27363569/7325594 | |
// @source question https://stackoverflow.com/questions/5202296/add-a-hook-to-all-ajax-requests-on-a-page | |
(function () { | |
var origOpen = XMLHttpRequest.prototype.open | |
XMLHttpRequest.prototype.open = function () { | |
console.log('request started!') | |
this.addEventListener('load', function () { | |
console.log('request completed!') | |
console.log(this.readyState) // will always be 4 (ajax is completed successfully) | |
console.log(this.responseText) // whatever the response was |
- Compress a pdf file:
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
- Resize a pdf file (e.g. from US letter) to A4:
gs -o output.pdf -sDEVICE=pdfwrite -sPAPERSIZE=a4 -dFIXEDMEDIA -dPDFFitPage -dCompatibilityLevel=1.4 input.pdf
- Show a summary of the running hardware:
inxi -Fxz
- Convert mp4 to gif:
ffmpeg -i example.mp4 -r 15 -vf scale=512:-1 -ss 00:00:02 -to 00:00:06 example.gif
- Split video into smaller chunks:
ffmpeg -i *.mp4 -c copy -map 0 -segment_time 00:02:00 -f segment -reset_timestamps 1 output_%03d.mp4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Created by https://www.gitignore.io/api/git,node,linux,phpstorm | |
# Edited by Emre Piskin <piskin.emre@gmail.com> | |
### Git ### | |
*.orig | |
### Linux ### | |
*~ | |
# temporary files which can be created if a process still has a handle open of a deleted file |
NewerOlder