Skip to content

Instantly share code, notes, and snippets.

View Messa1's full-sized avatar
🎯
Focusing

Matthias Gmeiner Messa1

🎯
Focusing
View GitHub Profile
@coulterpeterson
coulterpeterson / readme.md
Last active October 2, 2024 18:30
How To Import a Bedrock WordPress Project Into LocalWP

How To Import a Bedrock WordPress Project Into LocalWP

  1. Per the official doc from Bedrock, start by creating a new site in Local.
  2. Use the "open site folder" or "open site shell" option, delete the public folder in \Local Sites\YOURSITE\app\
  3. While in \Local Sites\YOURSITE\app, clone your project down into this folder.
  4. Open the .env file in app\YOURREPO\src and ensure:
    • DB_NAME=local
    • DB_USER=root
    • DB_PASSWORD=root
  • WP_HOME='https://YOURSITE.local'
@seoagentur-hamburg
seoagentur-hamburg / .htaccess
Last active November 13, 2024 09:48
UPDATE 2024/03: Perfect .htaccess file for highspeed and security. You can use it for every WordPress-Website without problems. Highspeed and Security - testet on hundreds of Websites. If you are using a WordPress Multisite, change the last part of this file.
########################################################################
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2.0.9 - 03/2024
# ----------------------------------------------------------------------
# @Author: Andreas Hecht
# @Author URI: https://seoagentur-hamburg.com
# License: GNU General Public License v2 or later
# License URI: http://www.gnu.org/licenses/gpl-2.0.html
########################################################################
@zinkkrysty
zinkkrysty / drawing_tool.js
Last active April 19, 2016 15:40
Drawing tool made with Bonsai.js (http://orbit.bonsaijs.org/)
var myStage;
var startDrag;
var myRect;
//
//Shape abstraction
//
//var RectShape = function(x, y, width, height){
// this.bonsaiRect = new Rect(x, y, width, height);