vimrcfu - Share your best vimrc snippets

Overview

vimrcfu

http://vimrcfu.com

Made with Laravel 4.2


Set up

  • Clone the repository into a directory on your local machine (development) or server (production)
  • Follow the configuration steps below
  • vimrcfu uses Memcache for caching. If you don't want to install Memcache, set driver to file in app/config/cache.php.
  • Run composer install
  • Run php artisan migrate
  • Don't forget to smile once in a while!

Configuration

For development

  • Create a GitHub application, for example "vimrcfu dev", with your local Homepage URL and Authorization callback URL (e.g. http://vimrcfu.loc and http://vimrcfu.loc/login) and note the Client ID and Client Secret GitHub generates for your.
  • Create the file .env.local.php in the directory where you cloned the repository with the following content:
return [
  'DB_HOST'       => 'localhost', # Fill in your database host
  'DB_NAME'       => 'vimrcfu',   # Fill in your database name
  'DB_USER'       => 'root',      # Fill in your database username
  'DB_PASSWORD'   => '',          # Fill in your database password
  'APP_KEY'       => '',          # Choose a very random string with at least 32 characters
  'GITHUB_CLIENT' => '',          # Fill in your GitHub Client ID
  'GITHUB_SECRET' => '',          # Fill in your GitHub Client Secret
  'PIWIK_URL'     => '',          # Fill in URL if you want Piwik tracking
  'PIWIK_ID'      => '',          # Piwik site id
   ];

For production

  • In your webserver set an environment variable called APP_ENV and give it a value of production.

    • For Apache put the following in your vhost configuration: SetEnv APP_ENV production
    • For nginx if you use php-fpm put the following in your location block: fastcgi_param APP_ENV production;
  • Create the file .env.php in the directory where you cloned the repository with the same contents as above, but fill in your production database settings, Client ID and Client Secret (create a new application on GitHub with the actual Homepage URL and Authorization callback URL for your production domain).

Maintainer

vimrcfu is currently maintained by Florian Beer. If you have any questions please don't hesitate to get in touch.

The best way to ask questions is via GitHub issues or via Twitter @azath0th.

Contributing

Please see CONTRIBUTING for details.

License

Creative Commons License
vimrcfu by Florian Beer | 42dev is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Please see LICENSE for more details.

You might also like...
Keep your forms alive, avoid `TokenMismatchException` by gently poking your Laravel app.

Poke Keep your forms alive, avoid TokenMismatchException by gently poking your Laravel app. Keep this package free Your support allows me to keep this

This plugin was created to help you migrate your existing gallery from your old site.
This plugin was created to help you migrate your existing gallery from your old site.

WP Migrate Gallery 1. Steps to Import Gallery 1.1. Install ACF PRO 1.2. Create CPT Gallery 1.3. Create Gallery Taxomy 1.4. Copy Gallery media files to

phpSysInfo: a customizable PHP script that displays information about your system nicely

phpSysInfo Copyright (c), 1999-2008, Uriah Welcome (sf.net/users/precision) Copyright (c), 1999-2009, Michael Cramer (sf.net/users/bigmichi1) Copyrigh

Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP
Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP

Audio Video Platform AVideo is a term that means absolutely nothing, or anything video. Since it doesn't mean anything the brand simply is identifiabl

Engintron for cPanel/WHM is the easiest way to integrate Nginx on your cPanel/WHM server.
Engintron for cPanel/WHM is the easiest way to integrate Nginx on your cPanel/WHM server.

Engintron for cPanel/WHM is the easiest way to integrate Nginx on your cPanel/WHM server. Engintron will improve the performance & web serving capacity of your server, while reducing CPU/RAM load at the same time. It does that by installing & configuring the popular Nginx webserver to act as a reverse caching proxy for static files (like CSS, JS, images etc.) with an additional micro-cache layer to significantly improve performance of dynamic content generated by CMSs like WordPress, Joomla or Drupal as well as forum software like vBulletin, phpBB, SMF or e-commerce solutions like Magento, OpenCart, PrestaShop and others.

NamelessMC is a free, easy to use & powerful website software for your Minecraft server
NamelessMC is a free, easy to use & powerful website software for your Minecraft server

NamelessMC - v2 pre-release 10 NamelessMC is a free, easy to use & powerful website software for your Minecraft server, which includes a large range o

Track the memory usage of your workers and display them in Filament.
Track the memory usage of your workers and display them in Filament.

Filament Memory Tracker Track the memory usage of your workers and display them in Filament. Installation Install the package via composer: composer r

Cloudlog is a self-hosted PHP application that allows you to log your amateur radio contacts anywhere.

Web based amateur radio logging application built using PHP & MySQL supports general station logging tasks from HF to Microwave with supporting applications to support CAT control.

Comments
  • [Request] proper code indentation in comments

    [Request] proper code indentation in comments

    The code blocks indentation is not respected in comments (ex: http://vimrcfu.com/snippet/112)

    Also, we can't add blank lines in code blocks without breaking all the style.

    opened by BenoitZugmeyer 5
  • [Proposal] Sort snippets by number of comments and total points

    [Proposal] Sort snippets by number of comments and total points

    I have been working on adding sorting functionality to the Browse Snippets page. It works as follows:

    • The Browse Snippets page is sorted by ID as is the current convention
    • A new Statistics menu is added to the right side. The items in that menu are as follows, with the first three being links, and the last three just displaying a count (as is presently displayed on the index page):
      • By Points
      • By Comments
      • By Date
      • Snippets
      • Comments
      • Users
    • The links in the Statistics menu take you to a page with the same formatting as Browse Snippets, but therein the snippets are sorted accordingly
      • There are 10 snippets shown per page
      • Pagination is supported
        • Laravel 4.x does not efficiently support combining groupBy and paginate. For this reason implemented the sorting using manual pagination. See http://laravel.com/docs/4.2/pagination#usage

    I think the new Statistics menu could replace the old entirely. Most people probably don't need an option to see Top Snippet as well as a list of all snippets in order of most votes. Same thinking applies to the Most Comments. I didn't make this change, though. Right now there are two different menus (the new and the old), depending on whether the user is on the home page or on the Browse Snippets pages.

    opened by sheluchin 3
  • [Request] Allow me to track/star/favorite snippets

    [Request] Allow me to track/star/favorite snippets

    It would be nice to have a way to "star" or "favorite" snippets, or just to be able to see the ones that I've upvoted before. That way I can look through and mark the ones I like and then come back and try them out later.

    enhancement 
    opened by Kazark 3
  • strip_tags vulnerable to cross-site-scripting

    strip_tags vulnerable to cross-site-scripting

    strip_tags is vulnerable to cross-site scripting (https://github.com/florianbeer/vimrcfu/blob/master/app/Vimrcfu/Text/Text.php). It does perfectly well in removing tags that are disallowed, but not attributes.

    I'd recommend a more stringent regex, only allowing a literal <b> (etc) versus using strip_tags.

    For reference: http://vimrcfu.com/snippet/80 and move your mouse anywhere on the page after the "description".

    Cheers, chrsm

    bug 
    opened by chrsm 1
Releases(v1.1)
  • v1.1(Nov 2, 2014)

    • RSS feed
    • Fixes XSS bug in HTML escaping (Ref #1)
    • Unifies indentation, checks coding style with php-cs-fixer
    • Some HTML, CSS and JavaScript optimizations
    • HTML5 validation
    • Updates composer.json with project details
    • Adds composer.lock to repository
    • Adds snake game to maintenance page
    • Adds Tags for Snippets
    • Smarter fulltext search results
    Source code(tar.gz)
    Source code(zip)
  • v1.0(Oct 29, 2014)

Owner
Florian Beer
Florian Beer
A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.

Lychee A great looking and easy-to-use photo-management-system. Since the 1st of April 2018 this project has moved to it's own Organisation (https://g

Tobias Reich 6.2k Jan 5, 2023
Self-hosted platform to keep and share your content: web links, posts, passwords and pictures.

Shaark is a self-hosted platform to keep and share your content: web links, posts, passwords and pictures. All of your data can be private, public or

MarceauKa 482 Dec 30, 2022
Web app to share your favorite photos, made with laravel

Kuro Photos Web app to share your favorite photos, made with laravel. This web app was made for educationals purposes only. I enjoyed so much learning

Julian Salcedo Torres 4 Dec 29, 2022
A simple tool that I share with you. This tool serves to make conversions from text to audio Google Translate.

A simple tool that I share with you. This tool serves to make conversions from text to audio Google Translate. You can download this conversion 100% for free. Good luck.

Afid Arifin 1 Oct 25, 2021
A full-featured home hosted Cloud Drive, Personal Assistant, App Launcher, File Converter, Streamer, Share Tool & More!

A Fully Featured home-hosted Cloud Storage platform and Personal Assistant that Converts files, OCR's images & documents, Creates archives, Scans for viruses, Protects your server, Keeps itself up-to-date, and Runs your own AppLauncher!

Justin Grimes 178 Dec 26, 2022
The best kernel for simple apps

Sunflower Sunflower is a super small application kernel that is used to build a dependency injection container. This kernel is useful for microservice

Tobias Nyholm 14 Aug 14, 2022
eMarket Online Store. It is a free online store engine. Make the best online shop with us.

eMarket Online Store. It is a free online store engine. Make the best online shop with us. Join our Open Source community. Together we will make the best free e-commerce solution.

Alexander 54 Oct 22, 2022
This is a Task Manager system for managing your task. You can categorize your tasks and upload music to the project And a whole host of other features

taskManager Login and register Each user can have their own task Categorize tasks by creating folders Edit and Delete Folders Search for Tasks Show nu

masoudharooni 11 May 22, 2022
The simplest, most intuitive way to host your photos on your website.

Gallery 3.1+ (development version) About Gallery 3 is a web based software product that lets you manage your photos on your own website. You must have

Brad Dutton 103 Dec 22, 2022
Our team created for you one of the most innovative CRM systems that supports mainly business processes and allows for customization according to your needs. Be ahead of your competition and implement YetiForce!

We design an innovative CRM system that is dedicated for large and medium sized companies. We dedicate it to everyone who values open source software,

YetiForce Sp. z o.o. 1.3k Jan 8, 2023