Skip to content

Instantly share code, notes, and snippets.

View robbender's full-sized avatar
🐜
Working hard!

Robert Bender robbender

🐜
Working hard!
  • Freelance Developer
  • Phoenix
View GitHub Profile
@robbender
robbender / .gitignore
Created November 9, 2021 18:49 — forked from Yousha/.gitignore
.gitignore for PHP developers.
##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
.gform_wrapper {
form .gform_body .ginput_complex input[type=text] {
width:100% !important;
}
input, input[type=text], select, textarea {
width:100% !important;
@include box-sizing(border-box);
}
}
@robbender
robbender / .travis.yml
Created September 24, 2020 20:42 — forked from shubham9411/.travis.yml
Travis CI config for WordPress
# Travis CI (MIT License) configuration file for the solitude WordPress theme.
# @link https://travis-ci.org/
# For use with the solitude WordPress theme.
# @link https://github.com/shubham9411/solitude
# Ditch sudo and use containers.
# @link http://docs.travis-ci.com/user/migrating-from-legacy/#Why-migrate-to-container-based-infrastructure%3F
# @link http://docs.travis-ci.com/user/workers/container-based-infrastructure/#Routing-your-build-to-container-based-infrastructure
sudo: false
@robbender
robbender / ContactForm.md
Created September 19, 2020 05:38 — forked from patotoma/ContactForm.md
secure php contact form

Secured PHP Contact Form

<?php
  if(isset($_POST['submit'])){
    $name = htmlspecialchars(stripslashes(trim($_POST['name'])));
    $subject = htmlspecialchars(stripslashes(trim($_POST['subject'])));
    $email = htmlspecialchars(stripslashes(trim($_POST['email'])));
    $message = htmlspecialchars(stripslashes(trim($_POST['message'])));
    if(!preg_match("/^[A-Za-z .'-]+$/", $name)){
@robbender
robbender / docker_wordpress.md
Created August 11, 2020 18:16 — forked from bradtraversy/docker_wordpress.md
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
@robbender
robbender / .gitignore
Created July 30, 2020 19:38 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@robbender
robbender / .gitignore
Created July 23, 2020 22:54 — forked from pixeline/.gitignore
Default Wordpress .gitignore file
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
@robbender
robbender / docker-help.md
Created July 22, 2020 21:43 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@robbender
robbender / BootstrapAlert.php
Created July 11, 2020 21:43 — forked from rpmahoney/BootstrapAlert.php
PHP functions to create Bootstrap 3 Alerts
<?php
/**
* Create a bootstrap success alert
* @param String $bold - First words in the alert. Will be put inside <strong> html tag for emphasis
* @param String $message - What will be used for the main description in the alert
*/
function successAlert($bold, $message){
echo '<div class="container">
<div class="alert alert-success fade in">
<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
{
"ALY": "ALY",
"ALLEY": "ALY",
"ALLEE": "ALY",
"ALLY": "ALY",
"ANX": "ANX",
"ANEX": "ANX",
"ANNEX": "ANX",
"ANNX": "ANX",
"ARC": "ARC",