Skip to content

Instantly share code, notes, and snippets.

View andrewpsp's full-sized avatar

Andrew Thompson andrewpsp

View GitHub Profile
@andrewpsp
andrewpsp / nginx.conf
Created July 24, 2019 15:40 — forked from shortjared/nginx.conf
AWS API Gateway Nginx Reverse Proxy
# NOTE
#
#
# Use sed on the instance up to replace the INSTANCE_ID and DNS_RESOLVER with the following commands
#
####################################################################################################
# Fetch the private IP for resolving DNS dynamically in nginx
# We also need to escape the `.` from it for usage in later sed
#
# DNS_RESOLVER=`grep nameserver /etc/resolv.conf | cut -d " " -f2 | sed 's/\./\\./g'`
@andrewpsp
andrewpsp / brain_load.sh
Created January 22, 2019 19:46
Script to update the Grub.
#!/bin/bash
# current version
CURRENT=$(uname -r)
#highest version in on system
HIGH=$(rpm -qa kernel | cut -c 8- | sort| head -n 1)
# install boost 1.66+
ARG boost_version=1.66.0
ARG boost_dir=boost_1_66_0
#RG boost_sha256_sum=440a59f8bc4023dbe6285c9998b0f7fa288468b889746b1ef00e8b36c559dce1
ENV boost_version ${boost_version}
ARG boost_libs=" \
--with-atomic \
--with-chrono \
--with-date_time \
Usage ethminer [OPTIONS]
Options:
Work farming mode:
-F,--farm <url> Put into mining farm mode with the work server at URL (default: http://127.0.0.1:8545)
-FF,-FO, --farm-failover, --stratum-failover <url> Failover getwork/stratum URL (default: disabled)
--farm-retries <n> Number of retries until switch to failover (default: 3)
-S, --stratum <host:port> Put into stratum mode with the stratum server at host:port
-SF, --stratum-failover <host:port> Failover stratum server at host:port
-O, --userpass <username.workername:password> Stratum login credentials
@andrewpsp
andrewpsp / gist:9f08f7e20614f9545d066f01f854810b
Last active January 25, 2018 08:58
cuda_djezo/eqcuda.hpp
#line number 6 to add cuda 9.1 support. instead of removing it.
device_functions.h

Keybase proof

I hereby claim:

  • I am andrewpsp on github.
  • I am andrewpsp (https://keybase.io/andrewpsp) on keybase.
  • I have a public key ASAqoihlDXu_C6IU4qekZCuzFl2gzxus5QczujJ2CYusfAo

To claim this, I am signing this object:

@andrewpsp
andrewpsp / mongod.service
Last active August 22, 2017 05:51
mongod service file
[Unit]
Description=High-performance, Entercloud Integrated Automated Ditigal Fingerprint Identification System (EIADFIS)
After=network.target
Documentation=https://github.com/entercloud/EIADFIS
[Service]
User=mongodb
Group=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf
@andrewpsp
andrewpsp / GEM2RPM
Last active August 29, 2015 14:12
Converting GEM to RPM
#!/usr/bin/env ruby
require 'fpm'
# FIXME: set these from the command line
target = 'system'
iteration = 1
src_dir = '/var/tmp/gems/cache';
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2014
Copyright (C) 2014 Addy Osmani @addyosmani
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE