Skip to content

Instantly share code, notes, and snippets.

@ntk148v
ntk148v / System Design.md
Created February 22, 2019 06:48 — forked from vasanthk/System Design.md
System Design Cheatsheet

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?
http://cronus.allowed.org works for me, 2018.1.6
@ntk148v
ntk148v / installing-arch.md
Created July 10, 2018 08:38 — forked from ChrisTimperley/installing-arch.md
Instructions for installing Arch Linux and i3 onto a Dell Inspiron 7537

Arch Linux

GRUB Installation

Be sure to replace /dev/sda with the name of the drive (n.b. not the partition) containing Arch.

# pacman -S grub-bios intel-ucode
# grub-install /dev/sda
# mkinitcpio -p linux
@ntk148v
ntk148v / xxf.zsh-theme
Created May 6, 2018 02:57 — forked from xfanwu/xxf.zsh-theme
Yet another theme for oh-my-zsh
# Copy and self modified from ys.zsh-theme, the one of default themes in master repository
# Clean, simple, compatible and meaningful.
# Tested on Linux, Unix and Windows under ANSI colors.
# It is recommended to use with a dark background and the font Inconsolata.
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white.
# http://xiaofan.at
# 2 Jul 2015 - Xiaofan
# Machine name.
function box_name {
@ntk148v
ntk148v / myappindicator_v5.py
Created December 10, 2017 04:23 — forked from jmarroyave/myappindicator_v5.py
Ubuntu AppIndicator to show Chuck Norris jokes - Updated to python 3
# This code is an example for a tutorial on Ubuntu Unity/Gnome AppIndicators:
# http://candidtim.github.io/appindicator/2014/09/13/ubuntu-appindicator-step-by-step.html
import os
import signal
import json
from urllib import request
from urllib.error import URLError
from urllib.request import urlopen
@ntk148v
ntk148v / cloudSettings
Created September 19, 2017 07:33
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-09-19T07:31:37.358Z","extensionVersion":"v2.8.3"}
diff --git barbican/api/controllers/orders.py barbican/api/controllers/orders.py
index 02ef66a..8ea1f4d 100644
--- barbican/api/controllers/orders.py
+++ barbican/api/controllers/orders.py
@@ -23,6 +23,7 @@ from barbican.common import validators
from barbican import i18n as u
from barbican.model import models
from barbican.model import repositories as repo
+from barbican import objects
from barbican.queue import client as async_client
@ntk148v
ntk148v / container.diff
Last active September 5, 2017 07:33 — forked from anonymous/-
diff --git a/barbican/api/controllers/acls.py b/barbican/api/controllers/acls.py
index d65f87a..a586590 100644
--- a/barbican/api/controllers/acls.py
+++ b/barbican/api/controllers/acls.py
@@ -22,6 +22,7 @@ from barbican.common import validators
from barbican import i18n as u
from barbican.model import models
from barbican.model import repositories as repo
+from barbican import objects
[[local|localrc]]
HOST_IP=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
disable_all_services
enable_plugin barbican https://git.openstack.org/openstack/barbican
# To use a specific branch:
# enable_plugin barbican https://git.openstack.org/openstack/barbican stable/<release-name>
enable_service rabbit mysql key
#!/bin/bash
# sudo useradd -s /bin/bash -d /opt/stack -m stack
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
sudo su - stack
# Create a root directory for devstack if needed
sudo mkdir -p /opt/stack
sudo chown $USER /opt/stack
git clone https://git.openstack.org/openstack-dev/devstack /opt/stack/devstack