Skip to content

Instantly share code, notes, and snippets.

@gaboesquivel
gaboesquivel / cloudSettings
Created Jun 16, 2020 — forked from elkevinwolf/cloudSettings
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-06-14T05:55:09.813Z","extensionVersion":"v3.4.3"}
@gaboesquivel
gaboesquivel / hackathon_how_to.md
Created Sep 20, 2018 — forked from sergmetelin/hackathon_how_to.md
Hackathon Getting Started guide
View hackathon_how_to.md

About EOSIO

The EOS.IO software introduces a new blockchain architecture designed to enable vertical and horizontal scaling of decentralized applications. This is achieved by creating an operating system-like construct upon which applications can be built. The software provides accounts, authentication, databases, asynchronous communication and the scheduling of applications across many CPU cores or clusters. The resulting technology is a blockchain architecture that may ultimately scale to millions of transactions per second, eliminates user fees, and allows for quick and easy deployment and maintenance of decentralized applications, in the context of a governed blockchain.

About this guide:

Full documentation can be found at https://developers.eos.io/

The purpose of this document is to setup you development environment in an agile manner and prepare you for the development of your project ideas.

@gaboesquivel
gaboesquivel / Xdebug.md
Created May 29, 2018 — forked from vicgonvt/Xdebug.md
Instructions for Installing Xdebug in a Mac with Laravel, Valet and Sublime Text
View Xdebug.md

NOTE: This assumes that you have Valet, Homebrew, Sublime Text and PHP properly installed and functioning and will only focus on the setup and installation and setup of Xdebug. There are other tutorials that go into great depth explaining how to get those tools installed on your mac.

Let's get started right away!

Installing Xdebug

You need to know which version of PHP you are running in your machine. To do so, from the terminal run the command php -v and this will display something like this

PHP 7.0.14 (cli) (built: Dec  8 2016 23:34:17) ( NTS )
@gaboesquivel
gaboesquivel / nginxproxy.md
Created Apr 6, 2018 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?
View nginxproxy.md

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

View nginx_docker_redirect.conf
# This will redirect a numerical subdomain to a port.
# A use would be Docker contianers.
# This relies on the following DNS record:
# *.test.domain.com IN A 10.100.199.31
# and the fact that this container would run on the same Docker
# host as the backends.
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
View agendaJobs.js
const oauth = Npm.require('oauth');
const Agenda = Npm.require('agenda');
Meteor.startup(function(){
const mongoURL = process.env.MONGO_URL;
var agenda = new Agenda({db: {address: mongoURL}});
agenda.define('sync_inventory', Meteor.bindEnvironment(function(job, done) {
try {
syncInventory();
@gaboesquivel
gaboesquivel / standardJS-in-CRA.md
Created Dec 8, 2017 — forked from dreamorosi/standardJS-in-CRA.md
Add Standard JS to create-react-app project
View standardJS-in-CRA.md

Standard JS in create-react-app

I've been using create-react-app lately as I find it very useful to kick things off while starting a project. I almost always follow JavaScript Standard Style and I found myself googling it so I figured out I should write it down.

Get Standard JS

I really like keeping dependencies as local as possible but if you prefer you can install it globally.

yarn add standard --dev

or

@gaboesquivel
gaboesquivel / my-component.spec.js
Created Nov 6, 2017 — forked from thevangelist/my-component.spec.js
The only React.js component test you'll ever need (Enzyme + Chai)
View my-component.spec.js
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);
});
@gaboesquivel
gaboesquivel / a2dp.py
Created Aug 21, 2017 — forked from pylover/a2dp.py
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
View a2dp.py
#! /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 .