Skip to content

Instantly share code, notes, and snippets.

View stevenvo's full-sized avatar

Steven Vo stevenvo

  • GeoComply
  • Bay Area
View GitHub Profile
@stevenvo
stevenvo / start.bat
Created June 12, 2017 02:24
WINDOWS Mining command
set GPU_FORCE_64BIT_PTR=0
set GPU_MAX_HEAP_SIZE=100
set GPU_USE_SYNC_OBJECTS=1
set GPU_MAX_ALLOC_PERCENT=100
set GPU_SINGLE_ALLOC_PERCENT=100
EthDcrMiner64.exe -cvddc 960 -mclock 1930,1930,1930,1920,1930 -r 1 -epool us1.ethpool.org:3333 -ewal 0x06592611735ef26f2fff83654879dbca72c364b0.windows1 -gser 2 -fanmin 50 -tt 70 -powlim 50 -colors 4 -ttli 75 -dpool dcr.suprnova.cc:3252 -dwal stevenvo.windows1 -dpsw x
@stevenvo
stevenvo / wallets.txt
Created May 12, 2017 07:06
Wallet Address
Current Mining Wallet
ETH: 0x06592611735ef26f2fff83654879dbca72c364b0
DCR: DspD5aiYZSLQpqdCKbsXwHzYfH2fpeY1ads (Bittrex)
JAXX Wallets
BTC: 1MSt6o4A223tULbe1whjYLUzQx1wzSRX5q
ETH: 0x28e6b7f68d5f12b6b84bfeec69d896db893d491c
ZEC: t1JZjjuZkc8i7KtUEuwG6oLdx3GqGDHsF6z
LTC: LVtx73UcU1yeA1ubnpH6MK1mwF9joEbo7k
@stevenvo
stevenvo / install_pip.sh
Created May 10, 2017 18:09
Install PIP
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python get-pip.py
@stevenvo
stevenvo / sudoers
Created May 10, 2017 17:58
Sudo without password
ALL ALL = (ALL) NOPASSWD: ALL
to allow all users to run all commands without a password.
%wheel ALL = (ALL) NOPASSWD: ALL
to allow all users in group wheel to run all commands without a password.
http://www.overclock.net/t/1604567/polaris-bios-editing-rx5xx-rx4xx/1050#post_25699216
Follow the instructions and you will have no problems biggrin.gif
Download the modified kernel driver here: http://bit.ly/2h0NpwR
Download the Pixel Clock Patcher here: https://www.monitortests.com/forum/Thread-AMD-ATI-Pixel-Clock-Patcher (needed for the windows driver signature workaround)
1) Navigate to the amd driver extraction directory, usually "C:\AMD" then go into" Win10-64Bit-Radeon-Software-Crimson-ReLive-16.12.1-Dec7\Packages\Drivers\Display\WT6A_INF\B309333"
2) Extract the modified kernel driver in the "\B309333" directory overwriting the file
3) Uninstall current amd drivers normally and DO NOT REBOOT when asked
@stevenvo
stevenvo / mining script
Created May 1, 2017 03:44
claymore dual miner
./ethdcrminer64 -epool us1.ethpool.org:3333 -ewal 0x06592611735ef26f2fff83654879dbca72c364b0.rig2 -epsw x -dpool dcr.suprnova.cc:3252 -dwal stevenvo.rig2 -dpsw x
@stevenvo
stevenvo / audio-to-video.sh
Created April 22, 2016 06:59
convert audio file to video file with one image
ffmpeg -loop 1 -i image.jpg -i audio.mp3 -shortest -c:v libx264 -c:a copy result.mkv
@stevenvo
stevenvo / rpn_calculator.rb
Last active July 18, 2016 17:30
RPN Calculator - Steven Vo
# RPN Calculator
#
# SPECIFICATIONS:
# REQ 1: The calculator should use standard input and standard output, unless the language makes that impossible.
# REQ 2: It should implement the four standard arithmetic operators
# REQ 3: It should support negative and decimal numbers, and should not have arbitrary limits on the number of operations.
# REQ 4: The calculator should not allow invalid or undefined behavior.
# REQ 5: The calculator should exit when it receives a q command or an end of input indicator (EOF).
class RpnStack
@stevenvo
stevenvo / useful_pandas_snippets.py
Last active February 13, 2020 18:45 — forked from bsweger/useful_pandas_snippets.md
Useful Pandas Snippets
###### FORCE DATA FORMAT IN PANDAS ######
pd.options.display.float_format = '{:,.2f}'.format
# NOTES:
# 1. DO NOT update row in df.iterrows() -> https://stackoverflow.com/questions/25478528/updating-value-in-iterrow-for-pandas
# Use df.loc[idx, '<col>'] = <value>
###### REGEX on DataFrame ######
@stevenvo
stevenvo / device_dev_path_listing.sh
Created March 19, 2016 07:36
A script that walks through devices in /sys looking for USB devices with a ID_SERIAL attribute. Typically only real USB devices will have this attribute, and so we can filter with it. If we don't, you'll see a lot of things in the list that aren't physical devices.
#!/bin/bash
for sysdevpath in $(find /sys/bus/usb/devices/usb*/ -name dev); do
(
syspath="${sysdevpath%/dev}"
devname="$(udevadm info -q name -p $syspath)"
[[ "$devname" == "bus/"* ]] && continue
eval "$(udevadm info -q property --export -p $syspath)"
[[ -z "$ID_SERIAL" ]] && continue
echo "/dev/$devname - $ID_SERIAL"