Skip to content

Instantly share code, notes, and snippets.

View ahmadrosid's full-sized avatar
🚀
On

ahmadrosid ahmadrosid

🚀
On
View GitHub Profile
<?php
function colorized($var)
{
return "\e[0;30;42m$var\e[0m";
}
$firstRowIndex = 3;
$secondRowIndex = 2;
import { Injectable } from '@nestjs/common';
import { REDIS_HOST, REDIS_PORT } from '../../config';
import Redis from 'ioredis';
import { get } from 'lodash';
import { Logger } from '../logger/logger';
import * as Sentry from '@sentry/node';
@Injectable()
export class RedisService {
private client: Redis.Redis;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JS + CSS Clock</title>
</head>
<body>
<div class="clock">
# ConvertTo-Jpeg - Converts RAW (and other) image files to the widely-supported JPEG format
# https://github.com/DavidAnson/ConvertTo-Jpeg
Param (
[Parameter(
Mandatory = $true,
Position = 1,
ValueFromPipeline = $true,
ValueFromPipelineByPropertyName = $true,
ValueFromRemainingArguments = $true,
@ahmadrosid
ahmadrosid / example-json-schema.json
Created May 3, 2021 13:50
Example listing json schema
{
"version": "2.0.0",
"deprecatedDate": "Not defined",
"schemaDefinition": {
"type": "object",
"keys": {
"list_type": {
"type": "string",
"flags": {
"empty": {
@ahmadrosid
ahmadrosid / lampung-imsakiyah.csv
Created April 14, 2021 12:17
Jadwal Imsakiyah Lampung
Ramadhan Hari Tanggal Imsak Subuh Terbit Duha Zuhur Asar Magrib Isya
1 Selasa 13-04 04:34 04:44 05:56 06:24 12:03 15:20 18:02 19:12
2 Rabu 14-04 04:34 04:44 05:56 06:24 12:03 15:20 18:02 19:11
3 Kamis 15-04 04:34 04:44 05:56 06:24 12:03 15:20 18:02 19:11
4 Jum'at 16-04 04:34 04:44 05:56 06:24 12:02 15:20 18:01 19:11
5 Sabtu 17-04 04:34 04:44 05:56 06:24 12:02 15:20 18:01 19:10
6 Ahad 18-04 04:33 04:43 05:56 06:23 12:02 15:20 18:01 19:10
7 Senin 19-04 04:33 04:43 05:56 06:23 12:02 15:20 18:00 19:10
8 Selasa 20-04 04:33 04:43 05:56 06:23 12:01 15:20 18:00 19:10
9 Rabu 21-04 04:33 04:43 05:56 06:23 12:01 15:20 18:00 19:09
// App\Providers\AppServiceProvider
public function boot()
{
config(['app.locale' => 'id']);
Carbon::setLocale('id');
date_default_timezone_set('Asia/Jakarta');
}

Load testing with 1k agent data - QA

a2s2-active-agent - load test with 1000 agent data

  • Start time 2020-08-05T16:00:52.743Z
  • End time 2020-08-05T16:01:12.280Z
  • Total time 0m 19s

a2s2-agent-email - load test with 1000 agent data

Load testing with 1k agent data - DEV

a2s2-active-agent - load test with 1000 agent data

  • Start time 2020-08-05T09:26:22.612Z
  • End time 2020-08-05T09:26:32.356Z
  • Total time 0m 9s

a2s2-agent-email - load test with 1000 agent data

#!/bin/sh
apt update
apt install linux-image-extra-virtual -y
echo "snd-aloop">>/etc/modules
modprobe snd-aloop
## Chrome
curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list
apt-get -y update