Skip to content

Instantly share code, notes, and snippets.

@scovetta
scovetta / update-to-https.py
Last active January 11, 2022 23:06
Basic script to scan a directory for .cmake and .json files and safely replace `http:` URLs with `https:`, where "safely" is defined as "making requests returns identical bytes".
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
The purpose of this script is to scan a directory (default: ports) for
port configuration files that contain http-based URLS, and convert
them to https if possible.
It only looks for files with an extension of .cmake or .json.
@scovetta
scovetta / npm-report-malware.py
Last active April 4, 2022 14:56
This script can be used to automate reporting of malware to the npm team, as a shortcut to npmjs.com/support.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This script will automate reporting malware to the npm team.
It automates reporting via https://npmjs.com/support.
Before using it, either ensure you have the Requests module installed, or install it with
`pip install requests`.
@scovetta
scovetta / compliments.json
Created August 11, 2022 04:51 — forked from E3V3A/compliments.json
MagicMirror compliments file
{
"anytime" : [
"Hey there sexy!",
"I hope your day is as nice as your face!",
"Have you been working out?",
"I'm lucky to be your mirror!",
"The Force is strong with you",
"If I could high five you... I would!",
"On a scale from 1 to 10, you're an 15!",
"Being awesome is hard, but you'll manage",
@scovetta
scovetta / compliments.json
Created August 11, 2022 05:18 — forked from ryck/compliments.json
MagicMirror compliments file
{
"anytime" : [
"Hey there sexy!",
"I hope your day is as nice as your face!",
"Have you been working out?",
"I'm lucky to be your mirror!",
"The Force is strong with you",
"If I could high five you... I would!",
"On a scale from 1 to 10, you're an 15!",
"Being awesome is hard, but you'll manage",
@scovetta
scovetta / LLM.md
Created March 29, 2023 04:28 — forked from rain-1/LLM.md
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@scovetta
scovetta / update-all.sh
Created March 24, 2024 13:10
Update all pip dependencies
#!/bin/bash
pip --disable-pip-version-check list --outdated --format=json | python -c "import json, sys; print('\n'.join([x['name'] for x in json.load(sys.stdin)]))" | xargs -n1 pip install -U