Skip to content

Instantly share code, notes, and snippets.

View hykilpikonna's full-sized avatar
🐈
Busy being a cat

Azalea hykilpikonna

🐈
Busy being a cat
View GitHub Profile
@rain-1
rain-1 / GPT-4 Reverse Turing Test.md
Last active May 28, 2024 17:40
GPT-4 Reverse Turing Test

The reverse turing test

I asked GPT-4 to come up with 10 questions to determine if the answerer was AI or human.

I provided my own answers for these questions and I also asked ChatGPT to answer them.

The result is that GPT-4 was able to correctly differentiate between AI and Human.

@harubaru
harubaru / wd1-3-release.md
Last active June 29, 2024 14:19
Official Release Notes for Waifu Diffusion 1.3
@lucko
lucko / java-stack-thread-dump.md
Created February 19, 2021 13:53
Generate a stack trace / thread dump for a Java program

Step 1: Find the process id for the application

Before you can create a stack dump, you need to know (or find out) the process id of the application.

You can use the jps command (or any other approach) to find the process for all running Java programs on the system.

e.g.

➜  jps

If you dont have a keypair, Create the RSA Key Pair using ssh-keygen tool

The first step is to create the key pair on the client machine (there is a good chance that this will just be your computer):

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

This creates a new ssh key, using the provided email as a label. The entire key generation process looks like this:

Generating public/private rsa key pair.
Enter file in which to save the key (/home/demo/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
@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

<?php
// https://gist.github.com/esterTion/c673a5e2547cd54c202f129babaf601d
/*
This code is now maintained by yojohanshinwataikei solely
esterTion has retired from this project
*/
chdir(__DIR__);
require_once __DIR__ . '/../webpthumb/Workerman-master/Autoloader.php';
@wwylele
wwylele / doc.md
Created July 26, 2018 16:13
WIP 3DS CEC doc

3DS CEC (StreetPass) Documentation

Overall Model

The CEC system module consists of two main components: mailbox manager and StreetPass communicator. Both work on the system save 00010026, which stores all mailbox information and message data. A simplified diagram of CEC communication model is

Application <=> Mailbox Manager <=> System Save (Mailbox) <=> StreetPass communicator <=> NWM/network <=> StreetPass communicator of another 3DS <=> ...

Many CEC service (cecd:u and cecd:s) functions are interfaces exposed from the mailbox manager, which read and write the system save. The mailbox manager is essentially a thick layer over direct file IO, which performances data initialization and verification on top of raw system data read/write.

@schmich
schmich / ducky.md
Last active July 10, 2024 10:25
Programming media keys on the Ducky One 2 Skyline

Programming Media Keys on the Ducky One 2 Skyline

To use media keys on the Ducky One 2 Skyline, you must record a macro to bind the media function to a hotkey combination, i.e. Fn plus some key.

Example

Important: In the instructions below, "Press X+Y+Z" means press and hold key X, press and hold key Y, press and hold key Z in that order, and then release all three.

As an example, to bind Fn+PgUp to the play/pause media function:

@sttz
sttz / OrbGestureFix.h
Last active March 6, 2022 16:40
iOS touch delay workaround for Unity, caused by 3D Touch app switcher. Put the two files in the Assets/Plugins/iOS folder of your Unity project and build like normal.
#pragma once
#include "UnityAppController.h"
#include "UnityView.h"
/*
This is a workaround for touches delayed by about 1s near the left
screen edge on iOS devices with 3D Touch
The issue is due to the global app switcher, which is invoked with
@narate
narate / create-hotspot.md
Last active July 21, 2024 09:30
Create Wi-Fi Hotspot on Linux using nmcli

Create a Wi-Fi hotspot on Linux using nmcli

Original post : https://unix.stackexchange.com/a/310699

nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect yes ssid Hostspot
nmcli con modify Hostspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
nmcli con modify Hostspot wifi-sec.psk "veryveryhardpassword1234"