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 / metro.config.js
Created January 27, 2020 18:50
react-native-svg
const {getDefaultConfig} = require('metro-config');
module.exports = (async () => {
const {
resolver: {sourceExts, assetExts},
} = await getDefaultConfig();
return {
transformer: {
babelTransformerPath: require.resolve('react-native-svg-transformer'),
},
version: "3"
services:
mysql:
container_name: mysql
image: mysql:5.7
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: secret
volumes:
map $http_x_forwarded_host $custom_forwarded_host {
default "$server_name";
upstream-srv "upstream-srv";
}
server {
server_name domain.com;
# Proxy Config
location / {
proxy_pass http://upstream-srv;
version: '3'
services:
db-headless:
container_name: db-headless
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=${WORDPRESS_DB_NAME}
- MYSQL_PASSWORD=${WORDPRESS_DB_PASSWORD}
- MYSQL_USER=${WORDPRESS_DB_USER}
function handleActiveAreaClick(activeAreaID) {
setState({...state, activeAreaID});
}
return (
<React.Fragment>
<ScrollViewContainer>
{areas.map(area => (
<TabContent
key={area.uuid}
[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
#!/bin/sh
git --work-tree=/var/www/repo --git-dir=/var/repo/repo.git checkout -f
/* 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/"],
mongodump -d <COLLECTION> -u <USER> -p <PASS> --authenticationDatabase admin
@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