Skip to content

Instantly share code, notes, and snippets.

View uselessdev's full-sized avatar
🏠
Working from home

Wallace Batista uselessdev

🏠
Working from home
View GitHub Profile
const revenue = process.argv[2]
const prolabore = 28
const das = 6
const prolaboreAmount = ((prolabore / 100) * revenue)
const getINSSTaxAmount = () => {
if (prolaboreAmount <= 1100) {
return 7.5
}
### Keybase proof
I hereby claim:
* I am uselessdev on github.
* I am iamwallace (https://keybase.io/iamwallace) on keybase.
* I have a public key ASBMpXCEFuvacJHu-V26ecqZCr-S-LQ94uIaYIOZalpY_go
To claim this, I am signing this object:
import path from 'path'
import webpack from 'webpack'
import ReactRefreshPlugin from '@pmmmwh/react-refresh-webpack-plugin'
const config: webpack.Configuration = {
entry: path.resolve(__dirname, './src/index.tsx'),
module: {
rules: [
{
@uselessdev
uselessdev / boost.js
Created March 26, 2020 15:08
Gist com tarefas de gulp onde fiz a gambiarra mais legal da minha vida.
'use strict';
const usrKey = process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME']
module.exports = {
styl: {
'src': './src/assets/stylus/*.styl',
'dist': './src/assets/styles',
'watch': './src/assets/stylus',
'compiled': './dist/assets/styles'
@uselessdev
uselessdev / docker-compose.yml
Last active June 28, 2017 13:24
Docker Compose Snippets
version: '2'
volumes:
app-mysql-data:
driver: local
services:
mysql:
image: mysql
container_name: app-mysql
@uselessdev
uselessdev / git.md
Last active March 3, 2017 04:59
Useful git bash functions

Git

Just paste this on your ~/.bash_profile, ~/.bashrc or ~/.zshrc, run source ~/.bashrc (or ~/.zshrc) and done!

nano ~/.bash_profile
# paste the functions below in your ~/.bash_profile and save it
source ~/.bashrc
@uselessdev
uselessdev / group.md
Created January 1, 2017 20:46
Group data in MongoDB

Pegando dados do banco usando $group

db.plantas.aggregate({
  $group: {
    _id: "$jardineiro",
    plantas: { $push: "$nome" }
  }
})

Keybase proof

I hereby claim:

  • I am uselessdev on github.
  • I am uselessdev (https://keybase.io/uselessdev) on keybase.
  • I have a public key whose fingerprint is A3B2 191C 4FE0 80F1 6CBE 9ECF C08C CF29 291D 8912

To claim this, I am signing this object:

WP-CLI

Remember list

# Reference: https://wp-cli.org/commands/core/

$ wp core download --locale=(idioma) --path=(path) && cd path
$ wp core config --dbname=(database) --dbuser=homestead --dbpass=secret

Opencart

installation via clone

Installation steps

Using vagrant as serve

  • git clone git@github.com:opencart/opencart.git <store-name>
  • vagrant ssh &amp;&amp; cd /vagrant/www//upload