Skip to content

Instantly share code, notes, and snippets.

@oldnomad
oldnomad / rustore.md
Created October 21, 2024 18:37
RuStore API

RuStore API for application installation

  • URL for human-readable application info page has format https://www.rustore.ru/catalog/app/{packageName}.
  • Application info as a JSON object is available at URL https://backapi.rustore.ru/applicationData/overallInfo/{packageName}.
  • APK reference URL is https://backapi.rustore.ru/applicationData/download-link. It accepts only POST requests (see below).

Application info

Application info JSON object has following fields:

  • code: contains string OK (on success).
@akshayverma1
akshayverma1 / BootCamp Driver Installation Guide.md
Last active January 25, 2026 06:26
How to get Apple peripherals to work on a Windows PC

How to get Apple peripherals to work on a Windows PC

Published: 8 February, 2024

This guide will help you get your Apple Studio Display, ProDisplay XDR, Magic Keyboard, Magic Mouse, Magic Trackpad, etc. to work with a Windows 11 PC that doesn’t have native support for BootCamp. I wrote this guide because most methods that I could find elsewhere were either out of date, had sketchy download links, had compatibility issues with Windows 11 version 23H2, didn't support Windows Precision Touchpad, didn’t support all the modules in the BootCamp app, or didn’t explain how to get the most up to date Apple official drivers.

Please note that to get Apple displays to work will require either a thunderbolt output from your graphics card or the right DisplayPort to USB-C cable. Please refer to other guides elsewhere to find out what hardware you’ll need.


Preliminary installation

@Mirochiu
Mirochiu / genkeystore.sh
Created March 31, 2023 02:53
Use pk8 and x509.pem files in AOSP to generate the keystore file for Android Studio
#!/usr/bin/bash
# generate the keystore and show the result
storepassword="password"
outkeystore="mygen.keystore"
if [ $# -gt 0 ]; then
outkeystore="$1"
fi
if [ $# -gt 1 ]; then
@Forgo7ten
Forgo7ten / Base.java
Created February 3, 2022 16:00
Base64 自定义字符表加解密
package my.crypto;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
/**
* @ClassName Base
* @Description Base64自定义加解密示例
* @Author Palmer
* @Date 2022/2/3
@Forgo7ten
Forgo7ten / FirstShellTool.java
Created November 23, 2021 00:19
修改dex文件并修复 CheckSum、filesize、sha1;将某文件添加到dex文件的末尾
import java.io.*;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.zip.Adler32;
public class FirstShellTool {
private static final String originApk = "C:\\Users\\Palmer\\Desktop\\classes3.dex";
@ox1111
ox1111 / automatically_redirect.js
Created May 15, 2020 01:37
Frida Script to automatically redirect all java.net.URLConnections through a proxy of your choosing
// Frida Script to automatically redirect all java.net.URLConnections through a proxy of your choosing
setImmediate(function() {
Java.perform(function() {
var url = Java.use("java.net.URL");
var proxyTypeI = Java.use('java.net.Proxy$Type');
var inetSockAddrWrap = Java.use("java.net.InetSocketAddress");
var proxy = Java.use('java.net.Proxy');
@sharunkumar
sharunkumar / adb-dns.bat
Created February 7, 2020 07:08
Enabling / Disabling private DNS in android via ADB
rem to disable private dns
adb shell settings put global private_dns_mode off
rem to enable private dns with hostname (example with dns.adguard.com)
adb shell settings put global private_dns_mode hostname
adb shell settings put global private_dns_specifier dns.adguard.com
@aveuiller
aveuiller / packageAndroid.sh
Last active August 19, 2024 07:36
Extract the Android .odex files and package a new android.jar with the retrieved classes
#!/bin/sh
##
# Usage:
# ./convert.sh /path/to/framework /path/to/out $apiVersion $arch
#
# $arch is mandatory only in case of an ART system and defines the boot folder to use (arm, x86, x86_64).
##
frameworkDir=$1
# Final output directory
@irbull
irbull / OpenSSLExample.cpp
Created August 11, 2016 18:32
Code signing and verification with OpenSSL
#include <iostream>
#include <openssl/aes.h>
#include <openssl/evp.h>
#include <openssl/rsa.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <openssl/bio.h>
#include <openssl/err.h>
#include <assert.h>

HOW TO INSTALL pjreddie/DARKNET ON OSX

Install Opencv

  • use brew
brew install opencv
  • setup opencv.pc to pkgconfig, e.g :