In some situations, you may need to adjust the default buffer sizes of a Golang HTTP server.
Adjusting the default buffer sizes allows you to benefit from higher throughput and improve the performance of your HTTP servers overall.
In some situations, you may need to adjust the default buffer sizes of a Golang HTTP server.
Adjusting the default buffer sizes allows you to benefit from higher throughput and improve the performance of your HTTP servers overall.
This procedure was done on an Ubuntu 24.04 system
Install the dependencies required for the building process:
sudo apt install git build-essential ninja-build python3-venv libglib2.0-0 libglib2.0-dev flex bison libpixman-1-dev libsdl2-dev libsdl2-image-dev mesa-common-dev libglfw3-dev libgles2-mesa-dev libgl-dev libepoxy-dev libpipewire-0.3-dev libspice-protocol-dev libspice-server-dev libvirglrenderer-dev libjson-c-dev libcmocka-dev libusbredirparser-dev libgtk-3-dev libusb-1.0-0-dev
const bodyparser = require("body-parser"); | |
const express = require("express"); | |
var admin = require("firebase-admin"); | |
var serviceAccount = require("./serviceAccountFile.json"); | |
// init | |
admin.initializeApp({ | |
credential: admin.credential.cert(serviceAccount), |
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools"> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
<uses-permission android:name="android.permission.WAKE_LOCK" /> | |
<application |
""" | |
https://github.com/0sir1ss/Carbon | |
""" | |
import ast | |
import re | |
import random | |
import io | |
import tokenize | |
import os | |
import zlib, base64 |
const WebSocket = require('ws'); | |
const wss = new WebSocket.Server({ port: 25595 }); | |
wss.on('connection', function connection(ws, req) { | |
var timer; | |
var firstMessageSent = false; | |
var areYouSureAsked = false; | |
const ip = req.socket.remoteAddress; | |
import phonenumbers | |
import requests | |
import threading | |
import time | |
import string | |
import random | |
import urllib3 | |
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) |
<?php | |
// NOTE: Also follow this answer: https://stackoverflow.com/a/2429162/8524395 | |
set_time_limit(0); | |
$requireds = array("fid", "fname"); | |
foreach($requireds as $required) { | |
if( !isset($_GET[$required]) || empty($_GET[$required]) ) { | |
die("error."); | |
} | |
} | |
$gdrive_api_key = ""; // Not necessary to be API key for the account which uploaded the file. The file just have to be enabled for sharing with anyone. |
function sleep(milliseconds) { | |
var start = new Date().getTime(); | |
while (true) { | |
if ((new Date().getTime() - start) > milliseconds) { | |
break; | |
} | |
} | |
} | |
function deleteMessages() { |
public static void ThreadsafeWriter(String text, String file) throws IOException { | |
/* | |
@author: mariolatiffathy | |
@source: gist.github | |
@description: A thread-safe writer that you can use to write to the same file through multiple threads. | |
@usage: ThreadsafeWriter(String: text, String: file) | |
@example: ThreadsafeWriter("Hello World", "File.txt") | |
@methodType: public, static | |
*/ | |
String nodeValue = text; |