Skip to content

Instantly share code, notes, and snippets.

View solomonrothman's full-sized avatar

Solomon Rothman solomonrothman

View GitHub Profile
SET UV_THREADPOOL_SIZE=36
noncerpro.exe -a NQ040T2448XYAUVKJ33X2PTXA90U9PX9MF4B -s nimiq.icemining.ca -p 2053 --threads=2 --mode=dumb
:start
cpuminer-sse2.exe -a gr -o stratum+tcps://stratum-na.rplant.xyz:17075 -u BTqapUvgTQsKmHKmMzqpm36sfkNPacDY3w.SRMGPU1
pause 5
goto start
packetcrypt.exe ann -p pkt1qacnddm8pd6qumtnmz0dzqqevzvp0vtpzu9fszn http://pool.pkteer.com http://pool.pktpool.io http://pool.pkt.world
rem
rem Choose nearest stratum:
rem stratum-ru.rplant.xyz /Moscow/
rem stratum-eu.rplant.xyz /London/
rem stratum-asia.rplant.xyz /Singapore/
rem stratum-na.rplant.xyz /Toronto/
rem
:start
"%~dp0"cpuminer-sse2.exe -a minotaurx -o stratum+tcps://stratum-na.rplant.xyz:17068 -u RKrQepzbNVy9XzFPVwiMbxvfNBHt2VrRFM -t 4
goto start
@solomonrothman
solomonrothman / gist:eae68f64f645b13bed72d62fb8a3ca58
Created July 20, 2021 18:01
What git symbols mean in powerlevel10k theme
# Reference from https://gitee.com/kongren/powerlevel10k#what-do-different-symbols-in-git-status-mean
Symbol Meaning Source
feature current branch; replaced with #tag or @commit if not on a branch git status
master remote tracking branch; only shown if different from local branch git rev-parse --abbrev-ref --symbolic-full-name @{u}
⇣42 this many commits behind the remote git status
⇡42 this many commits ahead of the remote git status
*42 this many stashes git stash list
merge repository state git status
~42 this many merge conflicts git status
@solomonrothman
solomonrothman / gist:6754f53354f2dba29905090b9d0775bb
Created July 20, 2021 16:44
Add git branch to ZSH shell (.zshrc)
# Load version control information
autoload -Uz vcs_info
precmd() { vcs_info }
# Format the vcs_info_msg_0_ variable
zstyle ':vcs_info:git:*' formats 'on branch %b'
# Set up the prompt (with git branch name)
setopt PROMPT_SUBST
PROMPT='%n in ${PWD/#$HOME/~} ${vcs_info_msg_0_} > '
@solomonrothman
solomonrothman / jQueryPluginSimpleExample.js
Last active March 3, 2016 23:10
jQuery Plugin Simple Example
//Sample code for elements in a simple chainable jQuery plugin. This code dosn't do anything, just has the "moving" parts
(function ($) {
$.fn.testcal = function (options) {
var opts = $.extend({}, $.fn.testcal.defaults, options); // Get options and extend defaults
return this.each(function () {
var elem = $(this);
console.log(elem); // do something on each element, this just logs it for now
}
@solomonrothman
solomonrothman / JS-Super-Embed-Widget.js
Last active March 2, 2016 17:57
Javascript Async LazyLoad Embed Widget - Multiple embed on single page with/without head
<script data-version="v1" data-widget-id="0001" id="unique-id" type="text/javascript" async>
// Embedable Javascript Widget
// Uses vanilla javascript, we can't make assumptions about jQuery or other libraries being available.
// "data-version": It's useful to put the version of your embedder script in the "version" data
// attribute. This will enable you to more easily debug if any issues arise.
// "data-client-id": This id allows us to pull up the correct client's settings from our database.
// Each client may have different settings associated with their widget, and you can load them
// with this!
// "id": This HTML id allows us to refer to this embedder script's location. This is helpful
// if you want to inject html code in specific places in hour hosts's website or if you want to