Skip to content

Instantly share code, notes, and snippets.

View AHinMaine's full-sized avatar

Andrew Harrison AHinMaine

  • Breezeline
  • Steep Falls, Maine, US
  • 19:12 (UTC -04:00)
View GitHub Profile
@AHinMaine
AHinMaine / install_sqlplus.md
Created January 2, 2020 12:25 — forked from tcnksm/install_sqlplus.md
How to install oracle client to Ubuntu 12.04

Install SQL*Plus

  1. Download .rpm package here
    • oracle-instantclinet*-basic-*.rpm
    • oracle-instantclinet*-devel-*.rpm
    • oracle-instantclinet*-sqlplus-*.rpm
  2. Install alien (sudo apt-get install alien)
  3. Convert the rpm files and install
    • sudo alien -i oracle-instantclinet*-basic-*.rpm
  • sudo alien -i oracle-instantclinet*-devel-*.rpm
@AHinMaine
AHinMaine / howto-forward-x11-to-win10-via-putty-vcxsrv.md
Created November 20, 2018 23:08 — forked from vietlq/howto-forward-x11-to-win10-via-putty-vcxsrv.md
Code2Pro: How to Forward X11 to Windows 10 via PuTTY & vcxsrv

Code2Pro: How to Forward X11 to Windows 10 via PuTTY & vcxsrv

Scope

Tested on Windows 10 & Ubuntu 16.

Steps

  1. Check that sshd on Ubuntu is properly configured
@AHinMaine
AHinMaine / all_aws_lambda_modules.txt
Created August 4, 2016 13:36 — forked from gene1wood/all_aws_lambda_modules_python.md
AWS Lambda function to list all available Python modules and post the list to Pastebin
# module list (generated by listmodules.py)
#
# timestamp='20160226T200954Z'
# sys.version='2.7.10 (default, Dec 8 2015, 18:25:23) \n[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]'
# sys.platform='linux2'
# platform='Linux-4.1.13-19.31.amzn1.x86_64-x86_64-with-glibc2.2.5'
#
BaseHTTPServer
Bastion
CDROM
@AHinMaine
AHinMaine / nginx.conf
Created April 20, 2016 14:40 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
#!/bin/bash
BUCKET=ellisonmagentobackups
TMPDIR=/mnt/shared/tmp
BACKUPITEMS="app erp errors media shell var wp"
DATESTAMP=`date +"%Y%m%d.%H%M%S"`
date
echo "Shared backup started"
@AHinMaine
AHinMaine / s3etag.sh
Created October 23, 2015 13:07 — forked from emersonf/s3etag.sh
A Bash script to compute ETag values for S3 multipart uploads on OS X.
#!/bin/bash
if [ $# -ne 2 ]; then
echo "Usage: $0 file partSizeInMb";
exit 0;
fi
file=$1
if [ ! -f "$file" ]; then
@AHinMaine
AHinMaine / menu.rb
Last active August 29, 2015 14:23 — forked from phoet/menu.rb
require "curses"
include Curses
init_screen
start_color
noecho
def draw_menu(menu, active_index=nil)
4.times do |i|
menu.setpos(i + 1, 1)
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@AHinMaine
AHinMaine / keybase.md
Created September 24, 2014 15:46
Keybase proof

Keybase proof

I hereby claim:

  • I am ahinmaine on github.
  • I am ahinmaine (https://keybase.io/ahinmaine) on keybase.
  • I have a public key whose fingerprint is F94D 689A 4BAC 385C CE1E A43E 0C4B 164E 5010 D3F1

To claim this, I am signing this object: