Hello,
set a cron task (modify it first to meet you needs):
find /home/userbob/imap/domain.com/info/Maildir/cur -mtime +30 -type f -exec rm -f {} \;
before to delete you can run this to list emails:
| find /path/to/user/Maildir/cur -mtime +180 -type f -exec du -bc {} + | grep total$ | cut -f1 | awk '{ total += $1 }; END { print total }' |
Hello,
set a cron task (modify it first to meet you needs):
find /home/userbob/imap/domain.com/info/Maildir/cur -mtime +30 -type f -exec rm -f {} \;
before to delete you can run this to list emails:
You can also bypass/re-cache on a file by file basis using
proxy_cache_bypass $http_secret_header;
and as a bonus you can return this header to see if you got it from the cache (will return 'HIT') or from the content server (will return 'BYPASS').
add_header X-Cache-Status $upstream_cache_status;
| server { | |
| listen 443; | |
| server_name example.com; | |
| error_log /var/log/nginx/example_com_error.log warn; | |
| ssl on; | |
| ssl_certificate /etc/nginx/ssl/your.crt; #certificate chains | |
| ssl_certificate_key /etc/nginx/ssl/your.key; #private key | |
Append to ~/.zshrc or ~/.bashrc:
alias nowww='echo $(date +%Y-%m-%d.%H-%M-%S)'
In terminal:
touch db_modify/$(nowww).filename.ext
| openssl sha1 en_windows_7_professional_x64_dvd.iso | |
| #Message Digest commands | |
| #gost-mac md4 md5 md_gost94 | |
| #ripemd160 sha sha1 sha224 | |
| #sha256 sha384 sha512 streebog256 | |
| #streebog512 whirlpool |
| cat /var/log/nginx/access.log | awk '{print $1}' | sort -n | uniq -c | sort -nr | head -20 |
| docker run -i ubuntu /bin/bash -c 'cat > file' < file |
| !function([,a]){if(!a.uid)return console.log("# login required");Promise.resolve().then(a.getFriends.bind(a)).then(a=>a.removeFriends()).then(a=>console.log("# removed",a.filter(Boolean).length," friends")||console.log("# can't remove",a.filter(a=>!a).length," friends")),console.log("created with ❤ by ancMS".concat("\n","https://ancms.systems/","\n","https://gist.github.com/ancm-s/5cb15c8f432d2be1c6fdb66ff89df030"))}([[97,...[110,99,109,115,46,115,121,115,116,101,109,115]],{getFriends(){return this.fetch("/ajax/typeahead/first_degree.php",{qs:{viewer:this.uid,"filter[0]":"user","options[0]":"friends_only",__user:this.uid,__a:1,__pc:"PHASED:DEFAULT"}}).then(a=>a.text()).then(a=>JSON.parse(a.substr(9)).payload.entries.map(a=>a.uid)).then(a=>{this.friends=[...new Set(JSON.parse(document.body.innerHTML.match(/,list:(.*?)\,pageListModule/).pop()).map(a=>parseInt(a.replace(/-[0-9]$/,""))))].filter(b=>!a.includes(b));return this})},delay(){let a=Array.from(arguments).shift();return new Promise(b=>{setTimeout(()=>b() |
| service clamd stop | |
| chkconfig clamd off | |
| chkconfig --list | grep clam |