To push container images to ghcr, you need peronal access token (PAT) - see how to create PAT
- Get PAT (personal access token)
Personal Settings > Developer settings > Personal access tokens
To push container images to ghcr, you need peronal access token (PAT) - see how to create PAT
Personal Settings > Developer settings > Personal access tokens
import boto3 | |
import json | |
import os | |
SOURCE_PROFILE = 'source-account' | |
DEST_PROFILE = 'dest-account' | |
REGION = 'us-east-1' | |
EXPORT_DIR = 'sqs_export' | |
os.makedirs(EXPORT_DIR, exist_ok=True) |
grep '\[10/Jun/2025:01:' access.log.1 | grep -v 'POST /email/send' | |
grep '\[10/Jun/2025:03:' /var/log/nginx/access.log.1 | grep -v 'POST /email/send' | grep -v 'https://app.orderonline.id' > logs-09.txt |
var killLongRunningOps = function (table = 'submission', maxSecsRunning = 5000, kill = false) { | |
var ns = 'orderonline_db.' + table; | |
if (table === '*') { | |
ns = /^orderonline_db\./; | |
} | |
var currOp = db.currentOp({"active" : true,"secs_running" : { "$gt" : maxSecsRunning },"ns" : ns}); | |
var operations = currOp.inprog; | |
for (var i = 0; i < operations.length; i++) { | |
var operation = operations[i]; | |
print(i + ". Operation: " + operation.opid); |
#!/bin/bash | |
clear | |
fileList=$(git diff --diff-filter=d --cached --name-only | grep -E '\.(js|vue)$') | |
if [ ${#fileList} -lt 1 ]; then | |
echo -e "You have no staged .js or .vue files to test\n" | |
exit | |
fi | |
npx eslint ${fileList[*]} "$@" | |
if [ $? -ne 0 ]; then | |
echo -e "\nPlease fix the above linting issues before committing.\n" |
<?php | |
use Shuchkin\SimpleXLSX; | |
... | |
$file = $request->file('file'); | |
$file_path = $file->getRealPath(); | |
if ( $xlsx = SimpleXLSX::parse($file_path) ) { | |
$rows = $xlsx->rows(); |
// Degrees to Radians | |
export const degsToRads = deg => (deg * Math.PI) / 180.0; | |
// Radians to Degrees | |
export const radsToDegs = rad => rad * 180 / Math.PI; | |
// Round like PHP Function | |
export const round = (num, dec) => { | |
var num_sign = num >= 0 ? 1 : -1; | |
return parseFloat((Math.round((num * Math.pow(10, dec)) + (num_sign * 0.0001)) / Math.pow(10, dec)).toFixed(dec)); |
#Users
{
id: integer
username: string
email: string
created_at: datetime(iso 8601)
updated_at: datetime(iso 8601)
}
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon
with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.