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
package main | |
import ( | |
"database/sql" | |
"database/sql/driver" | |
"fmt" | |
"net" | |
"os" | |
"time" |
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
# Protection from Malicious Domain (ads, malware, hack scripts, fakenews and gambling ) for MacOS. | |
# You may not be doing it but various apps installed on your system doing it internally, so having ad blocker in Browser does not helps. | |
# Execute below command in your terminal once every week. | |
sudo chmod 774 /private/etc/hosts | |
curl https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts > hosts | |
sudo mv hosts /private/etc/hosts |
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
const pg = require('pg-promise')(); | |
const fs = require('fs'); | |
const db = pg({ | |
user: "****", | |
password: "*****", | |
host: "******", | |
port: 5432, | |
database: "*****", | |
ssl: { |
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
// ignore_for_file: prefer_function_declarations_over_variables | |
import 'dart:async'; | |
import 'dart:collection'; | |
import 'dart:convert'; | |
import 'dart:io'; | |
import 'dart:typed_data'; | |
import 'package:basics/basics.dart'; | |
import 'package:quiver/cache.dart'; |
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
sudo sysctl kern.sysv.shmmax=16777216 | |
sudo sysctl kern.sysv.shmmin=1 | |
sudo sysctl kern.sysv.shmmni=128 | |
sudo sysctl kern.sysv.shmseg=32 | |
sudo sysctl kern.sysv.shmall=4096 | |
sudo sysctl kern.ipc.somaxconn=8192 | |
sudo sysctl kern.maxfiles=1048576 | |
sudo sysctl kern.maxfilesperproc=65535 | |
sudo sysctl kern.ipc.maxsockbuf=16777216 | |
sudo sysctl net.inet.tcp.delayed_ack=0 |
OlderNewer