Skip to content

Instantly share code, notes, and snippets.

View daryltucker's full-sized avatar

Daryl Tucker daryltucker

  • Neo-Retro Group
  • Salem, Or
View GitHub Profile
@daryltucker
daryltucker / ttytter-2.1.00-hashes.txt
Created March 22, 2015 20:30
ttytter 2.1.00 hashes
sha256sum /usr/local/bin/ttytter
86c6e7767c65e3179d4ed6368e27df5c4b200285207c3df3164c5a84a73517b1 /usr/local/bin/ttytter
md5sum /usr/local/bin/ttytter
982a333736345a943a66ae175570d3b5 /usr/local/bin/ttytter
@daryltucker
daryltucker / bitcoind
Created March 22, 2015 22:20
bitcoind init script
#! /bin/sh
### BEGIN INIT INFO
# Provides: bitcoind
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: bitcoind daemon startup script
# Description: bitcoind daemon startup script
### END INIT INFO
@daryltucker
daryltucker / ttytter
Created March 24, 2015 03:24
ttytter
#!/usr/bin/perl -s
#########################################################################
#
# TTYtter v2.1 (c)2007-2012 cameron kaiser (and contributors).
# all rights reserved.
# http://www.floodgap.com/software/ttytter/
#
# distributed under the floodgap free software license
# http://www.floodgap.com/software/ffsl/
#
@daryltucker
daryltucker / push_date.sh
Created March 26, 2015 20:18
Set Remote Server Date using Local Server Time
#!/bin/bash
# ./push_date user@server
# ssh user@server sudo date -s @`( date -u +"%s" )
ssh $1 sudo date -s @`( date -u +"%s" )
@daryltucker
daryltucker / march_native.mkdn
Created March 28, 2015 02:12
gcc: error: unrecognized command line option ‘-march=native’

Use -mtune=native instead.

@daryltucker
daryltucker / post-update
Last active December 29, 2015 20:53
The simplest, strongest git hook
REPO="/path/to/living-repo"
BARE_REPO="/path/to/bare-repo"
cd ${REPO}
git --git-dir=${REPO}.git --work-tree=${REPO} reset --hard
git --git-dir=${REPO}.git --work-tree=${REPO} pull --force
@daryltucker
daryltucker / ldconfig.mkd
Created March 31, 2015 21:23
bfgminer: error while loading shared libraries: libbase58.so.0: cannot open shared object file: No such file or directory

On archlinux-arm, I was experiencing an issue with bfgminer and it's installation of libbase58.

Fix

  1. vim /etc/ld.so.conf.d/01-directories.conf
  • This should be a new file
  • Place /usr/local/lib at the top of the file.
  • Save
  1. ldconfig
  2. bfgminer
@daryltucker
daryltucker / Archlinux-usr_local.mkd
Created April 16, 2015 02:23
/usr/local/ on Archlinux

/usr/local on Archlinux

  1. Enable /usr/local/lib/
    • echo '/usr/local/lib' > /etc/ld.so.conf.d/usrlocal.conf
    • ldconfig
  2. Enable /usr/local/bin/ /usr/local/sbin/
    • Make sure both of these are in your PATH variable in /etc/profile
@daryltucker
daryltucker / README.md
Created October 29, 2015 19:26 — forked from jimothyGator/README.md
Nginx configuration for Mac OS X with Homebrew, using sites-enabled directory.
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default and default-ssl to /usr/local/etc/nginx/sites-available
  • homebrew.mxcl.nginx.plist to /Library/LaunchDaemons/
alert();