I hereby claim:
- I am gaboesquivel on github.
- I am gaboesquivel (https://keybase.io/gaboesquivel) on keybase.
- I have a public key ASDygR9c6uP0ptFi_geMIVHaWut8caJbrkpf3QcmSk1Tqwo
To claim this, I am signing this object:
import React from 'react'; | |
import { shallow } from 'enzyme'; | |
import MyComponent from '../src/my-component'; | |
const wrapper = shallow(<MyComponent/>); | |
describe('(Component) MyComponent', () => { | |
it('renders without exploding', () => { | |
expect(wrapper).to.have.length(1); | |
}); |
I hereby claim:
To claim this, I am signing this object:
#! /usr/bin/env python3.5 | |
""" | |
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04 and also debian jessie, with bluez5. | |
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
This will be only fixes the bluez5 problem mentioned above . |
// mongoose 4.3.x | |
var mongoose = require('mongoose'); | |
/* | |
* Mongoose by default sets the auto_reconnect option to true. | |
* We recommend setting socket options at both the server and replica set level. | |
* We recommend a 30 second connection timeout because it allows for | |
* plenty of time in most operating environments. | |
*/ | |
var options = { server: { socketOptions: { keepAlive: 300000, connectTimeoutMS: 30000 } }, |
cat /etc/apt/sources.list | uniq -u > /tmp/sources.list && sudo mv /tmp/sources.list /etc/apt/sources.list | |
cat /etc/apt/sources.list.d/sources.list | uniq -u > /tmp/sources.list && sudo mv /tmp/sources.list /etc/apt/sources.list.d/sources.list |
aws s3api list-buckets | jq -r ".Buckets[] | .Name" | while read -r line; do aws s3 rb s3://$line --force; done |
CloudFormation snippet to create a VPC to be used for lambda functions. Qualities of the VPC:
Notes:
I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):
For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.
I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):
For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.