- Open Mac Terminal
- Go to homebrew.sh; copy and enter the following:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Enter
brew install wget
- Enter the following into your Mac Terminal:
open ~/.bash_profile
but if for whatever reason you don't have one configured, entersudo nano .bash_profile
. - To become sufficiently Rubified:
brew install ruby
- Download Sublime Text 3 then go to root/usr (e.g.
cd alexanderjsingleton/
).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- An Oracle PL/SQL example for my blog-post: | |
CONNECT ap/ap; | |
SET SERVEROUTPUT ON | |
declare | |
min_invoice_total ap.invoices.invoice_total%TYPE; | |
max_invoice_total ap.invoices.invoice_total%TYPE; | |
begin | |
SELECT MIN(invoice_total), MAX(invoice_total) INTO min_invoice_total,max_invoice_total | |
FROM ap.invoices; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=ArrayFormula(replace(replace(regexreplace(C2:C&"","[-/. ()]",""),4,0,"-"),8,0,"-")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script>window.fbAsyncInit = function() { | |
FB.init({ | |
xfbml : true, | |
version : 'v2.5' | |
}); | |
}; (function(d, s, id){ | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) {return;} | |
js = d.createElement(s); js.id = id; | |
js.src = "//connect.facebook.net/en_US/sdk.js"; |
- Assuming git is installed,
git clone git://zsh.git.sf.net/gitroot/zsh/zsh
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
chsh -s /bin/zsh
- Restart terminal.
cd ~/zsh
and verify install!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Oldest Reservation | |
SELECT * FROM RESERVATION | |
WHERE Pick_Up_Date = (SELECT MIN(Pick_Up_Date) FROM RESERVATION); | |
-- Customer Reservations with Make and Model of Vehicle | |
SELECT CUSTOMER.CustomerID, CUSTOMER.CustomerFname AS First_Name, CUSTOMER.CustomerLname AS Last_Name, RESERVES.VIN, VEHICLE.Make, VEHICLE.Model | |
FROM (((CUSTOMER | |
INNER JOIN RESERVATION ON CUSTOMER.CustomerID = RESERVATION.CustomerID) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This section populates the Customers table */ | |
INSERT INTO CUSTOMER (CustomerID, CustomerFName, CustomerLName, CustomerEmail, DriversLicense, RewardNumber) | |
VALUES (000001, 'John', 'Constantine', 'jconstantine@jld.org', '999990013', '0000013'); | |
INSERT INTO CUSTOMER (CustomerID, CustomerFName, CustomerLName, CustomerEmail, DriversLicense, RewardNumber) | |
VALUES (000002, 'Hal', 'Jordan', 'hjordan@glcorps.org', '999990001', '0000001'); | |
INSERT INTO CUSTOMER (CustomerID, CustomerFName, CustomerLName, CustomerEmail, DriversLicense, RewardNumber) | |
VALUES (000003, 'Barry', 'Allen', 'ballen@jla.org', '999990002', '0000002'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE VEHICLE | |
( | |
VIN VARCHAR(30) NOT NULL, | |
Make VARCHAR(30) NOT NULL, | |
Model VARCHAR(30) NOT NULL, | |
Year INT NOT NULL, | |
Color CHAR(30) NOT NULL, | |
LicensePlate VARCHAR(20) NOT NULL, | |
Mileage INT NOT NULL, | |
PRIMARY KEY (VIN), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE VEHICLE | |
( | |
VIN VARCHAR(30) NOT NULL, | |
Make VARCHAR(30) NOT NULL, | |
Model VARCHAR(30) NOT NULL, | |
Year INT NOT NULL, | |
Color CHAR(30) NOT NULL, | |
LicensePlate VARCHAR(20) NOT NULL, | |
Mileage INT NOT NULL, | |
PRIMARY KEY (VIN), |
After spinning-up your Raspberry Pi and registering an account at slushpool:
sudo apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++ git
git clone https://github.com/tpruvot/cpuminer-multi
cd cpuminer-multi
./autogen.sh
./build.sh
- Check out the commands:
./cpuminer --help
./cpuminer -u slashpool_user_name.slashpool_worker -p pass -a sha256d -o stratum+tcp://stratum.slushpool.com:3333 -t cputhreads
- Order MOAR Raspberry Pi's and Antminers then buy more Bitcoin.