Skip to content

Instantly share code, notes, and snippets.

View jasonblewis's full-sized avatar

Jason Lewis jasonblewis

View GitHub Profile
#!/usr/bin/env micropython
__author__ = 'Kamilion@gmail.com'
import socket
import sys
import _thread
class uPyIRC:
# Automatically initialized class variables
# Status variables
@VirtuBox
VirtuBox / php7.1.md
Last active June 14, 2021 19:50
How to install php7.1-fpm with EasyEngine

How to install php7.1-fpm with EasyEngine


Install php7.1-fpm

apt install php7.1-common php7.1-cli php7.1-zip php7.1-opcache php7.1-mysql php7.1-mcrypt php7.1-mbstring php7.1-json php7.1-intl php7.1-gd php7.1-fpm php7.1-curl php7.1-bz2

Copy the php7.1-fpm pool configuration from php7.0-fpm

cp -f /etc/php/7.0/fpm/pool.d/www.conf /etc/php/7.1/fpm/pool.d/www.conf
@genio
genio / 01_setup_EL.md
Last active November 24, 2022 08:45
ODBC and MSSQL on Linux/Mac

Enterprise Linux installation of ODBC is easy.

yum install unixODBC unixODBC-devel freetds freetds-devel perl-DBD-ODBC perl-local-lib

Configuration isn't much harder. You'll need to edit UnixODBC's driver list to add FreeTDS as an available driver.

  • vim /etc/odbcinst.ini
@koenkooi
koenkooi / spidev-max31855.c
Created July 18, 2012 08:28
Simple SPIdev example to read the data from an MAX31855 thermocouple amplifier
/* Simple SPIdev example to read the data from an MAX31855 thermocouple amplifier */
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#define ARRAY_SIZE(array) sizeof(array)/sizeof(array[0])
/* Dataformat:
* D[31:18] These bits contain the signed 14-bit thermocouple temperature value in degrees Celsius * 4.
@massa
massa / Fibonacci.pm
Created January 18, 2011 11:38
Fibonacci sequence implementation in Perl6
my @fib := 1, 1, *+* ... *;