Skip to content

Instantly share code, notes, and snippets.

View hongxuchen's full-sized avatar

h0n9xu hongxuchen

View GitHub Profile
" vim: filetype=vim
" see https://github.com/tridactyl/tridactyl/wiki/Exemplar-.tridactylrc-files
" set profiledir C:\Users\c00593292\AppData\Roaming\Mozilla\Firefox\Profiles\3xc0zhrn.default-release
" sanitize commandline tridactyllocal tridactylsync
sanitise commandline tridactyllocal
" colorscheme midnight
colorscheme dark
set configversion 2.0
@hongxuchen
hongxuchen / Kali Linux GUI on Termux Android.md
Created October 13, 2022 00:51 — forked from HimDek/Kali Linux GUI on Termux Android.md
This Guide will help you install Kali Linux in Android, that too with a GUI Desktop Environment within Android. It uses Termux to run Kali Linux in Android with XFCE4 Desktop Environment and a Tight VNC Server, which we connect to using a VNC Viewer app in Android.

How to install Kali Linux GUI Desktop in Android using Termux:

This Guide will help you install Kali Linux in Android, that too with a GUI Desktop Environment within Android. It uses Termux to run Kali Linux in Android with XFCE4 Desktop Environment and a Tight VNC Server, which we connect to using a VNC Viewer app in Android.

Just Follow these steps to install Kali Linux with XFCE4 Desktop GUI in Android using Termux:

  • Download and install Termux in Android. (Play Store release is no more updated, so is not recommended.)
  • Open Termux and run the following commands:
    apt update && apt install python python2 openssh -y
    
@hongxuchen
hongxuchen / value-profiling.diff
Created September 13, 2019 08:17 — forked from NeatMonster/value-profiling.diff
This small patch adds support for value profiling into AFL 2.42b.
diff -Naur a/llvm_mode/afl-clang-fast.c b/llvm_mode/afl-clang-fast.c
--- a/llvm_mode/afl-clang-fast.c 2017-01-25 03:51:26.000000000 +0100
+++ b/llvm_mode/afl-clang-fast.c 2017-06-21 16:35:01.203146919 +0200
@@ -120,7 +120,28 @@
http://clang.llvm.org/docs/SanitizerCoverage.html#tracing-pcs-with-guards */
#ifdef USE_TRACE_PC
- cc_params[cc_par_cnt++] = "-fsanitize-coverage=trace-pc-guard";
+ u8 *trace_ind = "";
+ #ifdef USE_TRACE_IND
@hongxuchen
hongxuchen / config.md
Created September 8, 2018 06:11 — forked from 0XDE57/config.md
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable.

I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

Keybase proof

I hereby claim:

  • I am hongxuchen on github.
  • I am hongxu (https://keybase.io/hongxu) on keybase.
  • I have a public key ASCP92i9E_Kwixt09GOvu4xJOLMqChgQJTnYUP4LOb1c4go

To claim this, I am signing this object:

@hongxuchen
hongxuchen / lib.rs
Created August 8, 2017 17:32 — forked from Measter/lib.rs
Rust Perf Benchmark
#![feature(test)]
extern crate test;
#[cfg(test)]
mod tests {
use super::*;
use std::fs::{File};
use std::io::{BufWriter, Write, BufRead, BufReader};
#[bench]
@hongxuchen
hongxuchen / untyped_lambda.rs
Created August 3, 2017 11:27 — forked from kyleheadley/untyped_lambda.rs
Implement the untyped lambda calculus in the Rust type system.
#![allow(unused)]
//#![feature(optin_builtin_traits)]
// Booleans
struct True;
struct False;
trait BoolOr<B> {type BoolOr;}
impl<B> BoolOr<B> for True {type BoolOr=True;}
impl BoolOr<True> for False {type BoolOr=True;}
impl BoolOr<False> for False {type BoolOr=False;}
@hongxuchen
hongxuchen / article.md
Created June 5, 2017 17:47 — forked from jkpl/article.md
Error handling pitfalls in Scala

Error handling pitfalls in Scala

There are multiple strategies for error handling in Scala.

Errors can be represented as [exceptions][], which is a common way of dealing with errors in languages such as Java. However, exceptions are invisible to the type system, which can make them challenging to deal with. It's easy to leave out the necessary error handling, which can result in unfortunate runtime errors.