I use Valet as my local web development environment (PHP, Laravel, Wordpress, ...)
This gist is my own recipe to install Wordpress from the command line to use it with Valet. Maybe this is useful for you too.
Demo mobile app using WordPress REST API | |
https://github.com/scottopolis/wp-rest-api-demo | |
Expose Post Formats in WP REST API | |
https://github.com/kucrut/wp-bridge-post-formats | |
WP REST API endpoint for menus | |
https://github.com/kucrut/wp-bridge-menus | |
Powerful framework plugin for turning your WordPress theme into an isomorphic JavaScript application using the REST API |
<?php | |
/** | |
* | |
* Safe Search and Replace on Database with Serialized Data v2.0.1 | |
* | |
* This script is to solve the problem of doing database search and replace when | |
* developers have only gone and used the non-relational concept of serializing | |
* PHP arrays into single database columns. It will search for all matching | |
* data on the database and change it, even if it's within a serialized PHP | |
* array. |
/* Simple spam protection for email addresses using jQuery. | |
* Well, the protection isn’t jQuery-based, but you get the idea. | |
* This snippet allows you to slightly ‘obfuscate’ email addresses to make it harder for spambots to harvest them, while still offering a readable address to your visitors. | |
* E.g. | |
* <a href="mailto:foo(at)example(dot)com">foo at example dot com</a> | |
* → | |
* <a href="mailto:[email protected]">[email protected]</a> | |
*/ | |
$(function() { |
Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element
or the /deep/
path selector.
video::webkit-media-controls-timeline {
background-color: lime;
}
video /deep/ input[type=range] {
### https://linuxfr.org/forums/general-cherche-logiciel/posts/resolu-backup-oui-c-est-une-vielle-problematique ### | |
#!/bin/sh | |
date=`date "+%Y%m%d-T%H%M%S"` | |
# Attention au / | |
SOURCE_DIR=/home/denis/ | |
TARGET_HOST=192.168.0.4 | |
TARGET_USER=rsync | |
TARGET_DIR=/volume1/persosave/rsync/denis |
mogrify -resize "210x" -background white -gravity center -extent 210x118 -format jpg -quality 75 "*.jpg" |
php core/scripts/password-hash.sh 'your-new-pass-here' | |
$S$EWwvK89PQ09i2zsJVpU5kve68Yk4p1y724GTpUmmZL37sKEVsvuBxa | |
UPDATE users_field_data SET pass='$S$EWwvK89PQ09i2zsJVpU5kve68Yk4p1y724GTpUmmZL37sKEVsvuBxa' WHERE uid = 1; | |
DELETE FROM cache_entity WHERE cid = 'values:user:1'; |
<link rel="import" href="../topeka-elements/category-images.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |