Skip to content

Instantly share code, notes, and snippets.

View trungnt2910's full-sized avatar
🧝
Conquering the ELF

Trung Nguyen trungnt2910

🧝
Conquering the ELF
View GitHub Profile
@trungnt2910
trungnt2910 / install_manifest.sh
Created July 22, 2023 07:29
Install `net8.0-haiku` using GitHub's NuGet server. Requires a GitHub packages token.
#!/bin/bash -e
DOTNET_PATH="dotnet"
if [ -z "$DOTNET_ROOT" ]; then
DOTNET_PATH=$(command -v dotnet)
else
DOTNET_PATH="$DOTNET_ROOT/dotnet"
fi
@trungnt2910
trungnt2910 / dgram_test.cpp
Created June 18, 2023 11:05
Test of simple functionality of datagram UNIX sockets
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
@trungnt2910
trungnt2910 / build.md
Last active March 26, 2023 08:48
Building .NET for Haiku

.NET cross-compilation instructions

This sets up a build environment using Haiku cross tools and a test environment using HyClone.

The guide assumes a clean Ubuntu 23.04 environment.

Install HyClone

git clone https://github.com/trungnt2910/hyclone
async function FetchScore(sbd) {
// The magic string, obtained by inspecting the GET request.
const magicString = "__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUKLTM5NDc5MjE0NQ9kFgICAw9kFgICAQ88KwAIAQAPFgIeDl8hVXNlVmlld1N0YXRlZ2QWAmYPZBYCAgEPZBYEZg9kFgJmD2QWAmYPZBYGAgEPPCsABgEADxYCHgVWYWx1ZQUGMDQwMTcwZGQCBQ88KwARAwAPFgQeC18hRGF0YUJvdW5kZx4LXyFJdGVtQ291bnQCAWQBEBYBAgEWATwrAAUBABYCHgpIZWFkZXJUZXh0BQRNw7RuFgFmDBQrAAAWAmYPZBYEAgEPZBYGZg8PFgIeBFRleHQFBjA0MDE3MGRkAgEPDxYCHwUFCVRpbiBo4buNY2RkAgIPDxYCHwUFBTE4LjYwZGQCAg8PFgIeB1Zpc2libGVoZGQCBw8PZA8QFgFmFgEWAh4OUGFyYW1ldGVyVmFsdWUFBjA0MDE3MBYBZmRkAgEPZBYCZg9kFgJmD2QWBgIBDzwrAAYBAA8WAh8BZWRkAgUPPCsAEQMADxYEHwJnHwNmZAEQFgAWABYADBQrAABkAgcPD2QPEBYBZhYBFgIfB2UWAWZkZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAwUQQVNQeFBhZ2VDb250cm9sMQUcQVNQeFBhZ2VDb250cm9sMSRBU1B4QnV0dG9uMQUcQVNQeFBhZ2VDb250cm9sMSRBU1B4QnV0dG9uM1HJZ%2F6WUqpwzIZjiuN%2Bv3%2B%2BWi0ZgoC1gwbhFOmikFiR&__EVENTVALIDATION=%2FwEdAAJbZEDZ%2BCVXGieReMH5wELh5tBVQB%2FetO1iD9MZSDo%2FTK96XZ27Y9J6lgSiWAo2
@trungnt2910
trungnt2910 / FuckPhishing.csproj
Created September 21, 2022 14:47
Fuck phishing
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net48;net6.0</TargetFrameworks>
<LangVersion>Latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
@trungnt2910
trungnt2910 / OK
Created December 8, 2021 17:39
A fairy tale from Hell
[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+(+(!+[]+!+[]+!+[]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([]+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(!
@trungnt2910
trungnt2910 / cla.md
Last active May 4, 2021 11:25 — forked from psifertex/cla.txt
AzureAms CLA

Contribution License Agreement

This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”), and conveys certain license rights to AzureAms Open Source Community and its affiliates (“AzureAms”) for Your contributions to AzureAms open source projects. This Agreement is effective as of the latest signature date below.

Definitions

“Code” means the computer software code, whether in human-readable or machine-executable form, that is delivered by You to AzureAms under this Agreement.

“Project” means any of the projects owned or managed by AzureAms and offered under a license approved by the Open Source Initiative (www.opensource.org).