Skip to content

Instantly share code, notes, and snippets.

View livando's full-sized avatar

Don Livanec livando

View GitHub Profile
@livando
livando / .bash_aliases
Created March 23, 2021 19:02 — forked from vratiu/.bash_aliases
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@livando
livando / NewComment.test.js
Last active July 20, 2020 15:46
Basic React Test
// https://reactjs.org/docs/testing-recipes.html
import React from 'react';
import ReactDOM from 'react-dom';
import { act } from 'react-dom/test-utils';
import NewComment from '../NewComment';
let div = document.createElement('div');
beforeEach(() => {
@livando
livando / vscode_alfred3.md
Last active June 12, 2019 16:54
VS Code Alfred 3 Integration

Links

Installation

  1. Install NPM package
  2. Install VS Code Project Manager
  3. Apply Project Manager project.json reference fix.
@livando
livando / github_multiple-accounts.md
Created October 3, 2018 02:45 — forked from JoaquimLey/github_multiple-accounts.md
How to Work with GitHub and Multiple Accounts

Step 1 - Create a New SSH Key

We need to generate a unique SSH key for our second GitHub account.

ssh-keygen -t rsa -C "your-email-address"

Be careful that you don't over-write your existing key for your personal account. Instead, when prompted, save the file as id_rsa_COMPANY. In my case, I've saved the file to ~/.ssh/id_rsa_work.

Step 2 - Attach the New Key

@livando
livando / recruiter_response.txt
Created January 29, 2018 17:20
recruiter response
Hi <Recruiter>,
Thanks for your interest in serving me. Please provide your current salary (including awards and President's clubs), a Word Document version of your most up-to-date resume and two recent professional references (within 36 months). The references must be former supervisors/managers capable of speaking about your professional skills and abilities as a recruiter. Provide me with their full name, working title and contact (phone/email) information.
Thanks & Regards,
Don
@livando
livando / post-mortem-template.md
Created November 17, 2017 13:10 — forked from juliandunn/post-mortem-template.md
Post mortem template

INCIDENT DATE - INCIDENT TYPE

Meeting

Waiving meetings

In some cases the IC might determine that a PM meeting for the incident isn't needed. If the IC decides to waive the meeting please replace the Meeting section with a note indicating the meeting has been waived (example: Meeting waived: Paul Mooring)

@livando
livando / gist:5f1a41405a06412c26acd3db1c6e3af0
Created September 13, 2017 12:59
nightmare-lambda-tutorial
https://github.com/dimkir/nightmare-lambda-tutorial
zip -r deployment-package.zip index.js lib node_modules -x '*electron/dist*'
ls -lh *.zip
aws lambda delete-function --function-name nightmare-tut-hello
./function.sh
aws lambda invoke --function-name nightmare-tut-hello --payload {} done.log && cat done.log
@livando
livando / serverless_credentialing.md
Last active September 12, 2017 17:42
Serverless Credentialing on AWS

Serverless Credentialing

Step 1: Create Custom Policy

  • select policies
  • create policy
  • create your own policy
  • policy name: ServerlessCloudFormation, description: serverless policy, policy document:
 {
@livando
livando / scraping.md
Last active April 5, 2017 14:03
Web Scraping Resources