Skip to content

Instantly share code, notes, and snippets.

View zyztek's full-sized avatar

David Enrique Zayas Piña zyztek

  • Soluciones Seis Cuatro Seis S.A.S. de C.V.
  • Ensenada, Baja California, Mexico
  • 17:18 (UTC -07:00)
View GitHub Profile
<?php
$content = '
Text with newlines, possible XSS attacks and URLs.
<script type="text/javascript">alert("this could be an XSS attack.");</script>
The URL to my github page is https://github.com/geon.
';
@zyztek
zyztek / backbone.local-buffered.js
Created November 21, 2024 09:11 — forked from geon/backbone.local-buffered.js
Experimenting with a LocalStorage buffer for backbone in case of dropped connection.
"use strict";
var LocalBuffered = {};
LocalBuffered.Model = Backbone.Model.extend({
constructor: function () {
Backbone.Model.apply(this, arguments);
@zyztek
zyztek / recursive-iterator.zig
Created November 21, 2024 09:10 — forked from geon/recursive-iterator.zig
Implementing simple recursion as an iterator in Zig 0.11.0.
const std = @import("std");
const Buffer = std.ArrayList(u8);
const source = [_]u8{ 1, 2, 3, 4, 5 };
const expectedOrder = [_]u8{ 1, 2, 3, 4, 5, 5, 4, 3, 2, 1 };
fn recursive(read: []const u8, write: *Buffer) !void {
if (read.len > 0) {
try write.append(read[0]);
@zyztek
zyztek / async-iterator-server.ts
Created November 21, 2024 09:09 — forked from geon/async-iterator-server.ts
How to build a socket server with async and for-await.
import { createServer, Socket } from "net";
// Promisified socket.write().
const write = (socket: Socket, data: Buffer | string) =>
new Promise((resolve, reject) =>
socket.write(data as Buffer, (error: Error | undefined) => {
if (error) {
reject();
} else {
resolve();
@zyztek
zyztek / 9gag-nsfw-unlock.md
Created November 21, 2024 09:09 — forked from MRuy/9gag-nsfw-unlock.md
9gag.com NSFW without account!

Unlock NSFW posts without account

document.cookie = 'safemode=0; expires=Sun, 13 Oct 2019 00:00:00 UTC; path=/';

@zyztek
zyztek / load-all-inventory-history-data.js
Created November 21, 2024 09:09 — forked from MRuy/load-all-inventory-history-data.js
Load all inventory history data
// Copy and paste into console on the following URL:
// https://steamcommunity.com/my/inventoryhistory/?app%5B%5D=730
(async _ => {
const loadMoreBtnSelector = '#load_more_button:not([style*="display:none"])';
let pagesLoaded = 0;
console.time('loadall');
console.log(g_historyCursor);
while (g_historyCursor !== null) {
pagesLoaded++;
await waitForSelector(loadMoreBtnSelector);
@zyztek
zyztek / ngrok-plex.py
Created November 21, 2024 09:09 — forked from origamiofficial/ngrok-plex.py
Run Plex Through Ngrok With SSL via DuckDNS to Bypass CGNAT or Double-NAT Scenario
#!/usr/bin/python3
from plexapi.server import PlexServer
import sys
import json
import requests
import time
import socket
# please make sure to install PlexAPI via pip, "pip install PlexAPI"
@zyztek
zyztek / Hcaptcha Solver with Browser Trainer(Automatically solves Hcaptcha in browser).user.js Hcaptcha Solver with Browser Trainer(Automatically solves Hcaptcha in browser) by Md ubeadulla | Note: This script is solely intended for the use of educational purposes only and not to abuse any website. This script uses audio in order to solve the captcha. Use it wisely and do not abuse any website. Click "Raw" to install it on Tampermonkey
// ==UserScript==
// @name Hcaptcha Solver with Browser Trainer(Automatically solves Hcaptcha in browser)
// @namespace Hcaptcha Solver
// @version 10.0
// @description Hcaptcha Solver in Browser | Automatically solves Hcaptcha in browser
// @author Md ubeadulla
// @match https://*.hcaptcha.com/*hcaptcha-challenge*
// @match https://*.hcaptcha.com/*checkbox*
// @grant GM_xmlhttpRequest
// @grant GM_setValue
@zyztek
zyztek / recaptcha.user.js
Created November 21, 2024 08:58 — forked from jishanshaikh4/recaptcha.user.js
Tampermonkey script for Recaptcha (Archive)
// ==UserScript==
// @name Recaptcha Solver (Automatically solves Recaptcha in browser)
// @namespace Recaptcha Solver
// @version 2.1
// @description Recaptcha Solver in Browser | Automatically solves Recaptcha in browser
// @author engageub
// @match *://*/recaptcha/*
// @connect engageub.pythonanywhere.com
// @connect engageub1.pythonanywhere.com
// @grant GM_xmlhttpRequest
@zyztek
zyztek / hcaptcha.user.js
Created November 21, 2024 08:50 — forked from jishanshaikh4/hcaptcha.user.js
Tampermonkey script to solve Hcaptcha
// ==UserScript==
// @name Hcaptcha Solver with Browser Trainer(Automatically solves Hcaptcha in browser)
// @namespace Hcaptcha Solver
// @version 10.0
// @description Hcaptcha Solver in Browser | Automatically solves Hcaptcha in browser
// @match https://*.hcaptcha.com/*hcaptcha-challenge*
// @match https://*.hcaptcha.com/*checkbox*
// @grant GM_xmlhttpRequest
// @grant GM_setValue
// @grant GM_getValue