Skip to content

Instantly share code, notes, and snippets.

View gfdac's full-sized avatar

Gustavo Clemente gfdac

View GitHub Profile
@gfdac
gfdac / AesCipher.java
Created June 5, 2020 01:59 — forked from demisang/AesCipher.java
AES/CBC/PKCS5Padding encrypt/decrypt PHP and JAVA example classes
import android.support.annotation.Nullable;
import android.util.Base64;
import java.nio.ByteBuffer;
import java.security.SecureRandom;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
@gfdac
gfdac / aes_example.cs
Created October 27, 2020 23:54 — forked from mark-adams/aes_example.cs
AES String Encryption (CBC) Example Code for C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace aes_example
{
using System;
@gfdac
gfdac / clock_sync.txt
Created January 29, 2021 03:50 — forked from darinwilson/clock_sync.txt
Sonic Pi MIDI clock sync
use_bpm 120
midi_start
live_loop :clock do
midi_clock_beat
sleep 1
end
live_loop :kick do
sample :bd_haus
@gfdac
gfdac / server.cpp
Created March 20, 2021 23:47 — forked from mht/server.cpp
JUCE InterprocessConnection Demo : Server
const int kPortNumber = 52713;
class Connection : public InterprocessConnection
{
public:
Connection(WaitableEvent& stop_signal)
: InterprocessConnection(false, 15),
stop_signal_(stop_signal)
{
}
@gfdac
gfdac / client.cpp
Created March 20, 2021 23:47 — forked from mht/client.cpp
JUCE InterprocessConnection Demo : Client
const int kPortNumber = 52713;
class Connection : public InterprocessConnection
{
public:
Connection()
: InterprocessConnection(false, 15)
{
}
@gfdac
gfdac / patch_apk_for_sniffing.md
Created March 21, 2021 21:06 — forked from unoexperto/patch_apk_for_sniffing.md
How to patch Android app to sniff its HTTPS traffic with self-signed certificate

How to patch Android app to sniff its HTTPS traffic with self-signed certificate

  • Download apktool from https://ibotpeaches.github.io/Apktool/
  • Unpack apk file: java -jar /home/expert/work/tools/apktool.jar d [email protected]
  • Modify AndroidManifest.xml by adding android:networkSecurityConfig="@xml/network_security_config" attribute to application element.
  • Create file /res/xml/network_security_config.xml with following content:
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <base-config>

How to install game-porting-toolkit (aka proton for macOS)

You also might wanna just use Whisky which does this automatically

This guide works on macOS 13.4+ using Command Line Tools for XCode 15 Beta!

What is this?

In the recent WWDC, Apple announced and released the "game porting toolkit", which upon further inspection this is just a modified version of CrossOver's fork of wine which is a "compatibility layer" that allows you to run Windows applications on macOS and Linux.

Half-Life 2 on the Switch

This is a guide for running Half-Life 2 on your Switch. Please be aware that this isn't a great way of playing Half-Life 2 - do not expect this mod to work perfectly.

Thank you to Bringus Studios for fixing save files not showing up!

NOTE: I am assuming that you have basic knowledge about how modding games on the Switch works. I will not provide support for questions like "how do I install Atmosphère / CFW", "how do I make an emuMMC", "how do I extract games", etc. For help with modding your console, see the NH Switch Guide.

WARNING: While this mod should be fairly safe to use, I do not take any responsibility if your Portal save data is deleted, you get banned from Nintendo Switch Online, or if your Switch explodes.

@gfdac
gfdac / reverse-engineering-macos.md
Created December 21, 2024 03:41 — forked from 0xdevalias/reverse-engineering-macos.md
Some notes, tools, and techniques for reverse engineering macOS binaries