Skip to content

Instantly share code, notes, and snippets.


David Vuong davidvuong

View GitHub Profile
zhanwenchen / Install NVIDIA Driver and
Last active Apr 12, 2021 — forked from wangruohui/Install NVIDIA Driver and
Install NVIDIA CUDA 9.0 on Ubuntu 16.04.4 LTS
View Install NVIDIA Driver and
bojand /
Last active Apr 7, 2021
gRPC and Load Balancing

Just documenting docs, articles, and discussion related to gRPC and load balancing.

Seems gRPC prefers thin client-side load balancing where a client gets a list of connected clients and a load balancing policy from a "load balancer" and then performs client-side load balancing based on the information. However, this could be useful for traditional load banaling approaches in clound deployments.!topic/grpc-io/8s7UHY_Q1po

gRPC "works" in AWS. That is, you can run gRPC services on EC2 nodes and have them connect to other nodes, and everything is fine. If you are using AWS for easy access to hardware then all is fine. What doesn't work is ELB (aka CLB), and ALBs. Neither of these support HTTP/2 (h2c) in a way that gRPC needs.

leonardofed /
Last active Apr 21, 2021
A curated list of AWS resources to prepare for the AWS Certifications

A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

wangruohui / Install NVIDIA Driver and
Last active Apr 9, 2021
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
View Install NVIDIA Driver and
toolmantim /
Last active Mar 31, 2021
Ensuring Buildkite pipeline steps run on the same agent, using a dynamic pipeline generator script
# Outputs a pipeline that targets agents that have the same 'name' meta-data
# value as the step that does the pipeline upload. This means that all the
# steps will run on the same agent machine, assuming that the 'name' meta-data
# value is unique to each agent.
# Each agent needs to be configured with meta-data like so:
# meta-data="name=<unique-name>"
View BSTDeletion_CPP.cpp
/* Deleting a node from Binary search tree */
using namespace std;
struct Node {
int data;
struct Node *left;
struct Node *right;
//Function to find minimum in a tree.
Node* FindMin(Node* root)
ngryman /
Last active Jan 28, 2021
intellij javascript live templates

intellij javascript live templates

Just a dump of handy live templates I use with IntelliJ. They should also work with WebStorm.

How to

  • Go to settings.
  • Search for live templates.
  • Under the javascript section you should be able to manage your templates.
ruiwen / fb-angular.js
Last active Jul 5, 2017
Wrapping and initialising the Facebook SDK with Angular JS
View fb-angular.js
// Facebook SDK
angular.module('facebook', [])
.directive('fb', ['$FB', function($FB) {
return {
restrict: "E",
replace: true,
template: "<div id='fb-root'></div>",
compile: function(tElem, tAttrs) {
return {
post: function(scope, iElem, iAttrs, controller) {
dergachev /
Last active Apr 21, 2021
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF


To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

rgreenjr / postgres_queries_and_commands.sql
Last active Apr 21, 2021
Useful PostgreSQL Queries and Commands
View postgres_queries_and_commands.sql
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'