Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Typing...

Herpiko Dwi Aguno herpiko

:octocat:
Typing...
View GitHub Profile
@herpiko
herpiko / vortextab75.md
Last active Oct 6, 2022
Vortex Tab 75 Programming
View vortextab75.md

Programming

  • Plug in the cable, you need the LED to guide you
  • Pn + Left Ctrl to enter programming mode
  • Press the key that want to be programmed
  • Press the target key
  • Pn to apply
  • Pn + Left Ctrl to exit

It's possible to lose a key. Sometimes you need to backup it first.

@herpiko
herpiko / kubedingdong.md
Last active Jul 6, 2022
Kubernetes notes for CKA exam preparation 💪
View kubedingdong.md

This notes applied to Kubernetes version 1.9.1-00 on Ubuntu Xenial.

Basic concept

TO BE WRITTEN

Installation and starting up 🏁

Installation

  • Swap should be disabled (see /etc/fstab)
View Token.sol
pragma solidity ^0.8.2;
contract Token {
mapping(address => uint) public balances;
mapping(address => mapping(address => uint)) public allowance;
uint public totalSupply = 1000000 * 10 ** 18;
string public name = "INDOG"; // name your token
string public symbol = "INDG"; // code your token
uint public decimals = 18;
@herpiko
herpiko / building-gnome-native-app.md
Created Dec 11, 2020
video building gnome native app
View building-gnome-native-app.md

Introduction

  • Proses belajar
  • Sumbernya dari gnome asia
  • Gnome/gtk app
    • Kelebihan
    • Kekurangan
  • Yang mau dibikin
    • Figmanya seperti apa

Building

  • Gnome builder
View gist:14a647b91e7ef60a3e0f4bd5b9d891bb
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBF+n8+QBEACy5Ji5LTM3m8QsY35IzOXjAevQq09SfGO8OADsXS/qtP74wGMp
y69abidi2R0SlXfD3vSSLjQUcp3C+WXW4QbGGBojvxZ7HDB3sU8LoPy03h46rLvs
1cgc+6yy3J7qS+QnHlblG+O9jgD0Gj5ncj5FL0vkDYt1iezlhxmgGBn4bqtrK8II
NLKHBbcwwwpndaMbo4470fwJBamt7hfdCBgrkVC++NZ8c4q4PX4A1q+iRilUQTgl
dNQjDbkvkrvz7JM2BchgFxq6KBb4ITEVNqtYcDQtorJBja5AfYvZi9U8fDo5TZzu
kD/GPyX5fzf4LnIG3t60dzPyi3o+Ihsq2bw91KPF6R2eHoucCG5vLg2wu/nQ9Iyd
ffJ0P35nLmt0S6FJGWM0xaFaCC0u2NKv5e8vCbwL055En/Te1A1WOYNrQ1ysRtqc
ef0xc+sT5I14FmgVBPMWQ0J3AOgKIi9wwYkHFtmeEs3zTt44fcZhcNB98bK/8Po6
View pki-draft-for-masceng.md

Membuat sertifikat self-signed

openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out cert.pem

Melihat isi sertifikat

openssl x509 -in cert.pem -text

PEM dan DER

@herpiko
herpiko / pki.md
Last active Sep 22, 2020
pki-draft-for-masceng
View pki.md

Membuat sertifikat self-signed

openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out cert.pem

Melihat isi sertifikat

openssl x509 -in cert.pem -text

PEM dan DER

@herpiko
herpiko / openssl.cnf
Last active May 8, 2020
Intermediate configuration
View openssl.cnf
# OpenSSL intermediate CA configuration file.
# Copy to `/tmp/ca/intermediate/openssl.cnf`.
[ ca ]
# `man ca`
default_ca = CA_default
[ CA_default ]
# Directory and file locations.
dir = /tmp/ca/intermediate
@herpiko
herpiko / openssl.cnf
Last active May 8, 2020
Root CA configuration
View openssl.cnf
# OpenSSL root CA configuration file.
# Copy to `/tmp/ca/openssl.cnf`.
[ ca ]
# `man ca`
default_ca = CA_default
[ CA_default ]
# Directory and file locations.
dir = /tmp/ca