Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Bruno Casali brunoocasali

🏠
Working from home
  • Rockstar Coders
  • window.location
View GitHub Profile
@bendemboski
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
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
inaiat / envoy-filter.yaml
Created Apr 25, 2020
Setting request headers with values from a JWT
View envoy-filter.yaml
apiVersion: "security.istio.io/v1beta1"
kind: RequestAuthentication
metadata:
name: echoserver
namespace: default
spec:
selector:
matchLabels:
app: echoserver
jwtRules:
@vasind
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
// https://discuss.emberjs.com/t/tips-for-improving-build-time-of-large-apps/15008/12
// https://www.gokatz.me/blog/how-we-cut-down-our-ember-build-time/
//ember-cli-build.js
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
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 web.whatsapp.com;
- Selecione a conversa que você quer;
- Abra o console e cole o código que está no gist;
View Gemfile
source "https://rubygems.org"
gem 'activerecord', '~> 5.1'
gem 'mysql2', '~> 0.4'
gem 'spreadsheet'
@mupkoo
mupkoo / .gitlab-ci.yml
Created Aug 22, 2017
Using Ember-CLI with Chrome on GitLab CI
View .gitlab-ci.yml
image: node:7.10
cache:
paths:
- node_modules/
- bower_components/
before_script:
# Install Chrome
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
@ldong
ldong / Ember_data_rest_api.md
Last active Jun 17, 2020
Ember Data REST response
View Ember_data_rest_api.md

Ember Data REST response

createRecord

URL: /users/

Method: POST

Request Data:

@wingsuitist
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
// https://karma-runner.github.io/0.13/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular/cli'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),