Skip to content

Instantly share code, notes, and snippets.

View undali's full-sized avatar
🥂
Wandering!

undali

🥂
Wandering!
View GitHub Profile
Install https://github.com/ClementJ18/finalBIGv2?tab=readme-ov-file#running-the-repository
Open & Extract INIZH.big to the same directory :'C:\Program Files (x86)\Steam\steamapps\common\Command & Conquer Generals - Zero Hour'
Edit individual .ini files at 'C:\Program Files (x86)\Steam\steamapps\common\Command & Conquer Generals - Zero Hour\Data\INI\Object'
@undali
undali / Android - Enable ADB from recovery.md
Created September 3, 2024 07:57 — forked from varhub/Android - Enable ADB from recovery.md
Android - Enable ADB from recovery

Android - Enable ADB from recovery

Credits to @TheOnlyAnil-@Firelord[^stackoverflow]

  • Requirements: a) stock recovery + rooted phone b) custom recovery

  • Files changed:

DDWRT administrator page > Administration Tab > Commands > Paste following inside Command Shell.
iptables -I FORWARD -s 102.132.96.0/20 -j REJECT
iptables -I FORWARD -s 102.132.96.0/24 -j REJECT
iptables -I FORWARD -s 103.4.96.0/22 -j REJECT
iptables -I FORWARD -s 129.134.0.0/17 -j REJECT
iptables -I FORWARD -s 129.134.25.0/24 -j REJECT
iptables -I FORWARD -s 129.134.26.0/24 -j REJECT
iptables -I FORWARD -s 129.134.27.0/24 -j REJECT
iptables -I FORWARD -s 129.134.28.0/24 -j REJECT
@undali
undali / System Design.md
Created May 4, 2018 10:10 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@undali
undali / CleanArchitecture.md
Created May 4, 2018 10:10 — forked from ygrenzinger/CleanArchitecture.md
Summary of Clean Architecture by Robert C. Martin

Summary of book "Clean Architecture" by Robert C. Martin

Uncle Bob, the well known author of Clean Code, is coming back to us with a new book called Clean Architecture which wants to take a larger view on how to create software.

Even if Clean Code is one of the major book around OOP and code design (mainly by presenting the SOLID principles), I was not totally impressed by the book.

Clean Architecture leaves me with the same feeling, even if it's pushing the development world to do better, has some good stories and present robust principles to build software.

The book is build around 34 chapters organised in chapters.

Principles of Adult Behavior

  1. Be patient. No matter what.
  2. Don’t badmouth: Assign responsibility, not blame. Say nothing of another you wouldn’t say to him.
  3. Never assume the motives of others are, to them, less noble than yours are to you.
  4. Expand your sense of the possible.
  5. Don’t trouble yourself with matters you truly cannot change.
  6. Expect no more of anyone than you can deliver yourself.
  7. Tolerate ambiguity.
  8. Laugh at yourself frequently.
#include "LiveStreamingHeader.h"
#include <stdio.h>
#include <assert.h>
void LiveStreamHeader::setAudioFramesSizeList(const std::vector<int> list)
{
m_vAudioFrameSizeList = list;
}
void LiveStreamHeader::setVideoFramesSizeList(const std::vector<int> list)
*
* hello-1.c - The simplest kernel module.
*/
#include <linux/module.h> /* Needed by all modules */
#include <linux/kernel.h> /* Needed for KERN_INFO */
int init_module(void)
{
printk(KERN_INFO "Hello world 1.\n");