Skip to content

Instantly share code, notes, and snippets.

View ibraheem4's full-sized avatar

ibraheem4 ibraheem4

View GitHub Profile
@bmatthewshea
bmatthewshea / ethminer
Last active January 24, 2018 17:18
/etc/default/ethminer service default file
# User settings - Here you can enable/disable a given miner profile:
#
RUNAS="ubuntu" # For the amdgpu-pro driver this user must be a member of 'video' group
DAEMON="/opt/miners/ethminer" # Wherever you installed the binary - make sure its executable by above user.
GPU="-G" # -U (nVidia Cuda) or -G (OpenCL) or -X (mixed Cuda/OpenCL cards)
WORKER="Worker1"
LOGFILE="/var/log/miners/ethminer.log"
# values: pool, proxy, solo
@bmatthewshea
bmatthewshea / ethminer start-stop-daemon
Last active May 9, 2021 21:38
start-stop-daemon service for ethminer binary
#!/bin/sh
### BEGIN INIT INFO
# Provides: ethminer
# Required-Start: $remote_fs $syslog $network $named
# Required-Stop: $remote_fs $syslog $network $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: ethminer start-stop-daemon init script
# Description: This allows you to start/stop ethminer as if it
# were a daemon
@daveselinger
daveselinger / rocm_install_script_16_04
Last active July 19, 2022 14:37
Install ROCM and hipCaffe on Ubuntu 16.04
# https://rocm.github.io/ROCmHipCaffeQuickstart.html
# But fixed :)
wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
sudo sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list'
sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt update
sudo apt upgrade
sudo apt install mesa-vdpau-drivers
@learner-long-life
learner-long-life / Rinkeby.md
Last active August 30, 2022 22:32
How to get on Rinkeby Testnet in less than 10 minutes

How to get on Rinkeby Testnet in less than 10 minutes

Following instructions from the excellent https://www.rinkeby.io/

Synchronizing a Full Node

A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,

@kattak
kattak / service_objects.md
Last active November 24, 2020 11:24
Service Objects in Rails

##What are Service Objects?


 Service objects contain business logic with an interface that is easy to test.
 View > Controller > Model, but sometimes need other data, i.e. from an API

Where are service objects located?

├── app
@2-am-zzz
2-am-zzz / javascript_compare.js
Last active December 12, 2016 20:23
Comparing JavaScript and Ruby
// Functions
function hello() {
console.log("Hello World")
}
// Calling a function
hello // function
hello() // "Hello World"
// Returning from functions
@chranderson
chranderson / nvmCommands.js
Last active November 13, 2024 16:18
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node
@philipsd6
philipsd6 / install-tmux
Last active February 22, 2021 14:41 — forked from rothgar/install-tmux
Install tmux 2.3 on rhel/centos 7
# Install tmux on rhel/centos 7
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
tar -xvzf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable
./configure --prefix=/usr/local
@steven-ferguson
steven-ferguson / firebase-ui-auth.js
Created July 12, 2016 23:59
Emberfire + FirebaseUI Authentication
/* globals firebaseui */
import Ember from 'ember';
import firebase from 'firebase';
const { computed, inject: { service } } = Ember;
export default Ember.Component.extend({
firebaseApp: service(),
didInsertElement() {