This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setup pi SD card | |
# https://medium.com/@maheshsenni/setting-up-a-raspberry-pi-without-keyboard-and-mouse-headless-9359e0926807 | |
# dl configs | |
wget https://gist.githubusercontent.com/unyo/284cbbd269cde81f85b9e4162a6b6128/raw/f1cb2ec4dc4bb319124cb9f58f42ded7bcf5a4bf/.vimrc | |
wget https://gist.githubusercontent.com/unyo/bfcdfc81a66d2101c67aced713f5dedd/raw/ce47e6d18efb7130ff3374cce8a75ebe1e60c4d5/.profile | |
# update | |
sudo apt-get update && sudo apt-get dist-upgrade # do this regularly | |
# install apps | |
sudo apt-get install vim rvm docker docker-compose python node nginx | |
# rasberry pi only |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g default-terminal "screen-256color" | |
set -g status-bg "#721C0D" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package-lock=false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service cloud.firestore { | |
match /databases/{database}/documents { | |
match /{document=**} { | |
allow read, write; | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
country=US | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
network={ | |
ssid="TARDIS" | |
psk="XXXX" | |
proto=RSN | |
key_mgmt=WPA-PSK | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
runinstaller quiet ramdisk_size=32768 root=/dev/ram0 init=/init vt.cur_default=1 elevator=deadline silentinstall |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UUID=2266-BC8E /mnt/usb vfat auto,user,rw,uid=unyo,gid=unyo 0 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// apparently there is some hidden settings at https://www.gatsbyjs.org/docs/debugging-replace-renderer-api/#fixing-the-replacerenderer-error | |
import React from "react" | |
import { renderToString } from "react-dom/server" | |
import { ServerStyleSheet, StyleSheetManager } from "styled-components" | |
export const replaceRenderer = ({ | |
bodyComponent, | |
replaceBodyHTMLString, | |
setHeadComponents, | |
}) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://keithclark.co.uk/articles/pure-css-parallax-websites/demo1/ | |
Basically, the idea is: | |
Top-level page container element (contains navbar body footer, the level which the main scrollbar will be) requires: | |
#___gatsby { | |
perspective: 1px; | |
overflow: auto; | |
height: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getObjectKeys = (obj, prefix = '') => { | |
return Object.entries(obj).reduce((collector, [key, val]) => { | |
const newKeys = [ ...collector, prefix ? `${prefix}.${key}` : key ] | |
if (Object.prototype.toString.call(val) === '[object Object]') { | |
const newPrefix = prefix ? `${prefix}.${key}` : key | |
const otherKeys = getObjectKeys(val, newPrefix) | |
return [ ...newKeys, ...otherKeys ] | |
} | |
return newKeys | |
}, []) |