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
fideloper / provision.sh
Created Jun 27, 2016
Provision ubuntu 16.04 vagrant machine
View provision.sh
#!/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
fideloper / 22-fluentd.conf
Last active Apr 8, 2016
Quick notes on using Fluentd
View 22-fluentd.conf
# rsyslog conf referenced in tasks.yml
*.* @127.0.0.1:42185
@fideloper
fideloper / mysql.md
Last active Mar 31, 2016
MySQL 5.7, Ubuntu 14.04 mystery
View mysql.md

Install

I have mysql 5.7.11-log installed on Ubuntu 14.04, installed from MySQL official deb repository deb http://repo.mysql.com/apt/ubuntu/ trusty mysql-5.7.

Configuration

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
fideloper / SlackOAuthController.php
Last active Feb 17, 2017
Slack oAuth2.0 Round Trip
View SlackOAuthController.php
<?php
namespace App\Http\Controllers\Auth;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use GuzzleHttp\Client;
View authorize_request.py
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
fideloper / update_curl.sh
Last active Aug 18, 2019
Update curl on Ubuntu 14.04
View update_curl.sh
#! /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
wget http://curl.haxx.se/download/curl-7.50.2.tar.bz2
tar -xvjf curl-7.50.2.tar.bz2
@fideloper
fideloper / install_mysql.sh
Last active Dec 18, 2018
instal mysql5.7 non-interactive on ubuntu 14.04
View install_mysql.sh
#!/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 <mysql-build@oss.oracle.com>" imported
apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 5072E1F5
echo "deb http://repo.mysql.com/apt/ubuntu/ trusty mysql-5.7" | tee -a /etc/apt/sources.list.d/mysql.list
@fideloper
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('./build.sh', 0755);
var execOptions = {
maxBuffer: 1024 * 1024 * 5 // Increase max buffer to 5mb
};
@fideloper
fideloper / install_mysql.sh
Last active Apr 30, 2016
Install MySQL 5.7 (dev, not general availability)
View install_mysql.sh
#!/usr/bin/env bash
ROOT_USER_PASS='root'
sudo apt-get update
sudo apt-get install -y vim curl tmux wget unzip zip htop
sudo apt-key adv --keyserver ha.pool.sks-keyservers.net --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": "45.55.237.56",
"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.