Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Typing...

Herpiko Dwi Aguno herpiko

:octocat:
Typing...
View GitHub Profile
@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 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 / vortextab75.md
Last active Jun 9, 2021
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 / 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 / log.txt
Created May 5, 2020
nvidia 1660 ti cudnn cuda tensorflow
View log.txt
```
➜ 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 Apr 27, 2020
converting pdf to png, works on multipage PDF
View convert.bash
#!/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
View the_ninja_path.md

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

@herpiko
herpiko / linux_x380.md
Created Dec 28, 2019 — forked from wassname/linux_x380.md
xubuntu on a Thinkpad Yoga x380
View linux_x380.md

This are a collection of fixes and tweaks I used to get Xubuntu 18.04 LTS working on a lenovo thinkpad X380 yoga laptop.

@herpiko
herpiko / blengon-rapat-tatap-001.md
Last active Jul 26, 2019
Blengon Rapat Tatap 001
View blengon-rapat-tatap-001.md

Requirements

  • Docker
  • Redis
  • gpg pbuilder debootstrap devscripts python-apt reprepro

Install

curl -o- https://raw.githubusercontent.com/BlankOn/irgsh-go/master/utils/scripts/install.sh | bash -s v0.0.21-alpha