Skip to content

Instantly share code, notes, and snippets.

View BeKnowDo's full-sized avatar
:bowtie:
Focusing

Cesar Perez BeKnowDo

:bowtie:
Focusing
View GitHub Profile
@jimothyGator
jimothyGator / README.md
Last active April 25, 2024 18:00
Nginx configuration for Mac OS X with Homebrew, using sites-enabled directory.
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-available
  • homebrew.mxcl.nginx.plist to /Library/LaunchDaemons/
@foozlereducer
foozlereducer / A installation Process
Last active January 8, 2020 15:24
Sierra / El Capitain NGINX, PHP_FPM, FastCGI, SSH, WordPress, HTML setup
If reinstalling, the items preceded with (s) can be skipped on the reinstall
1) on your Mac open your terminal
2) Install Home Brew: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
3) Install NGINX ( Webserver ): brew install nginx
4) (s) Install dnsmasq for local DNS and subdomains like oc.test:
~ The following commands will install dnsmasq, configure it to point all requests to the .test top-level domain to
our local machine, and make sure it starts up and runs all of the time.
~ brew install dnsmasq
~ cd $(brew --prefix); echo 'address=/.test/127.0.0.1' > etc/dnsmasq.conf
~ sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons
@mblarsen
mblarsen / app__Console__Commands__WebpackCommand.php
Last active June 11, 2018 00:43
Laravel and Webpack (with webpack-dev-server)
<?php
namespace Supawdog\Console\Commands;
use Illuminate\Console\Command;
use Symfony\Component\Process\ProcessUtils;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Process\PhpExecutableFinder;
class WebpackCommand extends Command
@datchley
datchley / react-redux-style-guide.md
Last active February 13, 2024 14:30
React + Redux Style Guide
@RichardMarks
RichardMarks / deepCopy.js
Created June 2, 2017 19:46
JavaScript ES6 - simple deep copy routine (does not handle circular references) MIT License
// deepCopy.js
// simple deep copy routine
// does not handle circular references
// (C) 2017, Richard Marks. MIT License
// ccpsceo@gmail.com http://www.ccpssolutions.com
// use:
// const { deepCopy, runTests } = require('./deepCopy')
// const clone = deepCopy(source)
//
@heygrady
heygrady / render-props.md
Last active March 22, 2024 13:12
Avoiding HOC; Favoring render props
@mikaelbalin
mikaelbalin / dev-tools.md
Last active November 7, 2020 15:59
Web dev tools - [x] Запросить пароль - [ ] Обновление - запустить обновление - [ ] Конфигурация Git - выполнить команды - [ ] Установка и настройка fish - [ ] Настройка SSH - скачать файлы в нужные места - настроить fish - [ ] Установка Home
@BeKnowDo
BeKnowDo / ubuntu-setup.md
Last active March 10, 2024 15:05
Setting up Ubuntu for my development environment and other utilities

Ubuntu 20.04

Installing gDebi

sudo apt install gdebi-core

Sharing Drives via Samba

  • Install the taskel and samba server packages
    • sudo tasksel install samba-server
    • sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
    • sudo bash -c 'grep -v -E "^#|^;" /etc/samba/smb.conf_backup | grep . > /etc/samba/smb.conf'
  • sudo nano /etc/samba/smb.conf
@lens0021
lens0021 / 1provision.sh
Last active September 4, 2022 03:32
Provision ubuntu
#!/bin/bash
set -euo pipefail; IFS=$'\n\t'
export LINUX_ID="$(lsb_release --id --short)"
#
# Bluetooth
#
rfkill block bluetooth
@ramytamer
ramytamer / Dockerfile
Created October 18, 2020 20:03
Laravel Docker Alpine
FROM php:7.4-fpm-alpine as App
ARG BUILD_ENV=development
ARG MIX_ENV_FILE=.env.development
ENV BUILD_ENV=${BUILD_ENV}
WORKDIR /app