Skip to content

Instantly share code, notes, and snippets.

View mandaputtra's full-sized avatar
🚀
On my way building something ...

Manda Putra mandaputtra

🚀
On my way building something ...
View GitHub Profile
@mandaputtra
mandaputtra / error.txt
Created December 4, 2019 16:49
Error CS:GO
SDL video target is 'x11'
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system DOES NOT support the OpenGL extension GL_APPLE_fence.
This system DOES NOT support the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system supports the OpenGL extension GL_EXT_draw_buffers2.
This system DOES NOT support the OpenGL extension GL_EXT_bindable_uniform.
This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range.
@mandaputtra
mandaputtra / jwt-using-kong.md
Last active August 30, 2021 00:10
JWT Authentication using Kong

Run Kong Using Databases

$ docker run -d --name kong \
    --link kong-database:kong-database \
    -e "KONG_DATABASE=postgres" \
    -e "KONG_PG_HOST=kong-database" \
    -e "KONG_PG_PASSWORD=kong" \
    -e "KONG_CASSANDRA_CONTACT_POINTS=kong-database" \
    -e "KONG_PROXY_ACCESS_LOG=/dev/stdout" \
// print a name
function sayHello(name) {
console.log(`Hallo ${name} (^▽^)`)
}
// check if number are odd or even
function oddOrEven(num) {
if (num % 2 === 0) {
console.log('Genab')
} else {

3rd Lib

  • axios
  • fastify
  • fastify-multipart
@mandaputtra
mandaputtra / index.js
Last active April 4, 2023 13:56
Stream video using node.js
"use strict";
// Require the framework and instantiate it
import fastify from "fastify";
import fs from "node:fs";
import { join } from "node:path";
import { Readable } from "node:stream";
const app = fastify({ logger: true });
async function* streamFile() {
@mandaputtra
mandaputtra / main.dart
Created June 20, 2023 09:14
poetic-aqueduct-9454
void main() {
// Ini adalah form question dan answer yang di isi oleh user
var listanswer = [
{ 'answer': 1, 'question': 1},
{ 'answer': 2, 'question': 2}
];
// ini data yang dikirim ke server
var dataDikirim = {
'ktp': 'ktp-kucing'
@mandaputtra
mandaputtra / README.md
Created July 26, 2023 01:29
Download with Content-Range in AWS S3 Bucket

Need to enable in the S3 Bucket console

"ExposeHeaders": [
  "ETag",
  "Content-Length",
  "Range",
  "Content-Range"
]
@mandaputtra
mandaputtra / config.lua
Last active March 8, 2024 07:59
My lvim configuration
--[[
THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
`lvim` is the global options object
]]
-- vim options
vim.opt.shiftwidth = 2
vim.opt.tabstop = 2
vim.opt.relativenumber = true
-- general