Skip to content

Instantly share code, notes, and snippets.

View raminfp's full-sized avatar
✔️
Verified

Ramin Farajpour Cami raminfp

✔️
Verified
View GitHub Profile
@raminfp
raminfp / Buildroot.md
Created November 19, 2018 17:27
How to build your kernel "vmlinuz-<version>-generic" without compile kernel source with BUILDROOT/QEMU?

Let's Start (Weekend Notes) ...

Buildroot (BR) (https://buildroot.org/):

$ git clone git://git.buildroot.net/buildroot
$ cd buildroot

Buildroot uses the same interface as the kernel for configuration (ncurses based, make sure you have ncurses-devel sudo apt-get install libncurses-dev and bison sudo apt-get install bison installed)

use futures::executor::block_on;
use raft::prelude::*;
use std::thread;
use tokio::time::Duration;
#[tokio::main]
async fn main() {
// Create a Raft node configuration
let config = NodeConfig {
{"app_name":"Telegram","timestamp":"2021-04-08 15:36:02.00 +0430","app_version":"7.6.2","slice_uuid":"ea40642d-cc97-37e0-afaa-e01a799b2b4e","adam_id":686449807,"build_version":"20561","platform":2,"bundleID":"ph.telegra.Telegraph","share_with_app_devs":0,"is_first_party":0,"bug_type":"109","os_version":"iPhone OS 14.4.2 (18D70)","incident_id":"98666FEF-B245-431C-829E-F1D355AD2512","name":"Telegram"}
Incident Identifier: 98666FEF-B245-431C-829E-F1D355AD2512
CrashReporter Key: a879733b0cea7a8cbcfe439a3a90fc12dc9b5614
Hardware Model: iPad6,11
Process: Telegram [3298]
Path: /private/var/containers/Bundle/Application/BB9A2543-2C53-480E-A909-C2F6A404B5BA/Telegram.app/Telegram
Identifier: ph.telegra.Telegraph
Version: 20561 (7.6.2)
AppStoreTools: 12D4d
AppVariant: 1:iPad6,11:13
// [dependencies]
// serde = { version = "1.0.193", features = [] }
// serde_json = { version = "1.0.108", features = [] }
use serde::{Serialize, Serializer};
use std::fmt;
struct Name {
first_name: String,
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007efee485831a, pid=5865, tid=10914
#
# JRE version: OpenJDK Runtime Environment JBR-17.0.4.1+7-469.62-jcef (17.0.4.1+7) (build 17.0.4.1+7-b469.62)
# Java VM: OpenJDK 64-Bit Server VM JBR-17.0.4.1+7-469.62-jcef (17.0.4.1+7-b469.62, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C [libcef.so+0x803731a]
#
@raminfp
raminfp / using-wget-with-socks-proxy
Created October 22, 2022 07:38 — forked from ekiara/using-wget-with-socks-proxy
Using wget with socks proxy
# using-wget-with-socks-proxy
# This should work for everything includeing curl, pip, pipenv, etc
# TLDR: Use proxychains (https://github.com/haad/proxychains)
## INSTALL PROXY CHAINS ##
$ sudo apt update -y
$ sudo apt install proxychains
## EDIT PROXYCHAINS CONFIG ##
@raminfp
raminfp / curltest.c
Last active June 26, 2021 19:35 — forked from aaronhurt/curltest.c
example code using libcurl and json-c to post and parse a return from http://jsonplaceholder.typicode.com
/**
* example C code using libcurl and json-c
* to post and return a payload using
* http://jsonplaceholder.typicode.com
*
* Requirements:
*
* json-c - https://github.com/json-c/json-c
* libcurl - http://curl.haxx.se/libcurl/c
*
write-host "Hello"
@raminfp
raminfp / Debootstrap.md
Created November 19, 2018 17:34
How to build your kernel without compile kernel source with debootstrap?

Let's Start (Weekend Notes) ...

Install debootstrap :

$ apt-get install debootstrap

Minimal Debian distribution with debootstrap :

@raminfp
raminfp / adb_crash.txt
Created October 9, 2018 11:33
ADB Buffer Overflow
ADB server didn't ACK
Full server startup log: /tmp/adb.0.log
Server had pid: 31526
--- adb starting (pid 31526) ---
adb I 10-08 15:33:00 31526 31526 main.cpp:56] Android Debug Bridge version 1.0.40
adb I 10-08 15:33:00 31526 31526 main.cpp:56] Version 4986621
adb I 10-08 15:33:00 31526 31526 main.cpp:56] Installed as /home/user/Android/Sdk/platform-tools/adb
adb I 10-08 15:33:00 31526 31526 main.cpp:56
]
adb I 10-08 15:33:00 31526 31526 auth.cpp:421] adb_auth_init...