Skip to content

Instantly share code, notes, and snippets.

View ilomon10's full-sized avatar
🐢
keep a beloved undangon - stay tuned!

Imanuel Pundoko ilomon10

🐢
keep a beloved undangon - stay tuned!
  • manjo
  • Manado, Sulawesi Utara, Indonesia
  • X @ilomon10
View GitHub Profile
@ilomon10
ilomon10 / commit-convention.md
Created July 12, 2024 08:13
commit message standard atau pesan commit yang standar untuk memudahkan dalam pengembangan
@ilomon10
ilomon10 / wildcard-ssl-certificate.md
Created January 7, 2023 16:04 — forked from talyguryn/wildcard-ssl-certificate.md
How to get a wildcard ssl certificate and set up Nginx.

How to get and install a wildcard SSL certificate

In this guide you can find how to resolve the following issues.

Feel free to ask any questions in the comments section below.

@ilomon10
ilomon10 / colab.sh
Last active July 21, 2022 00:35
Fix tensorflow DNN Libarary not found when use google colab with GPU runtime
# https://stackoverflow.com/questions/71000120/colab-0-unimplemented-dnn-library-is-not-found
# [Solved] Colab: (0) UNIMPLEMENTED: DNN library is not found
# Answer: https://stackoverflow.com/a/72610419
# Check libcudnn8 version
!apt-cache policy libcudnn8
# Install latest version
!apt install --allow-change-held-packages libcudnn8=8.4.1.50-1+cuda11.6
@ilomon10
ilomon10 / bahasa-indonesia.dic
Created August 31, 2021 17:24
Indonesian Wordlist / Dictionary useful for word office check word spelling
ABRI
Aceh
Achenese
AD
Afganistan
Africa Selatan
Afrika
Agustus
Akpol
Akuarius
@ilomon10
ilomon10 / lookup.cpp
Last active May 12, 2021 07:24
Algorithms for reading and interpolating measurements from specified table lookups.
// Ref: https://forum.arduino.cc/t/how-to-create-lookup-table/116161/19
// Title: How to create lookup table
int[] tableLookup = {
140, 300,
151, 280,
162, 260,
184, 240,
211, 220,
250, 200,

kambing ui

Debian sid

deb http://kambing.ui.ac.id/debian/ sid main contrib non-free

Debian testing

deb http://kambing.ui.ac.id/debian/ testing main contrib non-free
deb http://kambing.ui.ac.id/debian/ testing-updates main contrib non-free
deb http://kambing.ui.ac.id/debian-security/ testing/updates main main contrib non-free
@ilomon10
ilomon10 / query.sql
Last active April 10, 2021 09:39
Kill postgresql session/connection
-- Ref: https://stackoverflow.com/a/5109190/8271526
SELECT
pg_terminate_backend(procpid)
FROM
pg_stat_activity
WHERE
-- don't kill my own connection!
procpid <> pg_backend_pid()
-- don't kill the connections to other databases
@ilomon10
ilomon10 / dateRounding.js
Created March 2, 2021 13:04
Round moment.js object time to nearest interval
// Ref: https://stackoverflow.com/a/25323966/8271526
function dateRounding(interval, unit, date) {
const start = moment(date);
const remainder = interval - (start.get(unit) % interval);
const dateTime = moment(start).add(remainder, unit).format("DD.MM.YYYY, h:mm:ss a");
return dateTime;
}
@ilomon10
ilomon10 / figure.PNG
Last active February 22, 2021 12:54
Finds the volume of the truncated cone
figure.PNG
@ilomon10
ilomon10 / AspectRatio.js
Created January 17, 2021 03:16
Aspect ratio react component
import React from 'react';
const AspectRatio = ({ children, className = "", ratio, style = {} }) => {
const r = ratio.split(":");
const val = 100 / parseFloat(r[0]) * parseFloat(r[1]);
return (
<div className={className} style={{ position: 'relative', width: "100%", paddingTop: `${val}%`, ...style }}>
<div style={{ position: 'absolute', top: 0, left: 0, height: "100%", width: "100%" }}>{children}</div>
</div>
)