Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sblmasta
sblmasta / gpu-performance.sh
Last active July 18, 2017 15:07
Script for pre mining GPU performance. It's for 6 PCI cards GeForce GTX 1070 8GB. ETH mining at 30 MH/s per card
#!/bin/bash
CLOCK=100
MEM=900
CMD='/usr/bin/nvidia-settings'
echo "performance" >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "performance" >/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo 2800000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 2800000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
@sblmasta
sblmasta / gpu-performance.sh.desktop
Last active July 18, 2017 15:03
GPU Performance autorun ubuntu script
[Desktop Entry]
Type=Application
Exec=/home/miner/gpu-performance.sh
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[pl_PL]=Start GPU Performance
Name=Start GPU Perofrmance
Comment[pl_PL]=
Comment=
@sblmasta
sblmasta / init-mining.sh.desktop
Created July 18, 2017 15:00
Ubuntu Autostart script
[Desktop Entry]
Type=Application
Exec=/home/miner/init-mining.sh
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[pl_PL]=Start ETH Mining
Name=Start ETH Mining
Comment[pl_PL]=
Comment=
@sblmasta
sblmasta / xorg.conf
Created July 18, 2017 14:59
xorg.conf
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" 0 0
Screen 2 "Screen2" 0 0
Screen 3 "Screen3" 0 0
Screen 4 "Screen4" 0 0
Screen 5 "Screen5" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
@sblmasta
sblmasta / start-eth-ethminer.sh
Created July 18, 2017 14:58
Ethminer run script for CUDA mining
#!/bin/bash
export GPU_FORCE_64BIT_PTR=0
export GPU_MAX_HEAP_SIZE=100
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
export GPU_SINGLE_ALLOC_PERCENT=100
./ethminer/ethminer --cuda-parallel-hash 8 --farm-recheck 150 -U -S {pool address} -O {wallet}.RIG
#!/bin/bash
export GPU_FORCE_64BIT_PTR=0
export GPU_MAX_HEAP_SIZE=100
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
export GPU_SINGLE_ALLOC_PERCENT=100
./claymore/ethdcrminer64 -epool {pool address} -ewal {wallet}.RIG -epsw x -mode 1 -ftime 10
@sblmasta
sblmasta / init-mining.sh
Created July 18, 2017 14:55
Script which is running command after autologin after 15 seconds of delay
#!/bin/bash
sleep 15 && gnome-terminal --geometry=170x45 --command "/home/miner/start-eth-claymore.sh"
$factory = $this->get('security.encoder_factory');
$encoder = $factory->getEncoder($user);
$password = $encoder->encodePassword(TUTAJ_HASLO, TUTAJ_SALT);
@sblmasta
sblmasta / header.php
Last active December 31, 2015 12:38
WordPress navigation generator
<?php
$menu_name = 'main-primary-menu';
$locations = get_nav_menu_locations();
$menu = wp_get_nav_menu_object( 45 ); //wpisane na sztywno ID lokalizacji menu
$menu_items = wp_get_nav_menu_items($menu->term_id);
echo '<ul id="menu-'.$menu_name.'">';
echo '<li class="current_page_item"><a href="'.get_bloginfo('url').'">Strona Główna</a></li>';
foreach ( (array) $menu_items as $key => $menu_item )
@sblmasta
sblmasta / getRandomDoctrineItem.php
Created November 25, 2015 11:59 — forked from Thinkscape/getRandomDoctrineItem.php
Get random item from Doctrine2 repository
<?php
use Doctrine\ORM\EntityManager;
/**
* Retrieve one random item of given class from ORM repository.
*
* @param EntityManager $em The Entity Manager instance to use
* @param string $class The class name to retrieve items from
* @return object
*/