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/python3 | |
import json | |
import requests | |
import sys | |
import os | |
def eprint(inp): | |
#print(inp) | |
return |
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
#!/bin/bash | |
worktree_root=PATH_TO/gcc-worktrees | |
gcc_root=$worktree_root/gcc | |
if [ -z $1 ]; then | |
echo "Usage: $0 <git commit ref> [target]" | |
exit 1 | |
fi | |
ref=$1 |
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
#!/bin/bash | |
# This is only intended to be used inside a scratch VM or test machine to build | |
# Fedora packages with _FORTIFY_SOURCE=3 to compare fortification with the | |
# current build. The script needs to be run as root since it installs packages. | |
set -ex | |
uid=$(id -u) | |
if [ $uid -ne 0 ]; then |
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
#!/bin/bash | |
# Run this from within the repo. Tested with glibc. | |
# This is what I have in my glibc git-config | |
# | |
# [pw] | |
# server = https://patchwork.sourceware.org/api/1.2/ | |
# project = glibc | |
# username = <my username> | |
# password = <my password> | |
# states = committed,accepted,superseded,deferred,rejected |
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
// This code is in Public domain. | |
MF_SCHEME_NAME = 3; | |
MF_NAV = 4; | |
MF_DATE = 5; | |
CACHE_NAME = '_mfcache'; | |
function initNAV() { | |
var response = UrlFetchApp.fetch("http://portal.amfiindia.com/spages/NAVAll.txt"); | |
var txt = response.getContentText(); |
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
# The raw CONTRIBUTED-BY file was generated by editing all files to remove the | |
# Contributed by lines and then running the following command: | |
# | |
# git diff -U1 | grep "^-" | sed -e 's/--- a\/\(.*\)/\1:/' -e 's/^-\(.*\)/\1\n/' >> CONTRIBUTED-BY | |
credit = {} | |
with open('CONTRIBUTED-BY', 'r') as contrfile: | |
curkey = '' | |
credit[''] = '' |
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
from glibc_shared_code import get_glibc_shared_code | |
import os | |
import stat | |
import re | |
shared_code = ['./' + f for f in | |
sum(get_glibc_shared_code('SHARED-FILES').values(), [])] | |
exclude_patterns = [ | |
r'.*ChangeLog.*', |
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
# Simple script to read httpd access.log and print a couple of statistics I care | |
# about. Usage: | |
# | |
# python3 process_accesslog.py <one or more log files> | |
# | |
# Copyright (c) 2019 Siddhesh Poyarekar | |
# | |
# This code is released under the MIT license: | |
# http://www.opensource.org/licenses/mit-license.php |