Ubuntu 24.04 LTS, nearest region
2 GB RAM / 1 AMD CPU / 50 GB NVMe
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)
}