Skip to content

Instantly share code, notes, and snippets.

View lucenarenato's full-sized avatar
🐘
Remoto

Renato Lucena lucenarenato

🐘
Remoto
View GitHub Profile
@rafaelstz
rafaelstz / magedeploy.sh
Created May 12, 2020 21:35
Magento 2 Deploy script
#!/usr/bin/env bash
LANGUAGES="en_US pt_BR"
# production or developer
ENVIRONMENT="production"
COMPOSER=$(which composer)
PHP=$(which php)
ROOT=$(pwd)

1. Create React App

# Install package
$ npm install -g create-react-native-web-app
 
# Run create-react-native-web-app <project-directory>
$ create-react-native-web-app myApp
 
# cd into your <project-directory>
$ cd myApp
@aalfiann
aalfiann / Navicat Premium 12.desktop
Last active March 16, 2021 18:03
Example Navicat Premium 12.desktop using wine 32bit
[Desktop Entry]
Name=Navicat Premium 12
Exec=sh -c "cd /home/YOUR_USERNAME/.wine/drive_c/Program\ Files/PremiumSoft/Navicat\ Premium\ 12/; wine navicat.exe"
Type=Application
StartupNotify=true
Path=/home/YOUR_USERNAME/.wine/dosdevices/c:/Program Files/PremiumSoft/Navicat Premium 12
Icon=8F8C_navicat.0
StartupWMClass=navicat.exe
@jbnv
jbnv / Authenticate.php
Last active April 29, 2021 02:31
Debugging 401 Unauthorized on Laravel web/auth route
class Authenticate extends \Illuminate\Auth\Middleware\Authenticate
{
protected function redirectTo($request)
{
if (! $request->expectsJson()) {
return route('login');
}
}
}
@diego3g
diego3g / settings.json
Last active July 12, 2025 02:34
VSCode Settings (Updated)
{
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 16,
"editor.lineHeight": 1.8,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [
80,
120
],

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export ANDROID_HOME=~/Android/Sdk
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
# Path to your oh-my-zsh installation.
export ZSH="/Users/diegofernandes/.oh-my-zsh"
export PATH="$PATH:/usr/local/bin"
@abdallahokasha
abdallahokasha / Laravel-Installation.md
Last active January 14, 2022 04:10
Install php7.2 and Laravel5.5 on Ubuntu 16.04

Install php7.2 for ubuntu 16.04

sudo apt update && sudo apt upgrade

sudo apt-get install software-properties-common python-software-properties

sudo add-apt-repository -y ppa:ondrej/php

@andymotta
andymotta / Jenkinsfile.groovy
Created December 28, 2018 21:26
Use Terraform latest docker image in Declarative Jenkins Pipeline
pipeline {
agent {
docker {
image 'hashicorp/terraform:latest'
label 'LINUX-SLAVE'
args '--entrypoint="" -u root -v /opt/jenkins/.aws:/root/.aws'
}
}
options {
ansiColor('xterm')
@fmacpro
fmacpro / raspbianwebcamscontrols.txt
Last active May 12, 2022 18:09
Raspbian USB Webcam commands
# set manual exposure
v4l2-ctl --set-ctrl exposure_auto=1
# set long exposure
v4l2-ctl --set-ctrl exposure_absolute=10000
# set maxiumum brightness
v4l2-ctl --set-ctrl brightness=64
# set minimum contrast