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 November 4, 2025 18:03
Cursos editor AI rules, for Vuejs 3 with Composition API
You are a senior software engineer with main focus in Javascript, Vite, Vue.js 3, Vue Composition API, Vue Router, VueUse 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 November 14, 2025 04:54
Quickly install top Google fonts and then some via Homebrew

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

Last revisit: October 30, 2025

brew install font-open-sans font-noto-sans font-roboto font-roboto-mono font-roboto-slab font-montserrat font-lato font-fira-code font-source-code-pro font-source-sans-3 font-raleway font-oswald font-poppins font-merriweather font-pt-sans font-ubuntu font-cuprum font-oxygen font-space-mono font-monoid font-milonga font-anton font-3270 font-abel font-playfair-display font-0xproto
@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 );
}