sysctl -w fs.file-max=12000500
sysctl -w fs.nr_open=20000500
# Set the maximum number of open file descriptors
ulimit -n 20000000
# Set the memory size for TCP with minimum, default and maximum thresholds
sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000'
This file contains hidden or 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
| /** | |
| * Calculate the center/average of multiple GeoLocation coordinates | |
| * Expects an array of objects with .latitude and .longitude properties | |
| * | |
| * @url http://stackoverflow.com/a/14231286/538646 | |
| */ | |
| function averageGeolocation(coords) { | |
| if (coords.length === 1) { | |
| return coords[0]; | |
| } |
This file contains hidden or 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
| console.log("---> Running"); | |
| const curl = require("curl"); | |
| const jsdom = require("jsdom"); | |
| const url = "http://www.imdb.com/list/ls004489992/"; | |
| curl.get(url, null, (err,resp,body)=>{ | |
| if(resp.statusCode == 200){ | |
| parseData(body); | |
| } |
This tutorial describes how to install TLS to a mail server consisting of Postfix and/or Dovecot by using Let's Encrypt certificates with automatic renewing and firewall management.
The system used for this tutorial was:
$ lsb_release -idrc
Distributor ID: Ubuntu
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| import requests | |
| from HTMLParser import HTMLParser | |
| import re | |
| class PageNumParser(HTMLParser): | |
| def handle_data(self, data): | |
| if "sayfanın" in data: | |
| getContent(int(re.search(r'\d+', data).group())) | |
| class wordParser(HTMLParser): |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| ########################################################################################################### | |
| # Bash Script of this Documentation : | |
| # https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/Debian%20Bullseye%20Root%20on%20ZFS.html#debian-bullseye-root-on-zfs | |
| # | |
| # Copyright © 2022 - installer.sh | |
| # Yasin Karabulak | |
| # [email protected] | |
| # https://github.com/unique1984 | |
| # |
OlderNewer