Skip to content

Instantly share code, notes, and snippets.

View empeje's full-sized avatar
:octocat:
Focusing

Abdurrachman M empeje

:octocat:
Focusing
View GitHub Profile
@empeje
empeje / Screenhots
Created June 26, 2025 18:56
Screenhots
Screenhots
@empeje
empeje / .gitlab-ci.yml
Created April 3, 2021 10:34
API Docs Using Swagger + Redoc
pages:
image: node:latest
stage: deploy
script:
- npm install -g redoc-cli
# public/index.html is the output
# documentation/openapi.yaml is the input
- redoc-cli bundle -o public/index.html documentation/openapi.yaml
artifacts:
paths:
@empeje
empeje / openapi.yaml
Last active October 17, 2024 23:52
eSIM Go - v2.4 fix
openapi: 3.0.0
info:
title: eSIM-GO API
version: 2.4.0
servers:
- url: https://api.esim-go.com/v2.4
description: eSIMGo API
components:
securitySchemes:
apikeyAuth:
@empeje
empeje / .gitlab-ci.yml
Last active August 8, 2024 09:30
Firebase App Distribution Android - GitLab CI
.android_build:
image: openjdk:8-jdk
stage: build # kind of job
variables:
ANDROID_COMPILE_SDK: "29"
ANDROID_BUILD_TOOLS: "29.0.3"
ANDROID_SDK_TOOLS: "4333796"
FLUTTER_VERSION: "https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_1.22.6-stable.tar.xz"
before_script:
@empeje
empeje / CLOUD.md
Created January 9, 2024 16:54
Cloud type mapping swimcat
Cloud Categories Corresponding Cloud Types Altitude Appearance and Characteristics
Clear Sky Generally denotes an absence of clouds N/A No clouds visible, allowing direct view of the sky.
Patterned Clouds Altocumulus, Stratocumulus
@empeje
empeje / SSLmode.md
Created October 14, 2023 09:45
SSL mode
sslmode Eavesdropping protection MITM protection Statement
disable No No I don't care about security, and I don't want to pay the overhead of encryption.
allow Maybe No I don't care about security, but I will pay the overhead of encryption if the server insists on it.
prefer Maybe No I don't care about encryption, but I wish to pay the overhead of encryption if the server supports it.
require Yes No I want my data to be encrypted, and I accept the overhead. I trust that the network will make sure I always connect to the server I want.
verify-ca Yes Depends on CA policy I want my data encrypted, and I accept the overhead. I want to be sure that I connect to a server that I trust.
verify-full Yes Yes I want my data encrypted, and I accept the overhead. I want to be sure that I connect to a server I trust, and that it's the one I specify.
@empeje
empeje / code.gs
Created August 4, 2023 16:42
App Script
function onEdit(e) {
updateTimestamp(e) // modularize in separate function and add it in the onEdit hook
}
function updateTimestamp(e) {
var ss=SpreadsheetApp.getActiveSpreadsheet();
if(ss.getSheetName() === "Jobs") { // change your sheet name here
ss.setCurrentCell(ss.getRange(`C${ss.getActiveCell().getRow()}`)) // change C to something else if the column is different
var activeCell = ss.getCurrentCell()
var now = new Date()
@empeje
empeje / 0001_initial.py
Last active August 1, 2023 18:49
Override django-rest-passwordreset for CockroachDB
# -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-13 17:53
from __future__ import unicode_literals
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
{
"title": "Asset metadata",
"type": "object",
"properties": {
"image": {
"type": "string",
"description": "https://github.com/empeje.png"
}
}
}