This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Claude Code CLI Environment Variables | |
| # This file lists all environment variables used in cli.js with explanations | |
| process.env.__CFB - Internal Node.js buffer flag | |
| process.env.__MINIMATCH_TESTING_PLATFORM__ - Testing flag for minimatch library platform detection | |
| process.env.ALACRITTY_LOG - Alacritty terminal emulator log level configuration | |
| process.env.ALIYUN_REGION_ID - Alibaba Cloud region identifier for Chinese cloud services | |
| process.env.ANTHROPIC_API_KEY - Primary API key for authenticating with Anthropic's Claude API | |
| process.env.ANTHROPIC_AUTH_TOKEN - Alternative authentication token for Anthropic services | |
| process.env.ANTHROPIC_BASE_URL - Custom base URL for Anthropic API endpoints |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DOMAIN-SUFFIX,openai.com | |
| DOMAIN-SUFFIX,sentry.io | |
| DOMAIN-SUFFIX,pay.openai.com | |
| DOMAIN-SUFFIX,identrust.com | |
| DOMAIN,openaiapi-site.azureedge.net | |
| DOMAIN-SUFFIX,chat.openai.com | |
| DOMAIN-SUFFIX,challenges.cloudflare.com | |
| DOMAIN-SUFFIX,auth0.openai.com | |
| DOMAIN-SUFFIX,platform.openai.com | |
| # Add ai.com |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import datetime | |
| ################################################################### | |
| # | |
| # Showing the way bits, difficulty, target, and hash work together. | |
| # | |
| ################################################################### | |
| print "Calculating target from bits, verifying the block's hash is valid, and verify the calculated difficulty." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| location / { | |
| rewrite ^(.+)/$ $1 permanent; | |
| rewrite ^(.+)/index\.html$ $1 permanent; | |
| rewrite ^(.+)\.html$ $1 permanent; | |
| # Allow CORS for static files | |
| add_header Access-Control-Allow-Origin $cors_origin; | |
| add_header Access-Control-Allow-Methods "GET, OPTIONS"; | |
| location ~* ^/files/.*.(htm|html|svg|xml) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
| # Written by Nathan Hamiel (2010) | |
| from http.server import HTTPServer, BaseHTTPRequestHandler | |
| from optparse import OptionParser | |
| class RequestHandler(BaseHTTPRequestHandler): | |
| def do_GET(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pip install selenium | |
| pip install xvfbwrapper | |
| yum install -y firefox | |
| # Install the geckodriver | |
| cd /tmp | |
| curl -SO https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz | tar zxv - -C /usr/sbin | |
| yum install -y xorg-x11-server-Xvfb | |
| # yum install -y xorg-x11-Xvfb | |
| # pip install pyvirtualdisplay |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Sample scraper script | |
| See: https://impythonist.wordpress.com/2015/01/06/ultimate-guide-for-scraping-javascript-rendered-web-pages/ | |
| """ | |
| # standard imports | |
| import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # You will need to run these with superuser permissions. | |
| # Either prefix `sudo` to all commands, or switch user | |
| # Be very careful when you switch user | |
| sudo su - root | |
| # Update all the packages | |
| yum update | |
| # Install the basics - python27, gcc, svn, git, httpd, make, uuid |
NewerOlder