Skip to content

Instantly share code, notes, and snippets.

View kafkadev's full-sized avatar
🏠
Working from home

Gokhan Celik kafkadev

🏠
Working from home
View GitHub Profile
@kafkadev
kafkadev / _deobfuscating-unminifying-obfuscated-web-app-code.md
Created July 20, 2025 09:33 — forked from 0xdevalias/_deobfuscating-unminifying-obfuscated-web-app-code.md
Some notes and tools for reverse engineering / deobfuscating / unminifying obfuscated web app code
@kafkadev
kafkadev / README.md
Created July 9, 2025 04:30 — forked from roachhd/README.md
Games on GitHub

Games on GitHub

Below is a list of open source games and game-related projects that can be found on GitHub - old school text adventures, educational games, 8-bit platform games, browser-based games, indie games, GameJam projects, add-ons/maps/hacks/plugins for commercial games, libraries, frameworks, engines, you name it.

Contributing

If you'd like to add a repository to the list, please create an Issue, or fork this repository and submit a pull request.

Help: MarkDown Help, Markdown Cheatsheet

@kafkadev
kafkadev / cf-worker.js
Created June 4, 2025 04:39 — forked from mkornatz/cf-worker.js
Cloudflare Workers CORS Proxy (supports websockets)
// We support the GET, POST, HEAD, and OPTIONS methods from any origin,
// and allow any header on requests. These headers must be present
// on all responses to all CORS preflight requests. In practice, this means
// all responses to OPTIONS requests.
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET,HEAD,POST,OPTIONS",
"Access-Control-Max-Age": "86400",
}
@kafkadev
kafkadev / websocket_proxy.js
Created July 30, 2024 19:31 — forked from Checksum/websocket_proxy.js
Intercepting WebSockets in the browser using JavaScript
const WebSocketProxy = new Proxy(window.WebSocket, {
construct(target, args) {
console.log("Proxying WebSocket connection", ...args);
const ws = new target(...args);
// Configurable hooks
ws.hooks = {
beforeSend: () => null,
beforeReceive: () => null
};
// "Extend" the EventEmitter like this:
var EventEmitter = require('events').EventEmitter;
EventEmitter.prototype.once = function(events, handler){
// no events, get out!
if(! events)
return;
// Ugly, but helps getting the rest of the function
@kafkadev
kafkadev / stripe-credit-card-numbers.md
Created September 28, 2022 21:37 — forked from rymawby/stripe-credit-card-numbers.md
Stripe test credit card numbers for use in development

#Test credit card numbers to use when developing with Stripe

4242424242424242 Visa

4012888888881881 Visa

4000056655665556 Visa (debit)

@kafkadev
kafkadev / example_matgaming_mgc.php
Created September 23, 2022 21:31
Example Matgaming MGC
<?php
/*EXAMPLE METHOD*/
function matGaminCallBack(){
$inputJSON = file_get_contents('php://input');
if ($inputJSON != '') {
$input = json_decode($inputJSON, TRUE); //convert JSON into array
@kafkadev
kafkadev / connect-remote-mongo-via-ssh-tunnel.md
Created September 22, 2022 19:35 — forked from umidjons/connect-remote-mongo-via-ssh-tunnel.md
Create ssh tunnel and connect to the remote mongo database on command line

Create ssh tunnel and connect to the remote mongo database on command line

Assume followings:

/mykeys/.ssh/prodserver.pem - is a certificate file

umid - is a user name

111.111.111.111 - is a remote host, that mongodb runs

@kafkadev
kafkadev / 1-test-mongo.js
Created September 22, 2022 19:34 — forked from arisetyo/1-test-mongo.js
Introduction to async/await in Node JS
/**
* @author Arie M. Prasetyo
*/
const mongoose = require('mongoose');
const mongoConfig = {useNewUrlParser: true, useUnifiedTopology: true};
// connect to Mongo database
mongoose.connect('mongodb://localhost:27017/test', mongoConfig);
// define the model
@kafkadev
kafkadev / mongodb_driver
Created September 22, 2022 19:34 — forked from augedoo/mongodb_driver
Database connnection
const mongodb = require("mongodb")
const MongoClient = mongodb.MongoClient;
let _db;
// Connect to the database
const mongoConnect = (cb) => {
MongoClient.connect(
//connection string here
{ useUnifiedTopology: true }