Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
| #!/bin/bash | |
| # Setup ACF Pro to use a license key in wp-config | |
| # | |
| # 1. Place your license key in a file called .acf-license-key somewhere your ssh user has access to it. | |
| # Default is in your home directory: ~/.acf-license-key | |
| # Change the setting below if you need to put it somewhere else | |
| # 2. install this file in /usr/local/bin or someplace in your PATH | |
| # 3. make sure you have WP CLI installed | |
| # 4. run acf-install-license from the root of your wordpress install |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name="viewport" /> | |
| <link rel="icon" href="data:,"> | |
| <title>String art</title> | |
| <script type="text/javascript" src="jquery.min.js"></script> | |
| <style> | |
| html, body { |
| import collections | |
| import math | |
| import os | |
| import cv2 | |
| import numpy as np | |
| import time | |
| MAX_LINES = 4000 | |
| N_PINS = 36*8 | |
| MIN_LOOP = 20 # To avoid getting stuck in a loop |
| name: appname | |
| recipe: pantheon | |
| config: | |
| framework: wordpress | |
| site: appname | |
| id: [side-id] | |
| proxy: | |
| mailhog: | |
| - mail.appname.lndo.site | |
| services: |
| <?php | |
| fix_file_directory_permission(dirname(__FILE__)); | |
| function fix_file_directory_permission($dir, $nomask = array('.', '..')) { | |
| if (is_dir($dir)) { | |
| // Try to fix directories permission | |
| if (@chmod($dir, 0755)) { | |
| echo "<p>Permission Fixed for : " . $dir . "</p>"; | |
| } | |
| } |
| # use ImageMagick convert | |
| # the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf | |
| convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf |
| #!/bin/bash | |
| # Get project directory and git url | |
| echo "Project code (used for project directory name):" | |
| read project_code | |
| echo "Project repo git url (can be blank):" | |
| read project_git_url | |
| # Clone DrupalVM | |
| git clone git@github.com:geerlingguy/drupal-vm.git $project_code |
Also see: https://gist.github.com/lemiorhan/8912188
Here are the simple steps needed to push your local git repository directly to a remote (e.g. prod) server over ssh. This is based on Digital Ocean's Tutorial.
You are developing in a working-directory on your local machine, let's say on the master branch. Usually people push code to a remote
server like github.com or gitlab.com and pull or export it to a production server. Or you use GitHub's webhooks to send a POST request to a webserver to take appropriate actions such as cloning/checking out a branch on the remote (prod) server.
| function deleteSavedItems() { | |
| var query = document.querySelectorAll("#sc-saved-cart input[value=Delete]") | |
| if (query.length) { | |
| query[0].click(); | |
| } | |
| if (query.length > 1) { | |
| setTimeout(deleteSavedItems,100); | |
| } | |
| else { | |
| console.log('Finished'); |