Skip to content

Instantly share code, notes, and snippets.

View spacemeowx2's full-sized avatar

imspace spacemeowx2

  • 17:45 (UTC +08:00)
View GitHub Profile
@valorad
valorad / InstallingXRDP.md
Created June 5, 2022 13:18
Installing xrdp

Ubuntu:

sudo apt install xrdp 
sudo adduser xrdp ssl-cert 
sudo systemctl restart xrdp

Fedora:

@SilverBut
SilverBut / find_movement.md.py
Last active November 14, 2021 14:39
could be helpful if you want to get 61w.
#!/usr/bin/env python
# coding: utf-8
# Original camera video resolution
RES_FROM=(2560,1920)
# If set to 4, then sampled down to 1/4 resolution to speed up
RESIZE = 4
# POI is under target resolution.
# First point is top left cornor of ROI, and second one is bottom right cornor
# (0,0) is at top left cornor of the whole graph.
@FreddieOliveira
FreddieOliveira / docker.md
Last active July 3, 2024 02:41
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

import requests
from terminaltables import AsciiTable
from termcolor import colored, cprint
from pwn import *
import json
import time
import sys
import click
import re
import os
@colemickens
colemickens / amiibo-emulation-with-linux-vm.md
Last active June 27, 2024 12:20
amiibo-emulation-with-linux-vm.md

Easy Amiibo Emulation - https://bit.ly/2z0m09k

(^ that's a short-link to this page, so you can open it in Linux)

Some users are discussing this guide in #hacking on the JoyConDroid Discord: https://discord.gg/SQNEx9v.

DO NOT ask for, or share links to, Amiibo bins in the comments! They will be removed. Thank you for understanding.

(Windows|Linux PC) + JoyControl + Bluetooth = AMIIBO EMULATION

@typcn
typcn / SampleHide.cpp
Created October 6, 2018 07:05
A sample code to hide process window with HyperPlatform. https://github.com/tandasat/HyperPlatform
// Copyright (c) 2015-2016, tandasat. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
/// @file
/// Implements DdiMon functions.
#include "ddi_mon.h"
#include <ntimage.h>
#define NTSTRSAFE_NO_CB_FUNCTIONS
@jongiddy
jongiddy / server.py
Last active March 6, 2019 03:25 — forked from mildred/server.py
Python 3 http.server with PUT support
#!/usr/bin/env python
import argparse
import http.server
import os
class HTTPRequestHandler(http.server.SimpleHTTPRequestHandler):
def do_PUT(self):
path = self.translate_path(self.path)
if path.endswith('/'):
# The following is adapted from https://github.com/reswitched/loaders/blob/master/nxo64.py
#
# ===========================================================================================
#
# Copyright 2017 Reswitched Team
#
# Permission to use, copy, modify, and/or distribute this software for any purpose with or
# without fee is hereby granted, provided that the above copyright notice and this permission
# notice appear in all copies.
#
###############################################
# TX SX OS unpacker - by hexkyz and naehrwert #
###############################################
from Crypto.Cipher import AES
from Crypto.Util import Counter
import os
import struct
"""
@tesnos6921
tesnos6921 / info.md
Last active January 5, 2019 16:58
patchnso.py + sample patches for SMO 1.2.0

patchnso.py: a simple script to patch the .text sections of nso files and reassemble them

Python 2.7, requires lz4 module to be installed

Usage Instructions:

  1. Using hactool, extract the exefs of your game
  2. Within the exefsdir, there should be "main" and "main.npdm" and possibly a few others
  3. "main" is the game's main nso, you can load it into IDA and create your own patches or go out and find some
  4. When you have your patches put them all in a file in this format: (all values should be in hex) location:codepatch Example: