Skip to content

Instantly share code, notes, and snippets.

@ngdnghia28
ngdnghia28 / ab_portrange_on_mac.md
Created February 8, 2023 06:43 — forked from ryenus/ab_portrange_on_mac.md
Increase ephemeral port range on macOS

The default ephemeral port range on macOS/OSX is 49152-65535, which is only 16,383 ports:

$ sysctl -a | grep portrange
net.inet.ip.portrange.lowfirst: 1023
net.inet.ip.portrange.lowlast: 600
net.inet.ip.portrange.first: 49152
net.inet.ip.portrange.last: 65535
net.inet.ip.portrange.hifirst: 49152
net.inet.ip.portrange.hilast: 65535
@ngdnghia28
ngdnghia28 / turnutils_uclient.md
Created December 15, 2022 02:31 — forked from cameronelliott/turnutils_uclient.md
Tutorial for turnutils_uclient and Coturn server

Tutorial for turnutils_uclient and Coturn server

@ngdnghia28
ngdnghia28 / http-benchmark.md
Created November 15, 2022 03:41 — forked from denji/http-benchmark.md
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)
@ngdnghia28
ngdnghia28 / config.js
Created April 25, 2021 15:11 — forked from codediodeio/config.js
Snippets from the Firestore Data Modeling Course
import * as firebase from 'firebase/app';
import 'firebase/firestore';
var firebaseConfig = {
// your firebase credentials
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
@ngdnghia28
ngdnghia28 / importing.module.ts
Created October 31, 2020 06:26 — forked from evolkmann/importing.module.ts
Create Nest.js modules with custom config
import { Module } from '@nestjs/common';
import { MyLibModule } from './my-lib.module';
@Module({
imports: [
MyLibModule.register({ name: 'Enzo' }),
]
})
export class ImportingModule {}
var assert = require('assert')
var mongoose = require('./../mongoose');
console.error(
'\n==========='
, ' mongoose version: '
, mongoose.version
, '========\n\n'
);
var Schema = mongoose.Schema;