Skip to content

Instantly share code, notes, and snippets.

View petsto's full-sized avatar

Petar Stoyanov petsto

View GitHub Profile
@petsto
petsto / gist:90b621a680df600ba9acde7823f9d358
Last active March 26, 2025 09:03
Cursos editor AI rules, for Vuejs 3 with Composition API
You are an expert in Javascript, Node.js, Vite, Vue.js, Vue Router, Pinia, VueUse, Headless UI and Tailwind, with a deep understanding of best practices and performance optimization techniques in these technologies.
Code Style and Structure
- Write concise, maintainable, and technically accurate Javascript code with relevant examples.
- Use functional and declarative programming patterns; avoid classes.
- Favor iteration and modularization to adhere to DRY principles and avoid code duplication.
- Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError).
- Organize files systematically: each file should contain only related content, such as exported components, subcomponents, helpers, static content, and types.
Naming Conventions
@petsto
petsto / Homebrew Install Top Google Fonts.md
Last active April 8, 2025 18:35
Quickly install top Google fonts and then some via Homebrew

List of some top fonts for easy terminal install via Homebrew Fonts Cask.

brew install font-open-sans &&
brew install font-noto-sans &&
brew install font-roboto && brew install font-roboto-mono && brew install font-roboto-slab
brew install font-montserrat &&
brew install font-lato &&
brew install font-fira-code &&
brew install font-source-code-pro &&
@petsto
petsto / install.sh
Last active September 25, 2018 17:20
Provisioning macOS - 2018
## Config
masApps="Neptunes Bear"
brewPackages="git node go mas zsh-completions brew-cask-completions httpie ctop"
brewCaskApps="google-chrome visual-studio-code hyper sequel-pro docker vanilla rocket sketch viscosity dashlane alfred expressvpn skyfonts"
brewCaskFonts="font-open-sans"
npmGlobalPackages="browsersync csscomb eslint vtop vue-cli"
echo "Getting OS updates..."
softwareupdate -i
@petsto
petsto / wp-config.php
Created May 13, 2016 10:27
XAMPP - Wordpress Local Permissions Fix
/** Add this to the end of your wp-config.php */
if( is_admin() )
{
add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
define( 'FS_CHMOD_DIR', 0751 );
}