Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

llmc() { | |
local system_prompt='Output a command that I can run in a ZSH terminal on macOS to accomplish the following task. Try to make the command self-documenting, using the long version of flags where possible. Output the command first enclosed in a "```zsh" codeblock followed by a concise explanation of how it accomplishes it.' | |
local temp_file=$(mktemp) | |
local capturing=true | |
local command_buffer="" | |
local first_line=true | |
local cleaned_up=false # Flag to indicate whether cleanup has been run | |
cleanup() { | |
# Only run cleanup if it hasn't been done yet |
name: Security audit | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
paths: | |
- '**/Cargo.toml' | |
- '**/Cargo.lock' | |
jobs: | |
security_audit: |
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
// Converts 15 char salesforce id to 18 char id | |
static String convertto18CharId(String original15charId){ | |
if(original15charId == null || original15charId.isEmpty()) return null; | |
original15charId = original15charId.trim(); | |
if(original15charId.length() != 15) return null; | |
final String BASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456"; | |
StringBuilder result = new StringBuilder(); | |
Public with sharing virtual class RestClient { | |
Public class RestClientException extends Exception {} | |
/* | |
* class variable creation - DO NOT EDIT | |
*/ | |
Public Map<String,String> headers; | |
Public String url; | |
Public String method; |
public with sharing class ChatterUtils { | |
// makes a simple chatter text post to the specified user from the running user | |
public static void simpleTextPost(Id userId, String postText) { | |
ConnectApi.FeedType feedType = ConnectApi.FeedType.UserProfile; | |
ConnectApi.MessageBodyInput messageInput = new ConnectApi.MessageBodyInput(); | |
messageInput.messageSegments = new List<ConnectApi.MessageSegmentInput>(); | |
// Derived from http://paulbattisson.com/?p=80 | |
String output = '\n<types>\n'; | |
List<EmailTemplate> templates = [Select e.FolderId, e.DeveloperName From EmailTemplate e]; | |
Map<Id, Folder> folders = new Map<Id, Folder>([Select f.Id, f.DeveloperName From Folder f where f.DeveloperName != null]); | |
Set<Id> folderIds = new Set<Id>(); | |
folderIds.addAll(folders.keySet()); | |
for (EmailTemplate template: templates) { | |
if (folders.keySet().contains(template.FolderId)) { |