Skip to content

Instantly share code, notes, and snippets.

Working from home

Chris Fidao fideloper

Working from home
Block or report user

Report or block fideloper

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
fideloper /
Created Jun 27, 2016
Provision ubuntu 16.04 vagrant machine
#!/usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get -y upgrade
# Get "add-apt-repository" Command
sudo apt-get install -y software-properties-common
fideloper / 22-fluentd.conf
Last active Apr 8, 2016
Quick notes on using Fluentd
View 22-fluentd.conf
# rsyslog conf referenced in tasks.yml
*.* @
fideloper /
Last active Mar 31, 2016
MySQL 5.7, Ubuntu 14.04 mystery


I have mysql 5.7.11-log installed on Ubuntu 14.04, installed from MySQL official deb repository deb trusty mysql-5.7.


Basically everything is stock configuration.

  • Innodb buffer pool is set to only 250M to ensure MySQL doesn't allocate too much to the buffer pool. There's only one innodb pool.
fideloper / SlackOAuthController.php
Last active Feb 17, 2017
Slack oAuth2.0 Round Trip
View SlackOAuthController.php
namespace App\Http\Controllers\Auth;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use GuzzleHttp\Client;
class SignedRequest:
def __init__(self, request, secret):
self.request = request
self.secret = secret
def expected_signature(self):
method = self.request.method
uri = self.request.path
extras = self._get_extra_parameters()
fideloper /
Last active Aug 18, 2019
Update curl on Ubuntu 14.04
#! /usr/bin/env bash
# Install any build dependencies needed for curl
sudo apt-get build-dep curl
# Get latest (as of Feb 25, 2016) libcurl
mkdir ~/curl
cd ~/curl
tar -xvjf curl-7.50.2.tar.bz2
fideloper /
Last active Dec 18, 2018
instal mysql5.7 non-interactive on ubuntu 14.04
#!/usr/bin/env bash
# This is assumed to be run as root or with sudo
export DEBIAN_FRONTEND=noninteractive
# Import MySQL 5.7 Key
# gpg: key 5072E1F5: public key "MySQL Release Engineering <>" imported
apt-key adv --keyserver --recv-keys 5072E1F5
echo "deb trusty mysql-5.7" | tee -a /etc/apt/sources.list.d/mysql.list
fideloper / exec_file.js
Created Jan 4, 2016
Execute a shell script
View exec_file.js
// Import fs (filesystem)
var chmodSync = require('fs').chmodSync;
// Import execFile, to run our bash script
var execFile = require('child_process').execFile;
chmodSync('./', 0755);
var execOptions = {
maxBuffer: 1024 * 1024 * 5 // Increase max buffer to 5mb
fideloper /
Last active Apr 30, 2016
Install MySQL 5.7 (dev, not general availability)
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get install -y vim curl tmux wget unzip zip htop
sudo apt-key adv --keyserver --recv-keys A4A9406876FCBD3C456770C88C718D3B5072E1F5
sudo cat > /etc/apt/sources.list.d/mysql.list <<EOL
View http_request.json
"_index": "http-access-2015.08.28",
"_type": "fluentd",
"_id": "AU91sX8H3fvMhMs_8892",
"_score": null,
"_source": {
"remote": "",
"host": "-",
"user": "-",
"method": "\\x16\\x03\\x01\\x010\\x01\\x00\\x01,\\x03\\x03\\x18\\x1B\\x85\\xAA\\x81\\xA7\\x91\\x1F\\xDA\\xCA1rg+\\xB0\\x1F\\x94\\xF3\\xE9\\x03\\xB5\\x80$g*\\x18\\xEFeAv\\xDES\\x00\\x00\\x96\\xC00\\xC0,\\xC0(\\xC0$\\xC0\\x14\\xC0",
You can’t perform that action at this time.