This is a rough cut of a script to download all the things from an AWS S3 bucket. I wrote it to move files from Digital Ocean to AWS proper.
This file contains 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
# change out nodes, subject, text as one sees fit | |
openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 \ | |
-nodes -keyout host.lan.key -out host.lan.crt -subj "/CN=host.lan" \ | |
-addext "subjectAltName=DNS:host.lan,DNS:*.lan,IP:192.168.1.254" |
This is a design I came up with to incorporate atomic design into the code layout in a project. This has given me the leverage to extract out good parts to cross platform tools and reusable API's for the team. Welcome feedback/additions!
src/
libs/ **filters, config tools, etc
modules/
This file contains 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
import { Button } from '@material-ui/core'; | |
import CloseIcon from '@material-ui/icons/Close'; | |
import SaveIcon from '@material-ui/icons/Save'; | |
import UndoIcon from '@material-ui/icons/Undo'; | |
import { Formik } from 'formik'; | |
import { i18n } from 'i18n'; | |
import model from 'modules/contact/contactModel'; | |
import React, { Component } from 'react'; | |
import FormSchema from 'view/shared/form/formSchema'; | |
import Spinner from 'view/shared/Spinner'; |
This file contains 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
/* Rename current directory's *.js files to *.tsx */ | |
find . -name "*.js" -exec bash -c 'mv "$1" "${1%.js}".tsx' - '{}' \; |
This file contains 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
Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
ActivityTweet | |
generic_activity_highlights | |
generic_activity_momentsbreaking | |
RankedOrganicTweet | |
suggest_activity | |
suggest_activity_feed | |
suggest_activity_highlights | |
suggest_activity_tweet |
This file contains 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
html, | |
body { | |
font-size: 14px !important; | |
} | |
h1 { | |
font-size: 1.602em; | |
} | |
h2 { |
This file contains 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
<template> | |
<component class="svg-inline--icon" :is="dynamicIcon" /> | |
</template> | |
<script> | |
export default { | |
name: 'Icon', | |
props: { | |
icon: { | |
type: String, |
This file contains 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
module.exports = { | |
locales: [ | |
{ | |
code: 'en', | |
iso: 'en-US', | |
name: 'English', | |
file: 'en.json' | |
} | |
] | |
} |
This file contains 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
<p>Hi! I'm an about page. Edit me in views/static_pages/</p> |
NewerOlder