Skip to content

Instantly share code, notes, and snippets.

View TheRightChoyce's full-sized avatar

therightchoyce TheRightChoyce

View GitHub Profile
@TheRightChoyce
TheRightChoyce / os_refresh.py
Created February 8, 2022 23:40
Update metadata on a whole collection
# OpenSea Refresher
# Best if run cooperatively, once or twice a day
# Worst if run individually, surely attracting attention
from unittest import result
import requests
import time
collection_addresses = [
'0x...',
@TheRightChoyce
TheRightChoyce / gist:4208678
Created December 4, 2012 21:06
Basic nginx configuration to run a node server internally on port 3000
#
# Basic nginx config for a node.js server
server {
root /var/www;
index example.js;
server_name localhost;
location / {
proxy_pass http://127.0.0.1:3000;
@TheRightChoyce
TheRightChoyce / inline_urls.js
Created April 3, 2012 04:02
Debating on which syntax is friendlier for my jsRestAPI (assuming jquery)
$.api.connect('http://localhost/jsRestApiWrapper/api/csharp', {/* options */ } );
$.api('/person/create/', {
model: {FirstName: 'test', LastName: 'test', Email: '[email protected]'}
, success: function(data) { /* do something */ }
});
$.api('/person/get/', {
success: function(data) { /* do something */ }
});