Skip to content

Instantly share code, notes, and snippets.

View garyritchie's full-sized avatar

Gary Ritchie garyritchie

View GitHub Profile
@garyritchie
garyritchie / designer.html
Created December 17, 2014 21:51
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-item/paper-item.html">
<link rel="import" href="../topeka-elements/category-icons.html">
@garyritchie
garyritchie / mount_ebs.sh
Last active December 19, 2019 14:23 — forked from stingh711/mount_ebs.sh
How to mount another EBS as /var on EC2 (ubuntu)
#!/bin/bash
#attach the EBS to /dev/sdf before running it
UPDATE=yes
while getopts d:u option
do
case "${option}"
in
d) DEVICE=${OPTARG};;
@garyritchie
garyritchie / makefile
Created October 12, 2018 17:51
Compile an Occlusion-Roughness-MEtallic map from individual images as per "Art Pipeline for glTF" https://www.khronos.org/blog/art-pipeline-for-gltf
SHELL=/bin/bash
help:
@grep -E '^[a-zA-Z_-%]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
### https://www.digitalocean.com/community/tutorials/how-to-use-makefiles-to-automate-repetitive-tasks-on-an-ubuntu-vps
%_orm.png: %_*.png ## Make a glTF-compliant Occlusion-Roughness-Metallic map from individual files named accordingly
@if [ -f '$*_occlusion.png' ] ; then \
FILER="$*_occlusion.png"; CHANNELR="R"; \
echo "Found $$FILER --> $$CHANNELR"; \