Skip to content

Instantly share code, notes, and snippets.

View hungdev's full-sized avatar
💭
I may be slow to respond.

Hung Vu hungdev

💭
I may be slow to respond.
View GitHub Profile
@hungdev
hungdev / old rule wassha.md
Created January 7, 2019 10:32
old rule wassha
module.exports = {
  extends: "airbnb",
  root: true,
  parser: 'babel-eslint',
  parserOptions: {
    sourceType: 'module',
    "ecmaFeatures": {
      "jsx": true
    }
@hungdev
hungdev / Proxifier for Mac V2.19 Key
Created January 22, 2019 16:13
Proxifier for Mac V2.19 Key
Proxifier for Mac V2.19 Key
P427L-9Y552-5433E-8DSR3-58Z68
name: any
@hungdev
hungdev / table-example-reactrap.md
Created January 23, 2019 07:24
table-example-reactrap
<Table responsive bordered>
  <thead style={{ textAlign: 'center' }}>
    <tr>
      <th>Rank</th>
      <th>Name</th>
      <th>Region</th>
      <th>Sales</th>
      <th>Achievement</th>
 
@hungdev
hungdev / css-selectors.md
Created January 31, 2019 03:56 — forked from magicznyleszek/css-selectors.md
CSS Selectors Cheatsheet

CSS Selectors Cheatsheet

Element selectors

Element -- selects all h2 elements on the page

h2 {
    foo: bar;
@hungdev
hungdev / LC_CTYPE.txt
Created April 1, 2019 16:30 — forked from hjianbo/LC_CTYPE.txt
Centos warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
@hungdev
hungdev / node download.md
Last active April 5, 2019 13:27
node download
'use strict'

const Fs = require('fs')  
const Path = require('path')  
const Axios = require('axios')

async function downloadImage () {  
  const url = 'https://unsplash.com/photos/AaEQmoufHLk/download?force=true'
 const path = Path.resolve(__dirname, 'images', 'code.jpg')
@hungdev
hungdev / remove all node module script.md
Created May 3, 2019 08:35
remove all node module script

sudo find /Users/cee/Desktop -name "node_modules" -exec rm -rf '{}' +

@hungdev
hungdev / document style.md
Last active May 5, 2019 07:25
document style
alignContent: ""
alignItems: ""
alignSelf: ""
alignmentBaseline: ""
all: ""
animation: ""
animationDelay: ""
animationDirection: ""
animationDuration: ""
@hungdev
hungdev / deploy with other node.md
Created May 9, 2019 09:49
deploy with other node.md

dung pm2 start index.js

upstream servernode{
   ip_hash;
    server 127.0.0.1:3000;
}
server {
    server_name downloadblog.net;
    client_max_body_size 100M;