Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Bryan dongchirua

🎯
Focusing
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am dongchirua on github.
  • I am dongchirua (https://keybase.io/dongchirua) on keybase.
  • I have a public key ASAyuziwGTd0pJLePNId63EIhTkkfedxgRFCKFOg5vscTQo

To claim this, I am signing this object:

View gist:ca0210b5e954bb2c49831939397e2b47
export ZSH=~/.oh-my-zsh
ZSH_THEME="avit"
COMPLETION_WAITING_DOTS="true"
plugins=(osx zsh-completions)
source $ZSH/oh-my-zsh.sh
export LANG=en_US.UTF-8
source /usr/local/opt/autoenv/activate.sh
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source $(brew --prefix nvm)/nvm.sh
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
@dongchirua
dongchirua / hashStream.js
Created Mar 2, 2017
I tried to compute a hash of a file through stream
View hashStream.js
'use strict'
var crypto = require('crypto');
var fs = require('fs');
var util = require('util');
var readStream = fs.createReadStream('Steinkellner.mp4');
var writeStream = fs.createWriteStream('Steinkellnered.mp4');
var name = '';
var length = 0;
var digester = crypto.createHash('sha1');
@dongchirua
dongchirua / Dockerfile
Last active Jun 20, 2019
Dockerize My Blog
View Dockerfile
FROM ruby:2.5
MAINTAINER Bryan <dongchirua@live.com>
EXPOSE 4000
ENV LANG C.UTF-8
RUN \
apt-get update && \
apt-get install -y apt-utils \
python-pygments cmake nodejs && \
apt-get clean && \
@dongchirua
dongchirua / trivial_hierarchy.py
Last active Feb 13, 2017
Demo A Simple Hierarchy with Empty String
View trivial_hierarchy.py
#!/usr/bin/env python
__author__ = "Bryan Nguyen"
from twisted.internet import reactor
from twisted.web.server import Site
from twisted.web.static import File
from twisted.web.resource import Resource
class Echo(Resource):
def __init__(self, arg):
Resource.__init__(self)
@dongchirua
dongchirua / Dockerfile
Last active Feb 1, 2019
Create a Docker image with Nodejs, Ruby, Python on Ubuntu 16.04
View Dockerfile
FROM ubuntu:16.04
MAINTAINER Bryan Nguyen <dongchirua@live.com>
# www.nhquy.com
# install some dependencies
RUN apt-get update && \
apt-get install -y --force-yes --no-install-recommends\
apt-transport-https \
ssh-client \
build-essential \
You can’t perform that action at this time.