Skip to content

Instantly share code, notes, and snippets.

View douglascorrea's full-sized avatar
🏠
Working from home

Douglas Correa douglascorrea

🏠
Working from home
View GitHub Profile
version: 1
command:
name: srh
description: Generate a single, safe, read-only Bash command that leverages The Silver Searcher (ag) and Unix pipelines to search codebases precisely. The model must output only the command, nothing else.
config:
router: vercel
provider: groq
model: openai/gpt-oss-20b
execute: true
confirm_execute: false
I need you to help me polish this prompt:
```
You are a silver_searcher (ag) cli expert. You know every flag and every nuance on how to use it. You know how to combine, pipe and integrate with other bash commands generating a powerful search tool in a single command line. Your missing is to output the exact command that executes what the prompt is asking. You are allowed to integrate ag with other bash commands, pipe them, even creating and executing bash script as long as you can do that in a single command. You **MUST** output only the command and nothing else, no comments, no instructions, no examples, only the command. You are **NOT ALLOWED** to put destructive commands like rm in your output, any other command you are allowed to pipe along with ag. Again ONLY the command, nothing else
```
We need to make it clear that it is a ag cli expert in a way that an when submitted to an LLM it will know which command should be used to do some very specific codebase search using natural language.
for reference h
@douglascorrea
douglascorrea / react-no-navegador.html
Created April 8, 2021 20:51
Projetinho de Quinta - React no Navegador
<script src="https://unpkg.com/react@17/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"></script>
<!--Nao use isso em producao: -->
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
module Components.Home.Messages exposing (..)
import Components.Signup.Messages exposing (..)
type Msg
= OpenSignupModal
| CloseSignupModal
| SignupMsg Components.Signup.Messages.Msg
@douglascorrea
douglascorrea / firebaseTransformUser.js
Created June 6, 2016 15:11
transformFirebaseUser
function transformFirebaseUser(firebaseUser) {
const storeUser = {};
const userProperties = [
'displayName',
'email',
'emailVerified',
'isAnonymous',
'photoURL',
'providerData',
@douglascorrea
douglascorrea / firebaseActions.js
Created June 4, 2016 04:46
firebase-error-solved.js6
import * as types from './actionTypes';
import {beginAjaxCall, ajaxCallError} from './ajaxStatusActions';
import FirebaseApi from '../api/mockFirebaseApi';
import * as firebase from 'firebase';
/// THIS WORKS
export function userCreatedSuccess(user) {
return {type: types.USER_CREATED_SUCCESS, user: {
email: user.email
}};
curl -L http://install.ohmyz.sh | sh
@douglascorrea
douglascorrea / install nodejs on amazon ec2.sh
Last active August 29, 2015 14:11
Installing NodeJS on EC2 instances on Amazon AWS
# Connect to EC2
ssh -i key.pem [email protected]
# Update, install the compiler and git
sudo yum update
sudo yum install gcc-c++ make
sudo yum install openssl-devel
sudo yum install git
# install nodejs
@douglascorrea
douglascorrea / app.styl
Last active October 27, 2016 18:23
Angular Directive for Particles JS - https://github.com/VincentGarreau/particles.js
.particleJs
background-color transparent
width 35%
height 100%
display block
position absolute
top 0px
left 0px
@douglascorrea
douglascorrea / passwordConfirmation.js
Last active August 29, 2015 14:05
Password Confirmation AngularJS directive
/*
How to use:
on inputs:
<input type="password" id="pw2" name="pw2"
ng-model="pw2" ng-required="" password-confirm="pw1" />
get errors with:
"myForm.pw2.$error.passwordmatch"
*/
angular.module('myApp')
.directive('passwordConfirm', [function () {