Skip to content

Instantly share code, notes, and snippets.

@bradtraversy
bradtraversy / docker_wordpress.md
Last active May 16, 2024 11:18
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@elliot-huffman
elliot-huffman / .gitignore
Last active February 21, 2022 22:58
A gitignore for all of your Apache Cordova needs.
# Cordova Global
plugins/
# iOS Platform
platforms/ios/build/
platforms/ios/www/
platforms/ios/cordova/console.log
*.xcuserdatad
# Android Platform
@poul-kg
poul-kg / valet.conf
Last active April 30, 2024 14:09
CORS Rules for Laravel Valet Nginx
# To enable CORS you should add lines with CORS rules below to your valet.conf file
# Find the file /usr/local/etc/nginx/valet/valet.conf - this is Valet conf for Nginx
# of try to execute `locate valet.conf` and find the `valet.coinf` in `nginx` subdirectory
# after you edit your valet.conf do not forget to execute `valet restart`
server {
listen 80 default_server;
root /;
charset utf-8;
client_max_body_size 128M;
@Emp3r
Emp3r / bootstrap-basic-form.sublime-snippet
Created March 7, 2017 17:04
Bootstrap form snippets for Sublime Text, prepared for Laravel with "old()" function set in values.
<snippet>
<content><![CDATA[
<form method="${1:POST}" action="${2:/}">
${3:{{ csrf_field() \}\}}
<div class="form-group">
<label for="${4:name}">${5:Name}:</label>
<input type="text" class="form-control" name="${4:name}" id="${4:name}" ${6:required }value="${7:{{ old('${4:name}') \}\}}">
</div>
/*
This is my composer.json file for http://reload.github.io/phing-drupal-template/
after the save to the drupal root directory
composer install
using phing:
./vendor/phing/phing/bin/phing
see the url above for more commands
*/
{
"require-dev": {
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 21, 2024 05:35
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@sajt
sajt / drupal_7_install.sh
Last active December 24, 2015 06:59
My drupal install. This will be a drupal profile later.
git clone --branch 7.x http://git.drupal.org/project/drupal.git
cd drupal
drush si --db-url=mysql://root:password@localhost/drupal_dev --locale=hu
cd sites/all/modules/
mkdir custom contrib features ../libraries
drush dl -y views admin_menu features pathauto token panels panels_everywhere ctools l10n_update media markdown markdowneditor strongarm devel views_bulk_operations jquery_update ds rules module_filter
drush en -y views_ui admin_menu admin_menu_toolbar features pathauto token panels panels_everywhere ctools l10n_update media markdown markdowneditor strongarm devel views_bulk_operations jquery_update panels_mini panels_node module_filter rules_admin
drush dis -y overlay toolbar
@barryvdh
barryvdh / _ide_helper.php
Last active May 6, 2024 07:45
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.5.13 on 2017-09-28.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
exit("This file should not be included, only analyzed by your IDE");

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: