Skip to content

Instantly share code, notes, and snippets.

View ibndias's full-sized avatar
⚔️

Derry Pratama ibndias

⚔️
View GitHub Profile
@ibndias
ibndias / build-gnutls.md
Last active April 26, 2021 08:18
Solve build gnutls when error with Nettle

Follow GNUTLS README

Nettle (from source)

wget https://ftp.gnu.org/gnu/nettle/nettle-3.5.tar.gz
tar xvfz nettle-3.5.tar.gz
cd nettle-3.5
./configure
make
sudo make install
@ibndias
ibndias / log-executed-ins-riscv.gdb
Created April 14, 2021 08:06
GDB Script for log executed asm instruction (RISCV)
set confirm off
tbreak start_trigger
r
set logging overwrite on
set logging on
set height 0
set style enabled off
while (1)
x/i $pc
stepi

Keybase proof

I hereby claim:

  • I am ibndias on github.
  • I am derrypratama (https://keybase.io/derrypratama) on keybase.
  • I have a public key whose fingerprint is 7937 2358 6B67 DB5B 2803 55B1 AF97 CB9B 903B C0DF

To claim this, I am signing this object:

@ibndias
ibndias / build-gcc.sh
Created April 2, 2021 10:03
[RISCV] Reserve Register on C library in GCC
mkdir install
mkdir build
cd build
../configure --with-target-cflags="-ffixed-x31" --with-target-cxxflags="-ffixed-x31" --prefix="/home/derry/Documents/Project/riscv-gnu-toolchain/install" #--with-arch=rv64g --enable-multilib
set -e
time make newlib -j16
@ibndias
ibndias / tshark-filter.sh
Last active December 27, 2022 01:12
Tshark filter port only
sudo tshark -i lo -f "tcp port 4433"
sudo tshark -i eth0 -f "host 192.168.0.10"
https://wiki.wireshark.org/CaptureFilters
@ibndias
ibndias / FTDI_SPI.xml
Created February 16, 2021 04:52
Working SPI FTDI Configuration File for FT Prog
<?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 / gitignore-fix.sh
Created February 5, 2021 00:45
fix gitignore being ignored
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
/* main.c - the complete listing */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <libgen.h>
#include <errno.h>
#include <string.h>
#include <getopt.h>
@ibndias
ibndias / ciphersuite-std-code.c
Created January 12, 2021 05:54
Ciphersuite Standard Code
const string STD_SUITES =
/*
+------------- cipher suite identifier (hex)
| +---------- encryption strength (0=none, 1=weak, 2=medium, 3=strong)
| | +-------- encryption flags (c=block cipher in CBC mode, r=RC4)
| | | +------ key exchange flags (d=DHE, e=ECDHE, s=SRP, x=RSA/export)
| | | | +---- server key type (r=RSA, d=DSA, h=DH, e=EC, p=PSK,
| | | | | q=RSA+PSK, n=none)
| | | | | +-- suite name
| | | | | |
@ibndias
ibndias / git-pristine.sh
Created December 24, 2020 05:07
Git Pristine
git config --global alias.pristine '!git reset --hard && git clean -dffx'