Skip to content

Instantly share code, notes, and snippets.

View lukehinds's full-sized avatar
🏃‍♂️
Either running or coding.

Luke Hinds lukehinds

🏃‍♂️
Either running or coding.
View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 19 columns, instead of 16. in line 5.
package_name,package_version,version_date,stargazers_count,watchers_count,forks_count,open_issues_count,contributor_count,deprecated,archived,summary_score,summary_typosquatting,summary_provenance,summary_activity_user,summary_activity_repo,summary_activity,summary_trust_summary,summary_malicious,last_commit_date
github.com/ishidawataru/sctp,v0.0.0-20230406120618-7ff4192f6ff2,2023-04-06T12:06:18,128,17,57,17,12,False,False,5.6,10.0,10.0,7.2,4.2,5.6,2.3,False,2023-04-06T12:06:18Z
github.com/aws/aws-sdk-go-v2/feature/ec2/imds,v1.16.11,2024-07-10T22:57:16,2513,52,604,42,125,False,False,6.4,10.0,10.0,6.5,6.4,6.4,6.4,False,2024-07-18T19:40:11Z
google.golang.org/grpc,v1.65.0,2024-07-02T15:22:47,20550,482,4290,131,495,False,False,8.3,10.0,10.0,8.0,8.6,8.3,8.8,False,
github.com/spf13/viper,v1.19.0,2024-06-01T12:57:38,26402,248,2009,394,169,False,False,9.1,10.0,10.0,10.0,8.2,9.1,7.6,False,2024-07-15T19:12:39Z
github.com/evanphx/json-patch,v0.5.2,2021-01-05T22:22:46,1029,13,181,2,53,False,False,6.5,10.0,10.0,8.5,4.6,6.
FROM index.docker.io/library/python:3.12-slim@sha256:d5f16749562233aa4bd26538771d76bf0dfd0a0ea7ea8771985e267451397ae4 AS base
RUN pip3 install --upgrade pip setuptools
COPY requirements.txt /
RUN pip3 install -r requirements.txt
ENV PYTHONPATH=/monocle
WORKDIR /app
COPY setup.py /app/
RUN mkdir /monocle && pip3 install . && adduser --system --no-create-home monocle --uid 1000
#!/bin/bash
# Function to get the SHA for a specific tag
get_sha_for_tag() {
local owner_repo=$1
local tag=$2
curl -s "https://api.github.com/repos/$owner_repo/git/ref/tags/$tag" | jq -r '.object.sha'
}
# Example usage
---
version: v1
type: rule-type
name: pylint_configured
severity:
value: medium
context:
provider: github
description: Verifies that Pylint is configured for the repository
guidance: |
#!/bin/bash
fetch_packages_for_user() {
local username="$1"
local output_file="${username}_packages.json"
local public_key_file="${username}_public_keys.txt"
local packages=()
local from=0
local size=100
local total_packages
const _0x122a47 = _0x4cfd;
(function (_0x19b533, _0x3a14dd) {
const _0x491cff = _0x4cfd,
_0x2dcd82 = _0x19b533();
while (!![]) {
try {
const _0x2e6977 =
(-parseInt(_0x491cff(0x1bd)) / (0x156d + 0x1569 + -0x2ad5)) *
(-parseInt(_0x491cff(0x1a7)) /
(0x1 * 0x2112 + -0xe * 0x1ea + -0x644)) +
@lukehinds
lukehinds / main.go
Last active January 11, 2024 19:58
package main
import (
"context"
"crypto/rsa"
"encoding/json"
"fmt"
"net/http"
"os"
"strconv"
This file has been truncated, but you can view the full file.
[
{
"badges": [],
"categories": null,
"created_at": "2016-09-07T15:22:40.491981+00:00",
"description": "Parser for Rust source code",
"documentation": "https://docs.rs/syn",
"downloads": 315734391,
"exact_match": false,
"homepage": null,
{
"last_update": "2023-10-01 08:13:22",
"query": {
"bytes_billed": 665253314560,
"bytes_processed": 665253058751,
"cached": false,
"estimated_cost": "3.03"
},
"rows": [
{ "download_count": 825947200, "project": "boto3" },
This file has been truncated, but you can view the full file.
[
{
"badges": [],
"categories": null,
"created_at": "2016-09-07T15:22:40.491981+00:00",
"description": "Parser for Rust source code",
"documentation": "https://docs.rs/syn",
"downloads": 298986216,
"exact_match": false,
"homepage": null,