Skip to content

Instantly share code, notes, and snippets.

View herpiko's full-sized avatar
:octocat:
Typing...

Herpiko Dwi Aguno herpiko

:octocat:
Typing...
View GitHub Profile
@herpiko
herpiko / lb.md
Last active November 7, 2023 18:19
BlankOn live-build reboot 2023

Install live-build

sudo apt install debootstrap make git apt-utils
git clone https://salsa.debian.org/live-team/live-build.git debian-live-build
cd debian-live-build
sudo make install
sudo lb --version
@herpiko
herpiko / Token.sol
Created December 9, 2021 08:32 — forked from alfaben12/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 December 11, 2020 10:55
video building gnome native app

Introduction

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

Building

  • Gnome builder
@herpiko
herpiko / pki-draft-for-masceng.md
Last active September 26, 2020 10:05
pki-masceng

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 / vortextab75.md
Last active January 10, 2024 13:14
Vortex Tab 75 Programming

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 / pki.md
Last active September 22, 2020 16:27
pki-draft-for-masceng

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 / log.txt
Created May 5, 2020 08:02
nvidia 1660 ti cudnn cuda tensorflow
```
➜ imagerec git:(updated-deps) ✗ nvidia-smi
Tue May 5 15:00:40 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.33.01 Driver Version: 440.33.01 CUDA Version: 10.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 166... On | 00000000:01:00.0 On | N/A |
@herpiko
herpiko / convert.bash
Created April 27, 2020 21:33
converting pdf to png, works on multipage PDF
#!/bin/bash
for file in *; do
if [ ${file: -4} == ".pdf" ]
then
echo "Converting $file using ghost script..."
# Handle multi pages
gs -sstdout=%stderr -dPDFSTOPONERROR -dNOPAUSE -sDEVICE=pngalpha -o $file-%03d.png -r600 $file
if [ "$?" != "0" ]
then
@herpiko
herpiko / the_ninja_path.md
Last active February 28, 2020 06:21
The Ninja Path

The Ninja Path

Description

Given the specific parameters (size, wall, start and target), you should build a virtual block map. If the size is 10, then it will be a 10x10 blocks map. Each block is numbered sequentially from left to right, then top to bottom. The initial value for this sequence is 1.

If the size value is 6, then the map will be like this,

Screen Shot 2020-01-30 at 22 59 54