Skip to content

Instantly share code, notes, and snippets.

View mgregoro's full-sized avatar
🏄‍♂️
enjoying the internet superhighway

Michael Gregorowicz mgregoro

🏄‍♂️
enjoying the internet superhighway
  • Wayne State University
  • Detroit, MI
  • X @mgregoro
View GitHub Profile
index 54952fc..6d5d168 100644
--- a/libethash-cl/ethash_cl_miner_kernel.cl
+++ b/libethash-cl/ethash_cl_miner_kernel.cl
@@ -277,7 +277,7 @@ __kernel void ethash_search(
for (int i = 0; i < THREADS_PER_HASH; i++)
{
// share init with other threads
- if (i == thread_id)
+ if ((uint) i == thread_id)
copy(share[hash_id].ulongs, state, 8);
@mgregoro
mgregoro / gist:9fa29f5dfb36e88878ec
Created April 24, 2015 20:57
Perl TOTP using Crypt::Sodium
#!/usr/bin/env perl
use Crypt::Sodium;
use MIME::Base32;
my $secret = join(' ', @ARGV);
my $skew_tolerance = 10;
my $interval = 60;
while (1) {
@mgregoro
mgregoro / keybase.md
Created September 29, 2014 22:45
keybase.md

Keybase proof

I hereby claim:

  • I am mgregoro on github.
  • I am mg2 (https://keybase.io/mg2) on keybase.
  • I have a public key whose fingerprint is 53B5 5737 48B2 377C A7AC 2D90 7689 B59B 45BA 9D7C

To claim this, I am signing this object:

@mgregoro
mgregoro / 0_reuse_code.js
Created June 23, 2014 16:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console