Skip to content

Instantly share code, notes, and snippets.

View kcharlesbusiness's full-sized avatar

Karl Charles kcharlesbusiness

View GitHub Profile
@satnami
satnami / merge_upstream_branches.yml
Created February 1, 2021 09:55
Github Actions to Merge upstream branches
# https://stackoverflow.com/a/61574295/2118504
# .github/workflows/example.yml
name: Merge upstream branches
on:
schedule:
# actually, ~5 minutes is the highest
# effective frequency you will get
- cron: '* * * * *'
jobs:
find ./ -type f -name '*.jpg' -exec sh -c 'cwebp -q 75 $1 -o "${1%.png}.webp"' _ {} \;
@wpscholar
wpscholar / vagrant-cheat-sheet.md
Last active May 22, 2024 07:14
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)