Skip to content

Instantly share code, notes, and snippets.

View misterabdul's full-sized avatar
😐
OwO

Abdul Rahmad Pasaribu misterabdul

😐
OwO
View GitHub Profile
@misterabdul
misterabdul / generate_local_ca_and_signed_ssl.md
Last active March 25, 2022 03:02
Generate Local CA & Localhost's Domain Signed Certificate.

Generate Local Certificate Authority & Localhost's Domain Signed Certificate

For local development purposes. Reference: stackoverflow.

Example Usage

sudo ./generate_local_cert.sh mydomain.local
@misterabdul
misterabdul / useful-console-commands.md
Last active April 8, 2022 04:43
Useful Console Commands

List of useful console commands

cerbot

Generate SSL certificate using certbot

sudo certbot certonly --webroot -w <web_root_path> -d <domain>
@misterabdul
misterabdul / glxinfo.txt
Created June 19, 2021 03:18
glxinfo result
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_context_flush_control, GLX_ARB_create_context,
GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
@misterabdul
misterabdul / glewinfo.txt
Created June 18, 2021 11:51
glewinfo result
---------------------------
GLEW Extension Info
---------------------------
GLEW version 2.1.0
Reporting capabilities of display , visual 0x24b
Running on a Mesa Intel(R) HD Graphics 620 (KBL GT2) from Intel
OpenGL version 4.6 (Core Profile) Mesa 21.1.2 is supported
GL_VERSION_1_1: OK
@misterabdul
misterabdul / main.c
Created June 18, 2021 03:55
Simple OpenGL program to open window.
#include <stdio.h>
#include <stdlib.h>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
int
main()
{
// Initialise GLFW
@misterabdul
misterabdul / hello.c
Created October 27, 2020 20:29
My first gist.
#include<stdio.h>
int main(void) {
printf("Halo dunia.");
return 0;
}