Skip to content

Instantly share code, notes, and snippets.

View minhhien1996's full-sized avatar
🎯
Focusing

Hiển Đỗ minhhien1996

🎯
Focusing
  • Vietnam
  • 04:28 (UTC +07:00)
View GitHub Profile
@hansohn
hansohn / brew_install_hadoop_2.7.3.sh
Last active April 3, 2020 21:52
Install Hadoop 2.7.3 via brew
#!/usr/bin/env bash
BREW_PREFIX=$(brew --prefix);
# abort if already installed, else continue
if ! grep -q hadoop <(brew list); then
# unlink broken installation attempts
brew unlink hadoop > /dev/null 2>&1;
# install hadoop 2.7.3
@swalkinshaw
swalkinshaw / tutorial.md
Last active November 13, 2023 08:40
Designing a GraphQL API
@maxdbn
maxdbn / AWS_Single_LetsEncrypt.yaml
Created February 26, 2018 12:32 — forked from tony-gutierrez/AWS_Single_LetsEncrypt.yaml
AWS Elastic Beanstalk .ebextensions config for single instance free SSL using letsencrypt certbot and nginx. http://bluefletch.com/blog/domain-agnostic-letsencrypt-ssl-config-for-elastic-beanstalk-single-instances/
# Dont forget to set the env variable "certdomain", and either fill in your email below or use an env variable for that too.
# Also note that this config is using the LetsEncrypt staging server, remove the flag when ready!
Resources:
sslSecurityGroupIngress:
Type: AWS::EC2::SecurityGroupIngress
Properties:
GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]}
IpProtocol: tcp
ToPort: 443
@adamzaninovich
adamzaninovich / neovim-setup.md
Last active February 13, 2024 11:24
How to get an awesome neovim setup that runs tests asynchronously in a neoterm split

How to get an awesome neovim setup that runs tests asynchronously in a neoterm split

Example

Installing neovim

brew install neovim/neovim/neovim
@staltz
staltz / introrx.md
Last active July 22, 2024 09:31
The introduction to Reactive Programming you've been missing
@crtr0
crtr0 / client.js
Created June 8, 2012 17:02
A simple example of setting-up dynamic "rooms" for socket.io clients to join
// set-up a connection between the client and the server
var socket = io.connect();
// let's assume that the client page, once rendered, knows what room it wants to join
var room = "abc123";
socket.on('connect', function() {
// Connected, let's sign-up for to receive messages for this room
socket.emit('room', room);
});