Skip to content

Instantly share code, notes, and snippets.

View deerme's full-sized avatar

Pedro V deerme

View GitHub Profile
@deerme
deerme / ex-polymarket-redeem.py
Last active December 17, 2025 20:54
🎯 Polymarket Position Redeemer - Automatically redeem winning positions from resolved Polymarket prediction markets. Converts outcome tokens back to USDC. Requirements: Python 3.12+, pip install polymarket_apis python-dotenv Usage: Add PRIVATE_KEY to .env file, then run python ex-polymarket-redeem.py ✅ Tested: Works well on December 2024 with EO…
# Polymarket Position Redeemer using polymarket_apis (Third-party Library)
# Based on: https://github.com/qualiaenjoyer/polymarket-apis/issues/1
# Requirements: pip install polymarket_apis (requires Python 3.12+)
# Note: This is NOT the official Polymarket API, it's a community library
import os
from dotenv import load_dotenv
from polymarket_apis import PolymarketWeb3Client, PolymarketDataClient
def main():
@deerme
deerme / screenutils.py
Created November 18, 2022 13:03 — forked from jdevera/screenutils.py
Gnu screen handling in python
#!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# Now this lib is on her own full repository and pypi page:
# http://github.com/Christophe31/screenutils
# http://pypi.python.org/pypi/screenutils
#
# This may not work with bpython, use python 2.6 or upper
#
# This program is free software. It comes without any warranty, to
/*
* MultiTuxedoListenerThread.c
*
* Created on: 2011-12-9
* Author: tuxedo
*/
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
@deerme
deerme / websocket-pybithumb-with-pyqt.py
Created February 7, 2022 18:10 — forked from mr-yoo/websocket-pybithumb-with-pyqt.py
pybithumb websocket test with PyQt
from pybithumb import WebSocketManager
import sys
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import QIcon
import time
class Worker(QThread):
recv = pyqtSignal(str)
# we are using mplfinance to help us visualize the indicator
import mplfinance as mpf
# to make the visualization better by only taking the last 100 rows of data
df = df[-100:]
# extract only ['Open', 'High', 'Close', 'Low'] from df
ohcl = df[['Open', 'High', 'Close', 'Low']]
# add colors for the 'value bar'
<!-- plug-in configuration to put into your parent POM for avoiding any usages of outdated log4j2 versions,
some of which are subject to the RCE CVE-2021-44228 ("Log4Shell") -->
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>ban-bad-log4j-versions</id>
/*
Reddit DailyProgrammer Challenge #180 -- Tamagotchi Emulator
By Aerospark12 (aka Luke)
I may have gone a little bit overboard with this one, but I've got fond memories of tamagotchi from when
I was but a wee laddie, I've always wanted to make something like this, and I really enjoy graphics and animation
The design of this is partially inspirte by how I understand "low level" ICs to work, as an homage to the real tamagotchi
@deerme
deerme / brainwallet.py
Created February 7, 2021 12:47 — forked from stequald/brainwallet.py
Bitcoin brain wallet in Python.
#!/usr/bin/env python
import hashlib, binascii
from hashlib import sha256
import ecdsa
DEBUG = True
DEBUG = False
"""
# secp256k1 T = (p, a, b, G, n, h)
import requests
# requests is performing HTTP request
r = requests.get("http://example/event-stream", headers={"Accept": "text/event-stream"}, stream=True)
for line in r.iter_lines():
print("Got line:", line)

elmercurio.com - bypass adds

Disclaimer

This is a javascript code for close the popup / addons of subscription on elmercurio.com, it must be entered in the chrome web console.

Instructions

  1. Open the url of elmercurio.com with Chrome
  2. F12 or open Developers Tools
  3. In the tab of console, insert the next javascript ``