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
Dicomot dari : https://pastebin.com/Y2T9bC4X
Setelah pemasangan, dialihkan ke grub-rescue,
Lakukan hal berikut utk masuk ke lingkungan blankon:
1. ketik ls
2. akan muncul partisi hardisk
(hd(0,1) atau hd(0,gpt1))
# Manually secure port 6379
sudo iptables -A INPUT -p tcp --dport 6379 -s xxx.xxx.xxx.xxx -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 6379 -j DROP
sudo iptables -L
# Save current firewall config
sudo iptables-save > /etc/iptables.conf
# Load iptables.conf on startup
sudo nano /etc/rc.local
@herpiko
herpiko / openssl.cnf
Last active May 8, 2020 12:35
Intermediate configuration
# 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 12:34
Root CA configuration
# 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
@herpiko
herpiko / klas-pki-playground.md
Last active January 2, 2020 16:18
💻 🔨 :neckbeard: PKI

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 / sawtooth.md
Last active April 23, 2018 18:54
Hyperledger Sawtooth

Genesis

$ sawtooth keygen
$ sawset genesis
$ sudo -u sawtooth sawadm genesis config-genesis.batch

Things that need to be run beside the validator

@herpiko
herpiko / A Short History of Tractors in Ukrainian.md
Last active April 4, 2018 11:07
A Short History of Tractors in Ukrainian

A Short History of Tractors in Ukrainian

Buku ini adalah sebuah novel debut fiksi yang menyabet nominasi Orange Prize, dikarang oleh penulis imigran Ukrania yang besar di Britania. Meskipun dari sampulnya sepintas terlihat ramah dan datar, ini bukanlah buku yang cocok dibaca oleh remaja maupun anak-anak. Saya menyarankan batas umur 18 tahun ke atas. Tentu saja ini bukan buku porno atau sepenuhnya vulgar. Hanya sebagian kecil dari buku ini yang menyinggung hal vulgar, meskipun demikian bagian kecil tersebut berperan erat dalam melekatkan rangkaian cerita di buku ini. Buku ini ditulis dalam sudut pandang pertama, dari seorang tokoh yang bernama Nadezhda.

Sinopsis

Kisah yang gambarkan di buku ini adalah tentang sebuah keluarga imigran kecil dari Ukraina yang tinggal di Inggris namun sudah terpencar-pencar dan tinggal terpisah; Nikolai (sang Ayah, berusia 74 tahun, seorang mekanik mesin, penulis dan penyair), Vera (putri pertama), dan Nadezhda (putri kedua). Nikolai telah ditinggal mati oleh istrinya, sedangka

go build && ./go-wrk -c 1 -n 1 -cert license/liccert.pem -key license/lickey.pem -CA license/TNISiberLabRootCA-chain.pem -m POST -b machineId=x https://x

@herpiko
herpiko / suicide.md
Last active May 24, 2018 12:30
How to commit an (temporarily) internet suicide
  • Generate a random password using any available random password generator on the internet (ex : https://passwordsgenerator.net/ )
  • Change your current password with these generated password AND DON'T LET YOUR BROWSER REMEMBER THE NEW PASSWORD.
  • Deactivate the account.
  • Uninstall the related app on smartphone (if any).
  • Repeat.
  • Whenever you want to come back, just restore the account through your linked email account.