Skip to content

Instantly share code, notes, and snippets.

# install dependencies
sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm git make
# clone cpuminer
git clone https://github.com/pooler/cpuminer.git
# compile
cd cpuminer
./autogen.sh
./configure CFLAGS="-O3"
#!/bin/bash
## Obserivum Client Setup Script
## v.0.5 - 12/15/13 - nunim@sonicboxes.com
## Tested on Debian 6/7 & Ubuntu 12.04+ - CentOS 5.8/6.4
## Useage: ./observium-client.sh <Community> <Contact Email>
## check if root
if [ $(whoami) != "root" ]; then
echo "You need to run this script as root."
echo "Use 'sudo ./observium-client.sh' then enter your password when pro mpted."
exit 1
@whothisbeme
whothisbeme / setupServerStatusClient.sh
Last active August 29, 2015 14:00
single command to setup ServerStatus client script..
wget https://gist.githubusercontent.com/mcpackin/95f359dfd0cc086752ad/raw/e32f0a6c5d5785f547ef5bfe60f5cd3941669b67/uptimeServerStatusSetup.sh && sudo chmod +x uptimeServerStatusSetup.sh && sudo ./uptimeServerStatusSetup.sh && rm -r uptimeServerStatusSetup.sh
@whothisbeme
whothisbeme / 0_reuse_code.js
Created December 24, 2015 00:51
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
@whothisbeme
whothisbeme / installFlux.sh
Last active January 6, 2016 04:28 — forked from robertmarsal/gist:9feaa9150926efa4175a
Install flux from from source.
sudo apt-get install python-glade2 python-appindicator python-pexpect python-gconf
git clone https://github.com/Kilian/f.lux-indicator-applet.git
cd f.lux-indicator-applet
chmod +x setup.py
sudo ./setup.py install
fluxgui
@whothisbeme
whothisbeme / default
Created September 19, 2017 05:12
Nginx + PHP-FPM Config for use with GlusterFS
# You may add here your
# server {
# ...
# }
# statements for each of your virtual hosts to this file
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls