Skip to content

Instantly share code, notes, and snippets.

View alxgmpr's full-sized avatar
:shipit:

Alex Gompper alxgmpr

:shipit:
  • TryNow Inc
  • Colorado Springs
View GitHub Profile
#!/bin/bash
############################################################################
# Squid Proxy Installer (SPI) #
# Version: 2.0 Build 2017 #
# Branch: Stable #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# Author: Hidden Refuge (© 2014 - 2016) #
# License: MIT License #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
@alxgmpr
alxgmpr / install.sh
Last active July 12, 2017 18:42 — forked from kilfu0701/install.sh
Install PyQt5 with Python2.7 on Mac
cd ~
mkdir dev_tools
cd dev_tools
## download SIP source code
wget http://sourceforge.net/projects/pyqt/files/sip/sip-4.19.3/sip-4.19.3.tar.gz
tar zxf sip-4.19.3.tar.gz
cd sip-4.19.3
python configure.py
make
@alxgmpr
alxgmpr / target.py
Last active May 15, 2019 17:54
Hunting around with Target's e-comm
import requests
from datetime import datetime
from time import sleep
import threading
class Target(threading.Thread):
def __init__(self, tid):
self.tid = tid
threading.Thread.__init__(self)
self.slackhook = 'https://hooks.slack.com/services/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'

Keybase proof

I hereby claim:

  • I am alxgmpr on github.
  • I am edzart (https://keybase.io/edzart) on keybase.
  • I have a public key ASDkYqkGtmzZoV0G93d1_PA6qG7HECEr_lcB7w_Z97xt6Qo

To claim this, I am signing this object:

@alxgmpr
alxgmpr / pynode-dashe.md
Last active May 17, 2019 09:05
Best practices for using PyNode proxies in Dashe

Intro

This is a guide for the best practices and uses for PyNode proxies in combination with Shopify Dashe bot. This guide will hopefully help you better understand good proxy/task ratios. There are two scenarios to consider when setting up tasks and proxies. This is monitor mode and restock mode. Most of this file will be about the best ratios, but I'll add a few notes and tips in here in addition.

While monitoring

When Dashe is monitoring a website (that is, you are using keywords or a link to look for a product which is not currently

@alxgmpr
alxgmpr / stockx_history.py
Last active September 10, 2021 00:15
Download StockX Sales History
import requests
import json
import threading
import csv
from datetime import datetime
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
@alxgmpr
alxgmpr / ebay.py
Created September 6, 2018 03:56
boost ebay views
import requests
LISTINGURL = ''
VIEWS = 200
def main():
for i in range(VIEWS):
r = requests.get(LISTINGURL)
if __name__ == '__main__':
@alxgmpr
alxgmpr / dropbox-to-shopify.md
Created May 9, 2019 21:39
Finding the true Dropbox location of images, so that they can be uploaded directly to Shopify.

One of the projects I'm working on right now requires being able to upload product images to Shopify. These images are sourced via Dropbox links, which look something like this: https://www.dropbox.com/s/[some id]/[filename].jpg?dl=0.

Shopify has a feature which allows for API image uploads via URL or via a Base64 encoded attachment. However, when you try and link a Dropbox URL, you will likely encounter an error since Dropbox file extensions are "faux", and aren't the actual location of the image you want.

Searching for a solution to this yeilds little help. The common solution from Shopify indicates that you'd have to download the images via your URL (to do this you must pass ?dl=1), and either encode it to base64 or host it somewhere on your own, then attach the image to your API request.

@alxgmpr
alxgmpr / cheatsheet.md
Created May 15, 2019 17:48
Tidbits of code, bash scripts, etc. that I commonly find myself Googling

Remove all *.pyc files in a directory

find . -name \*.pyc -delete

Turn off InsecureRequestWarning for unverified requests

import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
@alxgmpr
alxgmpr / proxy_finder.py
Created May 31, 2019 22:01
Find peoples sequential and arbitrarily secured proxies!
import requests
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
class ProxyFinder:
def __init__(self):
self.username = 'XXX'
self.password = 'XXX'