I hereby claim:
- I am martiuh on github.
- I am martiuh (https://keybase.io/martiuh) on keybase.
- I have a public key ASAUxuI6jtk0-k6HVAqLdMsnhdogb6VO29WCdEKEyYVgFwo
To claim this, I am signing this object:
/** | |
* Generate a `.env.production` file depending on the value from TARGET_ENV environment variable | |
* created with ❤️ by Tona González (@martiuh) | |
*/ | |
const fs = require('fs'); | |
/** | |
* @description copies the given `.env.base.${TARGET_ENV}` file to a `.env.production` file. | |
*/ |
I hereby claim:
To claim this, I am signing this object:
Imaginemos que la página es esto
function App() {
<h1>Hello World</h1>
}
con client side tu mandas un index.html
vacío como este
[user] | |
name = Tonatiuh González | |
email = [email protected] | |
[core] | |
pager = diff-so-fancy | less --tabs=4 -RFX | |
excludesfile = ~/.gitignore_global | |
[includeIf "gitdir:~/BSA/"] | |
path = ~/.gitconfig-bsa |
ErrorDocument 404 /404.html | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ | |
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ | |
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
# Map http://www.example.com to /dist. |
APP_PORT=49159 | |
log () { | |
echo $1 >> /home/hidroval/monitor.log | |
} | |
if /usr/bin/netstat -anp | /usr/bin/grep 49154 > /dev/null; then | |
log "API IS UP" | |
else | |
cd /home/hidroval/api/ |
/* | |
Server for make a self-building gatsby site | |
Build by Tonatiuh González <[email protected]> | |
with love to the community | |
*/ | |
const http = require('http') | |
const fs = require('fs') | |
const { spawn, exec } = require('child_process') | |
const port = process.env.NODE_ENV ? parseInt(process.env.NODE_ENV, 10) : 3000 | |
// ls.stdout.on('data', data => { |
const ranks = require('./ranks') | |
module.exports = (ownRole, otherRole) => { | |
if (!ownRole) { | |
console.error('ownRole es necesario') | |
return false | |
} | |
let activeRanks = Object.keys(ranks).map(R => ({ | |
name: R, content: ranks[R], solved: false, from: [], parent: null | |
})) |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^www\. | |
RewriteRule ^(.*)$ https://example.com.mx/$1 [R=301,L] | |
RewriteCond %{HTTPS} off | |
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ | |
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ | |
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ | |
RewriteRule ^(.*)$ https://example.com.mx/$1 [L,R=301] |
RewriteCond %{REQUEST_URI} !=^/movies/(\d*)/?$ | |
RewriteRule ^movies/\d* /public/movies/movieId/ [L] |