Skip to content

Instantly share code, notes, and snippets.

View jasperf's full-sized avatar
🏠
Working from home

Jasper Frumau jasperf

🏠
Working from home
View GitHub Profile
@jasperf
jasperf / .gitignore
Created May 24, 2012 08:01 — forked from redoPop/.gitignore
Template .gitignore file for WordPress projects #wordpress #git
# 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
@jasperf
jasperf / gist:a38d6d63f7b9c31d7f4a
Last active August 29, 2015 14:03 — forked from ifnull/gist:5055099
Show the permissions of (current) directory in numeric values like 777 or 755 depending on the setup. This is sometimes easier than looking at the rights with alphabets.
stat -c "%a %n" .
@jasperf
jasperf / access_from_web.md
Created July 5, 2014 08:28
MySQL Commands to create users, database, password and grant necessary privileges from the command line
mysql> CREATE USER 'user_name'@'localhost' IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON database_name.* TO 'user_name'@'localhost' WITH GRANT OPTION;
mysql> CREATE USER 'user_name'@'%' IDENTIFIED BY 'password';

mysql> GRANT ALL PRIVILEGES ON database_name.* TO 'user_name'@'%' WITH GRANT OPTION;

@jasperf
jasperf / chmod_files_and_dirs.sh
Created July 7, 2014 11:40 — forked from infolock/chmod_files_and_dirs.sh
# Recursively find all files in the current directory and change to access of 644 and for directories to 755
# Recursively find all files in the current directory and change to access of 644
find ./ -type f -exec chmod 644 {} \;
# Recursively find all directories in the current directory and change to access of 755
find ./ -type d -exec chmod 755 {} \;
[{"key":"1920 x 1080","name":"Nexus 5 Landscape","width":1920,"height":1080},
{"key":"1080 x 1920","name":"Nexus 5 Portrait","width":1080,"height":1920},
{"key":"1024 x 768","name":"iPad Landscape","width":1024,"height":768},
{"key":"768 x 1024","name":"iPad Portrait","width":768,"height":1024},
{"key":"736 x 414","name":"iPhone 6 Plus Landscape","width":736,"height":414},
{"key":"414 x 736","name":"iPhone 6 Plus Portrait","width":414,"height":736},
{"key":"667 x 375","name":"iPhone 6 Landscape","width":667,"height":375},
{"key":"375 x 667","name":"iPhone 6 Portrait","width":750,"height":1334},
{"key":"568 x 320","name":"iPhone 5/S/C Landscape","width":568,"height":320},
{"key":"320 x 568","name":"iPhone 5/S/C Portrait","width":320,"height":568},
@jasperf
jasperf / A Roots Sage Theme and Dev Setup.md
Last active May 12, 2016 16:38 — forked from corradomatt/Using Roots 8.0 Process.md
Setting up Roots 8.0 (Sage) on a a Mac with Local Yosemite OSX Server and AMP. This includes setting up the server part of things #roots #wordpress #osx
@jasperf
jasperf / header.php
Last active July 23, 2017 12:16 — forked from retlehs/header.php
Header.php for Roots Sage theme to work with the Bootstrap Menu again using the wp-bootstrap-navwalker #wordpress #roots #sage
<?php
// This file assumes that you have included the nav walker from https://github.com/twittem/wp-bootstrap-navwalker
// somewhere in your theme.
?>
<header class="banner navbar navbar-default navbar-static-top" role="banner">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only"><?= __('Toggle navigation', 'sage'); ?></span>
@jasperf
jasperf / fix_permissions.sh
Last active August 29, 2015 14:22 — forked from pwenzel/fix_permissions.sh
change all file and folder permission from shell with xargs for servers running mod PHP #chmod
# change permissions for all files, skipping dirs
find . -type f | xargs chmod 664
# change permissions for all dirs, skipping files
find . -type d | xargs chmod 775