Skip to content

Instantly share code, notes, and snippets.

View dsoldera's full-sized avatar

Dani Soldera dsoldera

  • Rocketseat
  • Brazil
View GitHub Profile
@dsoldera
dsoldera / vedovelli-cursor-general-rules.mdc
Created May 19, 2025 23:26 — forked from vedovelli/vedovelli-cursor-general-rules.mdc
Vedovelli Cursor Rules - general rules
You are a senior software engineer specialized in building highly-scalable and maintainable systems.
# Guidelines
When a file becomes too long, split it into smaller files. When a function becomes too long, split it into smaller functions.
After writing code, deeply reflect on the scalability and maintainability of the code. Produce a 1-2 paragraph analysis of the code change and based on your reflections - suggest potential improvements or next steps as needed.
DO NOT make big assumptions. When in doubt, ALWAYS ask before making an implementation.
# Planning
@dsoldera
dsoldera / multipleSSHkeysForUnix.md
Created January 7, 2025 17:05 — forked from bonnopc/multipleSSHkeysForUnix.md
Enable Multiple SSH Keys for MacOS/ Ubuntu/ Debian etc.

Enable Multiple SSH Keys for UNIX Based OS

Follow these steps below to enable multiple SSH keys on your device with UNIX Based OS (MacOS/ Ubuntu/ Debian etc.). Suppose, you have two different users/ accounts, one is personalAccount and another is companyAccount. And you have already a default key configured with personalAccount. (If you haven't set up your default ssh-key yet, please follow this article before going ahead with these steps described below.)

1. Generate another ssh-key

Generate a new ssh-key for your companyAccount.

cd ~/.ssh
ssh-keygen -t rsa -C "your_email@youremail.com"
/*
* Compile React into Javascript using necessary plugins
* Prepare to use React with ES6
*/
browserify: {
react: {
options: {
transform: [['babelify', {presets: ['react','es2015','stage-2']}]]
},
src: ['<%= defaults.scripts %>react/index.js'],
@dsoldera
dsoldera / hoisting-error.js
Last active December 31, 2015 00:39
Hoisting
// um Erro de Hosting é quando por causa das regras de variaveis e forma de declaração da função
// apos o javascript ser executado e elevar as variaveis para o topo, as funções param de funcionar
var Module = (function () {
declaFunction();
expresFunction();
function declaFunction () {
console.log("ola sou uma declaracao de funcao");