Skip to content

Instantly share code, notes, and snippets.

View vallieres's full-sized avatar
🏡
Working from Home

Alexandre Vallières-Lagacé vallieres

🏡
Working from Home
View GitHub Profile
@vallieres
vallieres / generate-articles-jekyll.py
Last active November 17, 2015 18:01 — forked from jaden/generate-articles.py
A script that generates 5000 test posts for Hugo benchmarks
# Create specified number of articles for Jekyll benchmarks
from datetime import datetime
import random
import string
from sys import argv
def generateWord():
length = random.randint(1, 10)
word = ''.join(random.choice(string.letters) for _ in range(length))
@vallieres
vallieres / download_compile_bfgminer.sh
Created May 23, 2014 14:28
Get latest bfgminer and compile
git clone https://github.com/luke-jr/bfgminer.git
cd bfgminer
CFLAGS="-O2 -Wall -march=native"
./autogen.sh
./configure --enable-gridseed --enable-scrypt --disable-adl --disable-avalon --disable-bifury --disable-bfx --disable-hashbuster --disable-hashbusterusb --disable-hashfast --disable-bitfury --disable-bigpic --disable-littlefury --disable-nanofury --disable-hashbuster --disable-bitforce --disable-icarus --disable-klondike --disable-knc --disable-modminer --disable-x6500 --disable-ztex
make
@vallieres
vallieres / rpi-temp.sh
Last active August 29, 2015 14:01
Get Chip Temperature for Raspberry Pi
#!/bin/bash
######################################################################
# Raspberry Pi
#
# Gross Script by Vallières (Alexandre Vallières-Lagacé) <alexandre.valliereslagace@gmail.com>
# V1.0 2014-05-16
#
# Use the thermal zone0 to obtain the Temp of the SOC
#
# No dependencies
@vallieres
vallieres / rpi-temp-volt.sh
Created May 16, 2014 14:32
Raspberry Pi - Get Temperature and Voltage
#!/bin/bash
clear
sleep 2
echo
date
echo
echo 'Firmware Version'
/opt/vc/bin/vcgencmd version
echo
tm=`/opt/vc/bin/vcgencmd measure_temp`