Skip to content

Instantly share code, notes, and snippets.

@vasanthk
vasanthk / System Design.md
Last active Mar 3, 2021
System Design Cheatsheet
View System Design.md

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@mstevenson
mstevenson / SepScript.mel
Created Nov 25, 2012
Maya MEL script that breaks up a mesh based on materials. Created by Andrew Coggeshall at Basenji Games.
View SepScript.mel
// Poly Separate
// Copyright (C) 2012 Basenji Games
// Licensed under the MIT license
string $selection[] = `ls -sl`;
sepMat($selection[0]);
global proc sepMat(string $object){
string $shadingGroups[] = getSGsFromShape($object);
string $ParentName = ($object + "_lightMap_Group");
@mortcanty
mortcanty / s2cnnclass.ipynb
Last active Mar 3, 2021
s2cnnclass.ipynb
View s2cnnclass.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mortcanty
mortcanty / s1multitempclass.ipynb
Last active Mar 3, 2021
S1MultitempClass.ipynb
View s1multitempclass.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Pierstoval
Pierstoval / Makefile
Last active Mar 3, 2021
"confirm" action for your Makefile
View Makefile
# To use the "confirm" target inside another target,
# use the " if $(MAKE) -s confirm ; " syntax.
mycommand:
@if $(MAKE) -s confirm ; then \
execute_your_command_here ; \
fi
.PHONY: mycommand
# The CI environment variable can be set to a non-empty string,
@devops-school
devops-school / AWS Interview Questions and Answer Part – 38.md
Created May 31, 2020
AWS Interview Questions and Answer Part – 38
View AWS Interview Questions and Answer Part – 38.md

What is an AWS region?

  • A region is a geographical area that consists of diffrent availabilty zones. Each region consts of 2(or more) Availability Zones.

What dose an AWS Region consist of?

  • An independent collection of AWS computing resources in a defined geography.

Which statement best describes Availability Zones?

  • Distinct locations from within an AWS region that are engineered to be
@taniarascia
taniarascia / index.html
Last active Mar 3, 2021
HTML Skeleton file
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="author" content="">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
View aes-decryption.cpp
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <string.h>
#include <iostream>
using namespace std;
void handleOpenSSLErrors(void)
{
ERR_print_errors_fp(stderr);
abort();
@opi
opi / mailhog.md
Last active Mar 3, 2021
Install and configure MailHog (for Drupal) with a nice systemd unit and apache reverse proxy
View mailhog.md

MailHog (for Drupal) on Debian Stretch

MailHog is a nice mail testing tool for developers.

Website: https://github.com/mailhog/MailHog

Installation

Download the latest release on your local machine

@chrisjm
chrisjm / README.md
Last active Mar 3, 2021 — forked from tache/README-SSL-Certificates.md
LetsEncrypt, AWS Certificate Manager, and CloudFront
View README.md

Using LetsEncrypt SSL certificates with AWS Certificate Manager and CloudFront

This is a document for managing LetsEncrypt certificates on AWS using AWS Certificate Manager and configuring on CloudFront using the AWS CLI.

Setup

Follow the instructions to set up the certbot and aws commands on your local machine: