Skip to content

Instantly share code, notes, and snippets.

View ntk148v's full-sized avatar
πŸƒβ€β™‚οΈ

Kien Nguyen-Tuan ntk148v

πŸƒβ€β™‚οΈ
View GitHub Profile
@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
@ntk148v
ntk148v / 00-MapSideJoinDistCacheTextFile
Created June 12, 2017 16:14 — forked from airawat/00-MapSideJoinDistCacheTextFile
Map-side join example - Java code for joining two datasets - one large (tsv format), and one with lookup data (text), made available through DistributedCache
This gist demonstrates how to do a map-side join, loading one small dataset from DistributedCache into a HashMap
in memory, and joining with a larger dataset.
Includes:
---------
1. Input data and script download
2. Dataset structure review
3. Expected results
4. Mapper code
5. Driver code
@ntk148v
ntk148v / local.conf
Last active June 2, 2017 02:46 — forked from toanalien/local.conf
local.conf for devstack stable/mitaka
[[local|localrc]]
# Modify to your environment
#FIXED_RANGE=10.0.0.0/24
#FLOATING_RANGE=192.168.1.224/27
#PUBLIC_NETWORK_GATEWAY=192.168.1.225
#PUBLIC_INTERFACE=em1
#PHYSICAL_NETWORK=public
#OVS_PHYSICAL_BRIDGE=br-ex
#HOST_IP=104.199.204.70
@ntk148v
ntk148v / gist:3f4dc26d3916bdb88fb66d222aac062d
Created May 1, 2017 01:45 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: