Skip to content

Instantly share code, notes, and snippets.

Working from home

Bruno Casali brunoocasali

Working from home
  • Rockstar Coders
  • window.location
View GitHub Profile
bendemboski / webpack.config.js
Created May 18, 2021
Webpack config to make ember-power-select work with embroider optimized
View webpack.config.js
module.exports = {
module: {
rules: [
// ember-power-select does a lot of dynamic component acrobatics that
// embroider can't statically analyze. Fortunately, we don't actually use
// any of the dynamic-ness, so we can just flatten it all to static
// invocations.
test: /\/ember-power-select\/.+\/power-select\.hbs$/,
loader: 'string-replace-loader',
dhh / Gemfile
Created Jun 24, 2020
HEY's Gemfile
View Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
inaiat / envoy-filter.yaml
Created Apr 25, 2020
Setting request headers with values from a JWT
View envoy-filter.yaml
apiVersion: ""
kind: RequestAuthentication
name: echoserver
namespace: default
app: echoserver
vasind / ember-cli-build.js
Last active Nov 11, 2021
Ember CLI performance improvements and tips
View ember-cli-build.js
// Credits to the following posts that helps me to reduce build times drastically
let EmberApp = require('ember-cli/lib/broccoli/ember-app');
let env = EmberApp.env(),
View kill all evicted pods
kubectl get po --all-namespaces | grep Evicted | awk '{print $2, "--namespace", $1}' | xargs kubectl delete pod
callmeloureiro / comoSerChatoNoWhatsapp.js
Last active Nov 1, 2021
Como fazer alguém te responder no whatsapp
View comoSerChatoNoWhatsapp.js
Hoje iremos MUDAR a vida da pessoa que não te responde no whatsappp...
Que tal enviar mensagens pra ela até obter uma resposta?!
Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê!
Para utilizar:
- Abra o;
- Selecione a conversa que você quer;
- Abra o console e cole o código que está no gist;
View Gemfile
source ""
gem 'activerecord', '~> 5.1'
gem 'mysql2', '~> 0.4'
gem 'spreadsheet'
mupkoo / .gitlab-ci.yml
Created Aug 22, 2017
Using Ember-CLI with Chrome on GitLab CI
View .gitlab-ci.yml
image: node:7.10
- node_modules/
- bower_components/
# Install Chrome
- wget -q -O - | apt-key add -
ldong /
Last active Jun 17, 2020
Ember Data REST response

Ember Data REST response


URL: /users/

Method: POST

Request Data:

wingsuitist / karma.conf.js
Created Jul 5, 2017
karma.conf.js: Angular 4 and testing: angular/cli + gitlab-ci + ng test + PhantomJS. Raw Raw
View karma.conf.js
// Karma configuration file, see link for more information
module.exports = function (config) {
basePath: '',
frameworks: ['jasmine', '@angular/cli'],
plugins: [