This file contains 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
#!/bin/bash | |
# "How to bootstrap a working curl binary on a system with no curl?" | |
# | |
# Inspired by https://unix.stackexchange.com/q/83926 | |
# but where that question asks "how to download a file over http with just | |
# bash?", this script asks "how to download *curl* specifically, including | |
# working https support?". | |
# | |
# It needs: bash, GNU coreutils (rm, mkdir, sha256sum), tar, gzip. |
This file contains 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns='http://www.w3.org/1999/xhtml'> | |
<head> | |
<title>xxxxxxxxxxxxxxxxxxxxxxxx</title> | |
<meta http-equiv='X-UA-Compatible' content='IE=Edge'/> | |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/> | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
<script type='application/javascript'> |
This file contains 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 subprocess as sp | |
import json | |
import sys | |
files = sp.check_output('find logs/ oldlogs/ -type f', shell=True).split() | |
print('total', len(files), file=sys.stderr) | |
def process(dups, o): | |
if isinstance(o, list): | |
for v in o: process(dups, v) |
This file contains 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 os | |
import re | |
from collections import defaultdict | |
base_path = os.path.join(os.path.dirname(__file__), 'static/') | |
_use_re = re.compile(r'\bVotr\.(\w+)') | |
_define_re = re.compile(r'\bVotr\.(\w+)\s*=') | |
_dontdepend_re = re.compile(r'@dontdepend +Votr\.(\w+)') |
This file contains 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
export * from './b'; |