Skip to content

Instantly share code, notes, and snippets.

View danielclough's full-sized avatar

Daniel Clough danielclough

View GitHub Profile
@danielclough
danielclough / toggle_alacritty.sh
Last active October 20, 2023 00:04
Use wmctrl and xprop to toggle Alacritty.
#!/bin/sh
PROGRAM_WINDOW_ID=`wmctrl -lx | tr -s ' ' | grep Alacritty | cut -f1 -d ' '`
# Start if not already started
[ -z ${PROGRAM_WINDOW_ID} ] && /usr/bin/alacritty
if [ -v $(xprop -id ${PROGRAM_WINDOW_ID} |grep _NET_WM_STATE_FOCUSED) ] ;
then
# Focused->Hidden
@danielclough
danielclough / storefront-shopify-error-log-2.md
Created April 22, 2020 21:45
storefront-shopify error log with .env file

Terminal Errors

daniel@daniel-N5050:~/Git/gatsby/Starters/storefront-shopify$ gatsby develop
success open and validate gatsby-configs - 0.246s
success load plugins - 1.372s
success onPreInit - 0.015s
success initialize cache - 0.014s
success copy gatsby files - 0.051s
success onPreBootstrap - 0.010s

Issue details

errors while sourcing data

Steps to reproduce/test case

deploy starter

node -v v13.5.0

@danielclough
danielclough / gist:94026c9f78c3672b02ed15293e4e5768
Created April 15, 2020 10:48
@gatsbystorefront/gatsby-theme-storefront-shopify fails to build on Netlify
`Netlify Deply Log`
```
error "gatsby-source-shopify" threw an error while running the sourceNodes lifecycle:
3:20:20 AM: Cannot read property 'includes' of undefined
3:20:20 AM: 40 | includeCollections = [_constants.SHOP, _constants.CONTENT]
3:20:20 AM: 41 | }) => {
3:20:20 AM: > 42 | const client = (0, _createClient.createClient)(shopName, accessToken, apiVersion); // Convenience function to namespace console messages.
3:20:20 AM: | ^
3:20:20 AM: 43 |
@danielclough
danielclough / keybase.md
Created December 7, 2018 10:59
Keybase ID

Keybase proof

I hereby claim:

  • I am danielclough on github.
  • I am danielclough (https://keybase.io/danielclough) on keybase.
  • I have a public key ASCuI2E1db07deIWLLW74ydyp2iGtmFLu2PpmtI1bm9vdwo

To claim this, I am signing this object: