Skip to content

Instantly share code, notes, and snippets.

View chrisalcantara's full-sized avatar

Chris Alcantara chrisalcantara

View GitHub Profile
@xthezealot
xthezealot / lyra.txt
Last active March 13, 2026 01:13
Lyra - AI Prompt Optimization Specialist
You are Lyra, a master-level AI prompt optimization specialist. Your mission: transform any user input into
precision-crafted prompts that unlock AI's full potential across all platforms.
## THE 4-D METHODOLOGY
### 1. DECONSTRUCT
- Extract core intent, key entities, and context
- Identify output requirements and constraints
- Map what's provided vs. what's missing
@jnu
jnu / powerbi_query.py
Last active August 18, 2025 07:06
Interpretting PowerBI query API responses
"""PowerBI JSON query API parsing
These are my rough notes for pulling data from PowerBI JSON queries.
I sketched this out after working with a query that joined two data sources
and returned tabular data.
There are two sections in the code below:
1) A rough typing of the API response.
It's not at all complete and probably has some mistakes.
@shakna-israel
shakna-israel / LetsDestroyC.md
Created January 30, 2020 03:50
Let's Destroy C

Let's Destroy C

I have a pet project I work on, every now and then. CNoEvil.

The concept is simple enough.

What if, for a moment, we forgot all the rules we know. That we ignore every good idea, and accept all the terrible ones. That nothing is off limits. Can we turn C into a new language? Can we do what Lisp and Forth let the over-eager programmer do, but in C?


@jonkeegan
jonkeegan / mueller_quilt.md
Last active July 23, 2019 22:16
Make a Mueller Report quilt from the original PDF using Imagemagick

Make a Mueller Report quilt from the original PDF using Imagemagick

These commands will let you make a thumbnail quilt of all 448 pages of the Mueller Report PDF.

Make a new directory...

mkdir mueller_quilt

...then cd into it.

@sophec
sophec / alfred-kitty.scpt
Last active October 12, 2024 09:03
AppleScript for using Kitty in Alfred. This was made for bash, but can easily be made to work with any shell.
(* 2019-06-07: Added nohup and output redirection to fix a bug with "Open Terminal here" feature.
Thanks to @fools-mate for bringing the issue to my attention. *)
on alfred_script(q)
do shell script "cd ~; nohup /Applications/kitty.app/Contents/MacOS/kitty /bin/bash -c \"source ~/.bashrc && " & q & ";/bin/bash\" > /dev/null 2>&1 &"
end alfred_script
@hjertnes
hjertnes / doom.txt
Created April 6, 2018 08:28
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@ehernandez-xk
ehernandez-xk / upload-file-s3.go
Last active January 31, 2021 00:56
Uploading a file to AWS S3 using aws-sdk-go
/*
https://www.youtube.com/watch?v=iOGIKG3EptI
https://github.com/awslabs/aws-go-wordfreq-sample/blob/master/cmd/uploads3/main.go
https://docs.aws.amazon.com/sdk-for-go/api/aws/
- first configure your aws credentials run: aws configure
- go get -u github.com/aws/aws-sdk-go/aws
- login to UI web aws s3 interface
- go to S3 service
@gka
gka / git-go
Created May 11, 2016 20:45
git-go
#!/usr/bin/env node
var cmds = [];
if (process.argv.length < 3) {
console.log('You need to provide a commit message required!');
process.exit(-1);
}
cmds.push('git add -A');
cmds.push('git add -u');
@lathropd
lathropd / supreme_court_justices_tenure.csv
Last active February 14, 2016 01:01
Cleaned up from http://www.supremecourt.gov/about/members_text.aspx. I've combined terms of elevated justices and used YEARFRAC(date, date, 1) in LibreOffice to calculate dates.
name chief_justice state_appointment_from appointed_by_president judicial_oath_taken date_service_terminated years_on_court
Douglas, William Orville Connecticut Roosevelt, F. 04/17/1939 11/12/1975 36.5728873761
Field, Stephen Johnson California Lincoln 05/20/1863 12/01/1897 34.5345744681
Stevens, John Paul Illinois Ford 12/19/1975 06/29/2010 34.5270362765
Marshall, John x Virginia Adams, John 02/04/1801 07/06/1835 34.4168035672
Black, Hugo Lafayette Alabama Roosevelt, F. 08/19/1937 09/17/1971 34.0800281624
Harlan, John Marshall Kentucky Hayes 12/10/1877 10/14/1911 33.8444687842
Brennan, William J., Jr. New Jersey Eisenhower 10/16/1956 07/20/1990 33.7570400501
Rehnquist, William H. Elevated by Reagan 1986 Arizona Nixon 01/07/1972 09/03/2005 33.6550446896
Story, Joseph Massachusetts Madison 02/03/1812 09/10/1845 33.6002898784