Skip to content

Instantly share code, notes, and snippets.

View konsumer's full-sized avatar

David Konsumer konsumer

View GitHub Profile
@calbertts
calbertts / process.c
Last active October 24, 2021 04:00
C Module for QuickJS
#include <quickjs/quickjs.h>
#include <errno.h>
#include <string.h>
#define countof(x) (sizeof(x) / sizeof((x)[0]))
JSValue createError(JSContext *ctx, int err) {
JSValue obj;
obj = JS_NewError(ctx);
@yazinsai
yazinsai / Android-Emulator-on-AWS-EC2.md
Last active March 29, 2024 07:45 — forked from atyachin/Android-Emulator-on-AWS-EC2.txt
Installing and running Android Emulator on Amazon AWS EC2 (Ubuntu 16.04 / m5.xlarge)

Getting the Android Emulator running on EC2 📱

# @ your EC2 instance
sudo apt update
sudo apt install openjdk-8-jre unzip
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip -d android-sdk
sudo mv android-sdk /opt/
export ANDROID_SDK_ROOT=/opt/android-sdk
@ihor-lev
ihor-lev / sublime_fix_home_end_keys.md
Last active May 6, 2024 12:31
Fix Sublime Text Home and End key usage on Mac OSX

Sublime Text Home/End keys default functionality jumps to the beginning and end of the file.

Fix Home and End keys to move the cursor to the beginning and end of lines.

Preferences > Key Bindings - User

Adding the following to the array:

{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} },
@jaoye
jaoye / AppStore_API.md
Last active August 9, 2023 06:23
[AppStore API] AppStore API #AppStore

Old school LAN party

Selection criteria

  • Games should be playable on current to semi-old notebooks (with an integrated Intel graphics adapter)
  • Gameclients should be available for Linux, macOS and Windows
  • Gameplay and overall experience should be as close as possible to the vanilla game (apart from necessary changes to make the game playable on newer hardware, operating systems, architectures and network protocols)
  • LAN and WAN play should be possible using the same setup
  • Joining an already running game should be possible
// start with:
// frida -U -l pinning.js -f [APP_ID] --no-pause
Java.perform(function () {
console.log('')
console.log('===')
console.log('* Injecting hooks into common certificate pinning methods *')
console.log('===')
var X509TrustManager = Java.use('javax.net.ssl.X509TrustManager');
#!/usr/bin/env python3
from __future__ import print_function
import frida
import sys
import json
import time
def on_message(message, payload):
if(message['type'] == 'send'):
{
"m3u8": {
"local": "iptv.m3u",
"remote": "http://api.vaders.tv/vget?username=[USERNAME]&password=[PASSWORD]&type=m3u_plus&format=ts"
},
"serverPort": 6077,
"serverHost": "0.0.0.0",
"serverName": "PlexIPTV",
"tunerCount": 4,
"deviceId": "001002003",
@vi
vi / tcpclose.crs
Created August 2, 2018 16:29
Rust Tokio fast TCP socket close handling
#!/usr/bin/env run-cargo-script
//! ```cargo
//! [dependencies]
//! tokio = "=0.1.7"
//! tokio-codec = "*"
//! tokio-io = "=0.1.7"
//! futures-cpupool = "*"
//! mio = "*"
//!
//! [replace]
@loganvolkers
loganvolkers / Byte Formatting for Google Sheets.md
Last active April 16, 2024 10:42
Byte formatting for Google Sheets