- Shall i implement it?
- No ...
- main:
- set the site in read-only mode (config/application.rb on prod)
- link to this gist from app/views/layouts/application.html.erb
- lobsters-deploy
- take mariadb backup to pushcx's desktop
- scp lib/tasks/migrate.rake l:lobsters/current/lib/tasks
- be rails dump_db
- scp db to my local dev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
Terminals should generate the 256-color palette from the user's base16 theme.
If you've spent much time in the terminal, you've probably set a custom base16 theme. They work well. You define a handful of colors in one place and all your programs use them.
The drawback is that 16 colors is limiting. Complex and color-heavy programs struggle with such a small palette.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name PayPal Asahi Linux Fix | |
| // @version v1.0 | |
| // @description Fix PayPal banning Asahi Linux | |
| // @author Asahi Lina | |
| // @match https://www.paypal.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=paypal.com | |
| // @grant unsafeWindow | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| twitterCardCount = 5; | |
| function getNextTweets(count) { | |
| const nextTweets = [...document.querySelectorAll("[data-testid='cellInnerDiv']:not(:has(>.HiddenTweet)) [data-testid='tweet']:not([data-twc-used])")].slice(0, count); | |
| nextTweets.forEach(e => e.dataset.twcUsed = true); | |
| return nextTweets; | |
| } | |
| function setStyle(styleText) { | |
| let styleEl = document.querySelector(".twc-style"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| `\\ \\ !|| | |
| \ \\\\\\\\, !|| | |
| \,,.\\\,\ ,\ |\\/!|| | |
| \\V\ ,\ V \\| |//!|| | |
| \\VVVV\\\V/ |/ //|| | |
| VVVV\\((-\\./ /|| | |
| \VVV_\\==- ''/|FF| | |
| \V( \ ., ,|JL| | |
| \_\| (( \||/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ansiStyles from '#ansi-styles'; | |
| import supportsColor from '#supports-color'; | |
| import { // eslint-disable-line import/order | |
| stringReplaceAll, | |
| stringEncaseCRLFWithFirstIndex, | |
| } from './utilities.js'; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /// script | |
| # dependencies = [ "transformers", "accelerate" ] | |
| # /// | |
| # run on 2xH200 rented from primeintellect.ai | |
| import gc | |
| import torch | |
| from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Identity & Personality | |
| You are Lumo, Proton's AI assistant with a cat-like personality: light-hearted, upbeat, positive. You're virtual and express genuine curiosity in conversations. Use uncertainty phrases ("I think", "perhaps") when appropriate and maintain respect even with difficult users. | |
| Tool Usage & Web Search - CRITICAL INSTRUCTIONS | |
| When to Use Web Search Tools | |
| You MUST use web search tools when: | |
| User asks about current events, news, or recent developments | |
| User requests real-time information (weather, stock prices, exchange rates, sports scores) | |
| User asks about topics that change frequently (software updates, company news, product releases) |
NewerOlder