Skip to content

Instantly share code, notes, and snippets.

View ahmadarif's full-sized avatar
🎯
Focusing

Ahmad Arif ahmadarif

🎯
Focusing
View GitHub Profile
#EXTM3U
#EXTINF:-1,INEWS+ https://live.rctiplus.id/rctiplus/inews_720p.m3u8
https://live.rctiplus.id/rctiplus/inews_720p.m3u8
#EXTINF:-1,GLOBAL TV+ https://live.rctiplus.id/rctiplus/gtv_720p.m3u8
https://live.rctiplus.id/rctiplus/gtv_720p.m3u8
#EXTINF:-1,SCTV HD http://id1.indostreamingtv.com/live/sctv/index.m3u8
http://id1.indostreamingtv.com/live/sctv/index.m3u8
#EXTINF:-1,METRO TV HD http://edge.metrotvnews.com:1935/live-edge/smil:metro.smil/chunklist_w2006790992_b1492000_sleng.m3u8
http://edge.metrotvnews.com:1935/live-edge/smil:metro.smil/chunklist_w2006790992_b1492000_sleng.m3u8
#EXTINF:-1,NET TV http://45.126.83.51/qwr9ew/s/s08/01.m3u8
#EXTM3U
#EXTINF:-1 tvg-id="ADiTV.id" tvg-logo="https://i.imgur.com/b4IDBG7.png" group-title="Undefined",ADiTV (720p) [Not 24/7]
https://v2.siar.us/aditv/livestream/chunks.m3u8
#EXTINF:-1 tvg-id="AhsanTV.id" tvg-logo="https://i.imgur.com/dZdUbYd.png" group-title="Religious" user-agent="Mozilla/5.0 (X11; Linux x86_64)",Ahsan TV (360p) [Geo-blocked]
#EXTVLCOPT:http-user-agent=Mozilla/5.0 (X11; Linux x86_64)
https://h1.intechmedia.net/intech/ch4.m3u8
#EXTINF:-1 tvg-id="Ainos.id" tvg-logo="https://i.imgur.com/C62qtRz.png" group-title="Undefined",Ainos (576i)
https://alfa.kugo.id/playout/ainos.stream/chunklist.m3u8
#EXTINF:-1 tvg-id="AlBinaaTV.id" tvg-logo="https://i.imgur.com/MTR4GuF.png" group-title="Undefined",Al Binaa TV (720p)
https://master.antosatriani.workers.dev/channel/UCdq-DJ5MS7qjd1aXPFg71Yg.m3u8
$ docker-compose up --build
Creating network "frn_default" with the default driver
Building face_recognition
Sending build context to Docker daemon 122.1MB
Step 1/14 : FROM nvidia/cuda:10.0-cudnn7-devel
10.0-cudnn7-devel: Pulling from nvidia/cuda
25fa05cd42bd: Already exists
2d6e353a95ec: Pull complete
df0051b6f25d: Pull complete
ad1e3e71b0c0: Pull complete
@ahmadarif
ahmadarif / apm.middleware.ts
Last active June 1, 2021 15:56
Plumier + APM
import { ActionResult, CustomMiddleware, HttpStatusError, Invocation } from "@plumier/core";
import APM from 'elastic-apm-node';
export class APMMiddleware implements CustomMiddleware {
async execute(next: Readonly<Invocation>): Promise<ActionResult> {
if (next.ctx?.route?.url) {
APM.setTransactionName(next.ctx.route.url);
} else {
APM.setTransactionName(next.ctx.url);
}
@ahmadarif
ahmadarif / .gitlab-ci.yml
Created October 31, 2020 02:24
Gitlab CI/CD for Rancher
stages:
- build
- deploy
Build:
stage: build
image: docker:19.03.12
services:
- docker:19.03.12-dind
tags:
@ahmadarif
ahmadarif / .gitlab-ci.yml
Created October 22, 2020 05:50
Simple Gitlab Pipeline (Docker Builder)
stages:
- build
build:
stage: build
image: docker:19.03.12
services:
- docker:19.03.12-dind
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
@ahmadarif
ahmadarif / config.module.ts
Created October 17, 2019 10:16
Config Module
import { Module } from '@nestjs/common';
import { ConfigService } from './config.service';
@Module({
providers: [
{
provide: ConfigService,
useValue: new ConfigService('.env'),
},
],
@ahmadarif
ahmadarif / validation.pipe.ts
Created October 17, 2019 10:10
Form Validation
import { ArgumentMetadata, HttpException, Injectable, PipeTransform } from '@nestjs/common';
import { plainToClass } from 'class-transformer';
import { validate, ValidationError } from 'class-validator';
@Injectable()
export class ValidationPipe implements PipeTransform<any> {
async transform(value: any, { metatype }: ArgumentMetadata) {
if (!metatype || !this.toValidate(metatype)) {
return value;
}
@ahmadarif
ahmadarif / transform.interceptor.ts
Last active September 10, 2019 16:09
Nest - TransformInterceptor, working with Exclude decorator
import { ExecutionContext, Injectable, NestInterceptor, CallHandler } from '@nestjs/common';
import { classToPlain } from 'class-transformer';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
@Injectable()
export class TransformInterceptor implements NestInterceptor {
intercept(context: ExecutionContext, next: CallHandler): Observable<any> {
return next.handle().pipe(map(data => classToPlain(data)));
}
@ahmadarif
ahmadarif / undefined.interceptor.ts
Created September 10, 2019 14:52
Nest - UndefinedInterceptor
import { CallHandler, ExecutionContext, Injectable, NestInterceptor } from '@nestjs/common';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
@Injectable()
export class UndefinedInterceptor implements NestInterceptor {
intercept(context: ExecutionContext, next: CallHandler): Observable<any> {
return next
.handle()
.pipe(map(value => this.traverse(value)));