Skip to content

Instantly share code, notes, and snippets.

View lucascardial's full-sized avatar
:shipit:
Full Stack

Lucas Cardial lucascardial

:shipit:
Full Stack
View GitHub Profile
@lucascardial
lucascardial / Readme.md
Last active December 10, 2018 18:54
Wordpress Theme dockerized

docker-compose up (-d optional)

@lucascardial
lucascardial / project-create.sh
Created January 17, 2019 16:08 — forked from francoisromain/project-create.sh
A bash script to create a Git post-receive hook to deploy after a Git push
#!/bin/bash
# Call this file with `bash ./project-create.sh project-name [service-name]`
# - project-name is mandatory
# - service-name is optional
# This will creates 4 directories and a git `post-receive` hook.
# The 4 directories are:
# - $GIT: a git repo
# - $TMP: a temporary directory for deployment
@lucascardial
lucascardial / settings.json
Created May 17, 2019 00:48
VSCODE Settings
{
"workbench.colorTheme": "Dracula",
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.fontSize": 18,
"editor.lineHeight": 24,
"editor.formatOnSave": true,
"editor.rulers": [80, 120],
"editor.tabSize": 2,
"editor.renderLineHighlight": "gutter",
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'my-pass';
@lucascardial
lucascardial / gist:3d1f46c49dc9e2fa7e1d78181449864f
Created June 13, 2019 01:40
Unhandled rejection Error: EACCES: permission denied
sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config
mongodump -d <COLLECTION> -u <USER> -p <PASS> --authenticationDatabase admin
/* eslint-disable */
const { parsed: localEnv } = require("dotenv").config();
const webpack = require("webpack");
module.exports = {
webpack(config, { dev }) {
if (dev) {
config.module.rules.push({
test: /\.js$/,
loader: "eslint-loader",
exclude: ["/node_modules/", "/.next/", "/out/"],
#!/bin/sh
git --work-tree=/var/www/repo --git-dir=/var/repo/repo.git checkout -f
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Postman
Comment=Postman Native App
Exec=/home/cardial/Applications/Postman/Postman
Icon=/home/cardial/Applications/Postman/app/resources/app/assets/icon.png
Terminal=false
StartupWMClass=postman
Type=Application
function handleActiveAreaClick(activeAreaID) {
setState({...state, activeAreaID});
}
return (
<React.Fragment>
<ScrollViewContainer>
{areas.map(area => (
<TabContent
key={area.uuid}