Skip to content

Instantly share code, notes, and snippets.

View mechawrench's full-sized avatar

Mechawrench mechawrench

View GitHub Profile
@mechawrench
mechawrench / lilygo_t_display_rp2040_demo.py
Created August 4, 2022 17:09 — forked from todbot/lilygo_t_display_rp2040_demo.py
show how to use LILYGO T display RP2040 board in CircuitPython w/o explicit board support
# lilygo_t_display_rp2040_demo.py - show how to use LILYGO T display RP2040 board
# 23 Jun 2022 - @todbot / Tod Kurt
# https://github.com/Xinyuan-LilyGO/LILYGO-T-display-RP2040
# https://github.com/adafruit/circuitpython/pull/6037
# Install standard Raspberry Pi Pico UF2 firmware on the board
import time, random
import board
import busio, digitalio
import displayio
diff --git a/node_modules/@remix-run/dev/compiler.js b/node_modules/@remix-run/dev/compiler.js
index 22c5ac0..d898697 100644
--- a/node_modules/@remix-run/dev/compiler.js
+++ b/node_modules/@remix-run/dev/compiler.js
@@ -21,6 +21,8 @@ var chokidar = require('chokidar');
var build$1 = require('./build.js');
var config = require('./config.js');
var invariant = require('./invariant.js');
+var NodeGlobalsPolyfillPlugin = require('@esbuild-plugins/node-globals-polyfill').NodeGlobalsPolyfillPlugin;
+var NodeModulesPolyfillPlugin = require('@esbuild-plugins/node-modules-polyfill').NodeModulesPolyfillPlugin;
@mechawrench
mechawrench / API.swift
Created January 7, 2022 22:40 — forked from AppleBetas/API.swift
API.swift - A dead simple drop-in URLRequest wrapper for making easy API requests in Swift.
//
// API.swift
//
// Created by AppleBetas on 2017-01-15.
// Copyright © 2017 AppleBetas. All rights reserved.
//
import Foundation
class API {
@mechawrench
mechawrench / opendb.sh
Created September 17, 2020 17:39 — forked from AlexVanderbist/opendb.sh
`opendb` command - opens the database for a Laravel app in your GUI
opendb () {
[ ! -f .env ] && { echo "No .env file found."; exit 1; }
DB_CONNECTION=$(grep DB_CONNECTION .env | grep -v -e '^\s*#' | cut -d '=' -f 2-)
DB_HOST=$(grep DB_HOST .env | grep -v -e '^\s*#' | cut -d '=' -f 2-)
DB_PORT=$(grep DB_PORT .env | grep -v -e '^\s*#' | cut -d '=' -f 2-)
DB_DATABASE=$(grep DB_DATABASE .env | grep -v -e '^\s*#' | cut -d '=' -f 2-)
DB_USERNAME=$(grep DB_USERNAME .env | grep -v -e '^\s*#' | cut -d '=' -f 2-)
DB_PASSWORD=$(grep DB_PASSWORD .env | grep -v -e '^\s*#' | cut -d '=' -f 2-)
@mechawrench
mechawrench / .env.travis
Created January 26, 2018 22:50 — forked from qWici/.env.travis
Laravel 5.5 Travis CI config
APP_ENV=testing
APP_KEY=SomeRandomString
DB_CONNECTION=testing
DB_TEST_USERNAME=root
DB_TEST_PASSWORD=
CACHE_DRIVER=array
SESSION_DRIVER=array
QUEUE_DRIVER=sync
@mechawrench
mechawrench / install.bash
Created December 9, 2017 05:44 — forked from nowakowski-damian/install.bash
Raspberry Pi Install PHP7 + Nginx + MySQL + PhpMyAdmin (last versions)
if [ "$(whoami)" != "root" ]; then
echo "root required!"
exit
fi
apt-get update
apt-get upgrade
apt-get dist-upgrade
@mechawrench
mechawrench / Laravel PHP7 LEMP AWS.md
Created December 9, 2017 05:42 — forked from santoshachari/Laravel PHP7 LEMP AWS.md
Laravel 5.x on Ubuntu 16.x, PHP 7.x, Nginx 1.9.x

#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
@mechawrench
mechawrench / install_laravel.sh
Created December 9, 2017 05:33 — forked from UedaTakeyuki/install_laravel.sh
Install laravel 5.1 on Raspberry Pi.
# reference: http://stackoverflow.com/questions/31230133/how-to-make-a-raspberry-pi-2-laravel-5-1-server
apt-get install mysql-server mysql-client apache2 php5 php5-cli libapache2-mod-php5 php5-mysql php5-curl php5-gd php-pear php5-imagick php5-mcrypt php5-memcache php5-mhash php5-sqlite php5-xmlrpc php5-xsl php5-json php5-dev libpcre3-dev
sudo curl -sS https://getcomposer.org/installer | sudo php5
# create project
#composer.phar create-project laravel/laravel --prefer-dist projectName
#sudo chown -R www-data:www-data /var/www/
#sudo chmod -R 775 projectName
@mechawrench
mechawrench / readme.adoc
Created December 6, 2017 01:48 — forked from chevdor/readme.adoc
Sia install on Digital Ocean Ubuntu