Skip to content

Instantly share code, notes, and snippets.

View mtuchi's full-sized avatar
🦣
console.log('o_0')

Emmanuel Evance mtuchi

🦣
console.log('o_0')
View GitHub Profile
@mtuchi
mtuchi / apache-nginx-ftp
Created July 24, 2019 18:10 — forked from solancer/apache-nginx-ftp
Correct permissions for /var/www/html
// Adding current user to www-data
sudo adduser $USER www-data
//change ownership to user:www-data and
sudo chown $USER:www-data -R /var/www/html
sudo chmod u=rwX,g=srX,o=rX -R /var/www/html
// change file permissions of existing files and folders to 755/644
sudo find /var/www/html -type d -exec chmod g=rwxs "{}" \;
@mtuchi
mtuchi / Procfile
Created May 3, 2019 11:53 — forked from sdrew/Procfile
Laravel configs for Heroku/Dokku
web: vendor/bin/heroku-php-apache2 public/
@mtuchi
mtuchi / downloader.js
Created October 15, 2018 06:40 — forked from jhidalgo3/downloader.js
Use NodeJS to download files
var path = require('path');
var url = require('url');
var http = require('http');
var fs = require('fs');
var write_file;
//what global variable do we have?
var complete = false;
var content_length = 0;
var downloaded_bytes = 0;
@mtuchi
mtuchi / README.md
Created June 29, 2017 02:04 — forked from dtinth/README.md
Batch File Rename Script

Batch File Rename

Use JavaScript for Automation to rename files in batch!

Motivation

@mtuchi
mtuchi / README.md
Created June 28, 2017 11:14 — forked from genomics-geek/README.md
Setting up a Dockerized web application with Django REST APIs, ReactJS with Redux pattern, and Webpack Hot Reloading! Mouthful.

Guide on how to create and set up a Dockerized web app using Django REST APIs and ReactJS

Hopefully this will answer "How do I setup or start a Django project using REST Framework and ReactJS?"

This is a guide to show you step by step how this can be setup. If you just want to get started, use the cookiecuter I set up cookiecutter-django-reactjs. It basically is a fork of pydanny's cookiecutter, just added the front-end stuff :).

I created this because it was SUCH a pain in the ass setting up a project using all the latest technologies. After some research, I figured it out and have it working. The repo that implements this is located here. Feel free to use it as a boilerplate ;)

Main features:

  • Django REST APIs
@mtuchi
mtuchi / font-family-s.css
Created May 31, 2017 22:17 — forked from hadongsoo/font-family-s.css
font-family collection
/* https://css-tricks.com/snippets/css/system-font-stack/ */
/* System Fonts as used by GitHub */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
/* System Fonts as used by Medium and WordPress */
body {
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
}
@mtuchi
mtuchi / .editorconfig
Last active March 21, 2017 14:31 — forked from joshuamabina/.editorconfig
EditorConfig is awesome (http://editorconfig.org)
# EditorConfig is awesome: http://EditorConfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = tab
indent_size = tab
tab_width = 4