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
#!/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,
@lukehinds
lukehinds / gpt-llama2-dataset-and-trainer.ipynb
Last active September 8, 2023 20:27
gpt-llama2-dataset-and-trainer.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"action": "published",
"package": {
"id": 5581007,
"name": "demo-repo-go",
"namespace": "stacklok",
"description": "",
"ecosystem": "CONTAINER",
"package_type": "CONTAINER",
"html_url": "https://github.com/stacklok/packages/5581007",
{
"action": "opened",
"number": 31,
"pull_request": {
"url": "https://api.github.com/repos/lukehinds/bad-npm/pulls/31",
"id": 1484337637,
"node_id": "PR_kwDOJ8ezyc5YeTHl",
"html_url": "https://github.com/lukehinds/bad-npm/pull/31",
"diff_url": "https://github.com/lukehinds/bad-npm/pull/31.diff",
"patch_url": "https://github.com/lukehinds/bad-npm/pull/31.patch",
#!/bin/bash
# Default values
MODEL="llama-2-13b-chat.ggmlv3.q4_0.bin"
THREADS=8
NGL=1
COLOR="--color"
C_FLAG=2048
TEMP=0.7
REPEAT_PENALTY=1.1