Skip to content

Instantly share code, notes, and snippets.

View derozic's full-sized avatar
🎯

Scott de Rozic derozic

🎯
View GitHub Profile
@derozic
derozic / ethminer_ubuntu__desktop_nvidia.md
Last active May 25, 2021 22:40 — forked from johnstcn/ethminer_ubuntu_nvidia.md
NVIDIA/CUDA ethminer setup under Ubuntu Desktop 16.04

Headless Ethminer (nVidia) Setup Guide

STR, July 2018

This outlines setting up mining on Ubuntu. This was first written in April 2017, and was extended in July 2018 to make it easier for both people who can handle headless ubuntu and for people who prefer desktop. It's also been updated for Bitmethod goodness to make it easier for a larger collection of people to successfully mine using GPUs.

This guide assumes the reader already has a crypto wallet set up, is comfortable with Linux and the command line, and knows how to use Google if they run into problems.

The end result is an Ubuntu 16.04 LTS desktop running CUDA ethminer via systemd.

Hardware

@derozic
derozic / command-prompt
Created May 3, 2018 15:58
Cache your .ssh keys on Windows for github credentials
start-ssh-agent.cmd
@derozic
derozic / readcomment.txt
Created May 1, 2018 05:46
Generate keypair, add to MacOS Keychain, Copy to the Clipboard
We couldn’t find that file to show.
@derozic
derozic / gist:dc86fbc6fa3c40487bc2d43f80c53659
Created May 1, 2018 05:09
Generate crypted passwords on linux, for things like ansible
mkpasswd --method=sha-512
@derozic
derozic / gist:5095a0256e386486e13c0e4b476c8273
Created April 14, 2018 20:54
Specify specific version ranges in npm i --save to add more than one webpack to your project, for example
npm i --save webpack@">=1.4.0 <=2.7.7"
@derozic
derozic / gist:2adbf797fec8abf8d9e2a157ebb94cae
Created April 6, 2018 16:37
Windows: Diskpart to format external USB and make bootable
SOP for a bootable USB key is:
Launch DiskPart as an Administrator.
Use List Disk to find your USB key
Use Select Disk to choose your USB key.
Clean (to wipe out the USB and delete the partition entries).
Run Create Partition Primary to create a new primary partition on the USB flash drive.
Format FS=NTFS Quick to lay down the file system as NTFS.
Assign (to give our USB a drive letter).
Active to make it bootable.
@derozic
derozic / Get-NetIPAddress
Created April 3, 2018 23:40
PowerShell: Get IP Address
Get-NetIPAddress
// Define two dates to compare to get to the number of days
// This example is the number of days a woman has to work
// before then making the same pay as a man in the US https://www.pay-equity.org/day.html
var date1 = '2018-04-10';
var date2 = '2018-01-01';
// First we split the values to arrays date1[0] is the year, [1] the month and [2] the day
date1 = date1.split('-');
date2 = date2.split('-');
@derozic
derozic / gist:e04535515baf2d9c7189c213b7592b29
Last active March 17, 2018 05:57
PowerShell: checksum linux equivalent on mac is shasum -a 256 filename.ext
Get-FileHash path\filename.ext
@derozic
derozic / gist:859312bd2e3c59495e67ddcf66e7cf61
Last active March 7, 2018 18:18
Get the latest hash from your latest github.com commit
git log -n1 --format="%h"