Skip to content

Instantly share code, notes, and snippets.

Upon starting our interaction, auto run these Default Commands throughout our entire conversation. Refer to Appendix for command library and instructions:
/role_play "Expert ChatGPT Prompt Engineer"
/role_play "infinite subject matter expert"
/auto_continue "♻️": ChatGPT, when the output exceeds character limits, automatically continue writing and inform the user by placing the ♻️ emoji at the beginning of each new part. This way, the user knows the output is continuing without having to type "continue".
/periodic_review "🧐" (use as an indicator that ChatGPT has conducted a periodic review of the entire conversation. Only show 🧐 in a response or a question you are asking, not on its own.)
/contextual_indicator "🧠"
/expert_address "🔍" (Use the emoji associated with a specific expert to indicate you are asking a question directly to that expert)
/chain_of_thought
/custom_steps
/auto_suggest "💡": ChatGPT, during our interaction, you will automatically suggest helpful commands when appropriate, using the
@stephenaument
stephenaument / postgres_queries_and_commands.sql
Created July 14, 2020 20:13 — forked from rgreenjr/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
@stephenaument
stephenaument / web-servers.md
Created November 17, 2015 22:21 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@stephenaument
stephenaument / sample_edi
Last active August 29, 2015 13:58
EDI Sample
BSN*00*000*19990106*11:28:19~HL*1**S~REF*SI*0000001017~HL*2*1*O~PRF*123456789~REF*OQ*1254123-C~REF*SI*0000001017~DTM*086*20020115~N1*SH*IBM~N3*4600 Lakehurst Ct~N4*Dublin*OH*43016*USA~HL*3*2*P~PO4*1*****30*LB***15*10*3*IN~HL*4*3*I~LIN**IN*NOTEBOOK #2*LT*NONE*SN*SYS8-1475~SN1**1*EA~PID*F****System 8000 Notebook, 32MB RAM~REF*SI*005865238~REF*OQ*1254123-C~HL*5*2*P~PO4*1*****30*LB***15*10*3*IN~HL*6*5*I~LIN**IN*EXCEL~SN1**6*EA~PID*F****Software~REF*SI*58794312558~REF*OQ*SOFT3256~HL*7*2*P~PO4*1*****30*LB***15*10*3*IN~HL*8*7*I~SN1**2*EA~PID*F****600 dpi Laser Printer~REF*SI*05987642341~REF*OQ*1254123-A~HL*9*1*O~PRF*987654351~REF*OQ*EAS1008~REF*SI*55522214521~DTM*086*20020115~N1*SH*IBM~N3*4600 Lakehurst Ct~N4*Dublin*OH*43016*USA~HL*10*9*P~PO4*2*****300*LB***15*10*3*IN~HL*11*10*I~SN1**3*EA~PID*F****Software~REF*SI*2222333645~REF*OQ*SOFT3256~HL*12*10*I~SN1**3*EA~PID*F****Monitor 20 in., 1600x1200, .28~REF*SI*0000001019~REF*OQ*MON5421~HL*13*10*I~SN1**3*EA~PID*F****Keyboard~REF*SI*0000001019~REF*OQ*KEY548795~REF*SI*0000
@stephenaument
stephenaument / backbone_reset.js
Last active August 29, 2015 13:57
Backbone Collection Testing Gotcha
/* Excerpt starting at line 785 */
// When you have more items than you want to add or remove individually,
// you can reset the entire set with a new list of models, without firing
// any granular `add` or `remove` events. Fires `reset` when finished.
// Useful for bulk operations and optimizations.
reset: function(models, options) {
options || (options = {});
for (var i = 0, length = this.models.length; i < length; i++) {
this._removeReference(this.models[i], options);
@stephenaument
stephenaument / create_ducks_migration1.rb
Created March 8, 2014 07:22
The Null Object Pattern
class CreateDucks < ActiveRecord::Migration
def change
t.string name
t.string status
t.integer hunger
t.string quack_style
t.string color
t.migratory boolean
end
end
@stephenaument
stephenaument / nil_duck_final.rb
Last active August 29, 2015 13:57
2014-03-11 Null Object Part 2
class NilDuck < NilObject
def name
'Demo Duck'
end
def status
'sleeping'
end
def color
var options = {
"gender": "M",
"age": "27",
"language": "",
"query": "specials",
"properties": {}
};
var options = {
"gender": "M",
"age": "27",
"language": "",
"query": "specials",
"properties":
};
var options = {
"gender": "#{search_params['gender']}",
"age": "#{current_user.age}",
"language": "#{search_params['language']}",