Skip to content

Instantly share code, notes, and snippets.

Avatar
⚔️

Derry Pratama ibndias

⚔️
View GitHub Profile
@ibndias
ibndias / smartfactory-explanation.md
Last active January 4, 2023 15:05
Smartfactory Explanation compilation
View smartfactory-explanation.md

HTTPS, FTPS, and Benchmark Explanation

HTTPS Handshake Log Explanation

We demonstrate the HTTPS connection between two Raspberry Pi. The HTTPS client is using our cryptochip that will do the handshake and connect to the ordinary HTTPS server. This shows that our cryptochip works flawlessly and compatible with other widely used crypto library.

image image

Server started, CA certificate, server certificate and key loaded.

View tcpdump-enable-nonroot.md

TCPDUMP Enabel non root for wireshark

sudo groupadd pcap && sudo usermod -a -G pcap $USER && sudo chgrp pcap /usr/bin/tcpdump && sudo chmod 750 /usr/bin/tcpdump && sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/tcpdump

sudo groupadd pcap; sudo usermod -a -G pcap $USER; sudo chgrp pcap /usr/bin/tcpdump; sudo chmod 750 /usr/bin/tcpdump; sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/tcpdump
@ibndias
ibndias / linux-remove-ip-address.md
Last active December 28, 2022 00:18
How to remove IP address in Linux
View linux-remove-ip-address.md

Linux Remove IP

Removing IP shown in ip a command

sudo ip addr del <ip-address>/24 dev <interface>

example: sudo ip addr del 192.168.56.110/24 dev eth0

Remove all IP shown in ifconfig command

@ibndias
ibndias / CCTVOPENVPN.md
Last active December 23, 2022 02:09
OpenVPN CCTV Raspberry
View CCTVOPENVPN.md

STEPS FOR RUNNING OPENVPN PROJECT

[DEVICES AND APPLICATIONS NEEDED ]

  1. VIEWER = PC/Laptop, RJ45 cable, OMX Player (1 set)
  2. CCTV (for each) = CCTV device, Power Cable, RJ-45 (3 sets)
  3. Wifi Router+ Power (1 pcs)
  4. RPI (4 pcs)
  5. CMOD A7 35T (4 pcs)
  6. Jumper Cable

[OS]

-Hostname: vpn_gateway[n] n=1/2/3

@ibndias
ibndias / strongswan-roadwarrior-ipsec-vpn-guide.md
Last active June 3, 2022 09:47
strongswan-roadwarrior-ipsec-vpn-guide
View strongswan-roadwarrior-ipsec-vpn-guide.md

Strongswan Roadwarrior IPSec VPN Guide

Creates an easy Roadwarrior IPSec VPN by using StrongSwan on Ubuntu 22.04 with x509 authentication.

10.1.0.0/16 -- | 192.168.0.1 | === | x.x.x.x | -- 10.30.0.1
  moon-net          moon              carol       virtual IP
                  (Gateway)        (Roadwarrior)
View video_preview.html
<!--
Tutorial code for: http://www.binpress.com/tutorial/generating-nice-movie-previews-with-ffmpeg/138
-->
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
</head>
<body>
<a href="https://www.youtube.com/watch?v=v1uyQZNg2vE" target="_blank" class="video-preview" data-frames="100" data-source="http://i.imgur.com/BX0pV4J.jpg"></a>
View ftdi-spi.xml
<?xml version="1.0" encoding="utf-16"?>
<FT_EEPROM>
<Chip_Details>
<Type>FT232H</Type>
</Chip_Details>
<USB_Device_Descriptor>
<VID_PID>0</VID_PID>
<idVendor>0403</idVendor>
<idProduct>6014</idProduct>
<bcdUSB>USB 2.0</bcdUSB>
@ibndias
ibndias / RiscV-Linux-on-Arty-A7-100T.md
Last active February 7, 2022 09:57
Quickstart Running Linux on Arty A7-100T FPGA
View RiscV-Linux-on-Arty-A7-100T.md

A quickstart guide to run Linux on Arty A7 100T FPGA

Because everyone keeps posting about Arty A7 35T while I only have the 100T. This is basically just a guide for linux on litex [https://github.com/litex-hub/linux-on-litex-vexriscv].

Requirements

  • Arty A7 100T FPGA
  • Micro USB Cable
  • and a PC

Prerequisites

@ibndias
ibndias / install_openssl_aarch64.sh
Created January 5, 2022 08:16 — forked from Matheus-Garbelini/install_openssl_aarch64.sh
Compile and install OpenSSL 1.1.1 for arm64 aarch64 android
View install_openssl_aarch64.sh
wget https://www.openssl.org/source/openssl-1.1.1.tar.gz
tar -xvzf openssl-1.1.1.tar.gz
cd openssl-1.1.1/
./Configure linux-aarch64 --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib
make -j$(($(nproc)+1))
sudo make install
sudo echo 'LD_LIBRARY_PATH=/usr/local/ssl/lib:${LD_LIBRARY_PATH}' >> /etc/environment
rm openssl-1.1.1.tar.gz
sudo rm openssl-1.1.1 -r
@ibndias
ibndias / keychronfn.sh
Created October 14, 2021 00:38
Keychron Function Key Ubuntu, use F1-F12 first, press FN to use multimedia
View keychronfn.sh
echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf
sudo update-initramfs -u -k all
sudo reboot # optional