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
// Copyright 2014 A Medium Corporation | |
// | |
// z-index.less | |
// Medium.com's z-index scale. Z-index values should always be defined in z-index.less. This | |
// allows us to at a glance determine relative layers of our application and prevents bugs | |
// arrising from arbitrary z-index values. Do not edit the z-index scale! Only add application | |
// scoped z-index values. | |
//This is the SASS version modified by @toadkicker. |
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 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
Ndabe zitha nkosi yethu mholi wezwe lethu lefatshe la bonata rona lea halalela busa le lizwe bo busa le lizwe bo busa le lizwe bo Lethu busa. Ngoxolo is'khathi sifikile is'khathi busa iyo is'khathi sifikile busa lomhlaba is'khathi sifikile is'khathi sifikile. Busa simba busa bimba. Hem na iyo hem na iyo mem na nkosi bo. Busa simba iyo hem na iyo. Oh busa simba iyo Hem na iyo. Oh busa nkosi bo Hem na nkosi bo. Oh busa simba iyo busa simba iyo. Busa simba iyo ubuse ngo thando. Ubuse ngo thando ubuse. Ngo xolo busa simba, busa simba ubuse ngo xolo. Ubuse ngo thando ubuse ngo xolo. Ubuse ngo thando ubuse ngo xolo. |
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> |
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
Array.prototype.chunk = function (chunkSize) { | |
var array = this; | |
return [].concat.apply([], | |
array.map(function (elem, i) { | |
return i % chunkSize ? [] : [array.slice(i, i + chunkSize)]; | |
}) | |
); | |
} |
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 |
NewerOlder