Skip to content

Instantly share code, notes, and snippets.

View quagliero's full-sized avatar

quag quagliero

View GitHub Profile
@quagliero
quagliero / README.md
Last active February 23, 2023 06:07
Installing cpuminer-multi on macOS 10.13.2 (High Sierra)

Installing cpuminer-multi on macOS 10.13.2 (High Sierra)

This assumes you have brew installed and are comfortable using a terminal.

Following the guide on https://github.com/tpruvot/cpuminer-multi will likely lead to errors about invalid paths to OpenSSL, and neoscrypt errors to the tune of Undefined symbols for architecture x86_64 during the build. I managed to piece together different fixes into an installation that has worked for me. So I hope it works for you.

Requirements

Ensure a c compiler is installed. Type g++ in the terminal and continue with the xcode installation if necessary. If it prints clang: error: no input files, then you can proceed.

@quagliero
quagliero / keybase.md
Created July 2, 2018 22:32
keybase verification

Keybase proof

I hereby claim:

  • I am quagliero on github.
  • I am quag (https://keybase.io/quag) on keybase.
  • I have a public key ASDK0Ac6ewigVmjFFmxAZ0Lr1NS6V3U_4OLLCGkZaPrXWAo

To claim this, I am signing this object:

@quagliero
quagliero / draft-scrape.js
Created August 2, 2017 16:00
Draft scraper
var osmosis = require('osmosis');
const teamsPicks = [];
osmosis.get('http://chumbo.league.fantasy.nfl.com/league/874089/history/2014/draftresults?draftResultsDetail=0&draftResultsTab=round&draftResultsType=results')
.find('#leagueDraftResultsResults .results .wrap > ul > li')
.set({
pick: '.count',
player: '.playerNameFull',
team: '.tw ul li.first',
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 13,
// font family with optional fallbacks
@quagliero
quagliero / gulpfile.js
Last active January 31, 2017 16:12
Gulpfile for Symfony2 Bundle assets (non-production)
var gulp = require('gulp');
var gutil = require('gulp-util');
var sass = require('gulp-ruby-sass');
// var sass = require('gulp-sass');
var jshint = require('gulp-jshint');
var concat = require('gulp-concat');
var rename = require('gulp-rename');
var browserSync = require('browser-sync');
var url = 'site.dev';
@quagliero
quagliero / gist:fdf51e3299768fa2f818
Created February 4, 2015 13:09
NFL Fantasy League History Almanac scrape
var req = require('request');
var cheerio = require('cheerio');
req('http://fantasy.nfl.com/league/874089/history', function (error, response, body) {
if (!error && response.statusCode == 200) {
var $ = cheerio.load(body);
console.log('\n');
$('[class*="history-champ"]').each(function (i, e) {
var $row = $(e);
var year = $row.find('.historySeason').text();
@quagliero
quagliero / .gitconfig
Created October 28, 2014 20:57
.gitconfig
[user]
name = <name>
email = <email>
[color]
ui = true
[alias]
changes = diff --name-status -r
new = !sh -c 'git log $1@{1}..$1@{0} "$@"'
@quagliero
quagliero / .vimrc
Created October 28, 2014 20:56
.vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@quagliero
quagliero / aside.css
Last active August 29, 2015 14:03
BEM Talk 2
.module {
padding: 5px;
}
.module--funky {
background-color: hotpink;
}
.module__title {
font-size: 1.4rem;
@quagliero
quagliero / aside.html
Last active August 29, 2015 14:03
BEM Talk 1
<aside class="module module--funky">
<h3 class="module__title">Title</h3>
<section class="module__text">
<p>bla bla bla</p>
<img class="module__img" src="img/foo.png">
<a href="/bar" class="module__link">Read more</a>
</section>
</aside>