Skip to content

Instantly share code, notes, and snippets.

@RGPaul
RGPaul / cltools.sh
Last active August 29, 2015 14:12 — forked from jellybeansoup/cltools.sh
#!/bin/sh
##
# Install autoconf, automake and libtool smoothly on Mac OS X.
# Newer versions of these libraries are available and may work better on OS X
#
# This script is originally from http://jsdelfino.blogspot.com.au/2012/08/autoconf-and-automake-on-mac-os-x.html
#
# you should export /usr/local/bin if not already the case
# export PATH=$PATH:/usr/local/bin
@RGPaul
RGPaul / build_openssl_dylib.sh
Last active February 20, 2017 15:38 — forked from tmiz/build_openssl_dylib.sh
Build latest OpenSSL Universal Binary on OSX
#!/bin/bash
# this is the dynamic library version of this script
# set the version to build
declare OPENSSL_VERSION="1.0.2k"
# only download if not already present
if [ ! -f openssl-${OPENSSL_VERSION}.tar.gz ]; then
curl -O http://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz
@RGPaul
RGPaul / Makefile
Created May 9, 2016 09:29 — forked from j0sh/Makefile
iOS static library cross-compile script.
# iOS builds for ARMv7 and simulator i386.
# Assumes any dependencies are in a local folder called libs and
# headers in a local folder called headers.
# Dependencies should already have been compiled for the target arch.
PROJ=untitled
ifeq ($(IOS), 1)
ARCH=armv7
DEVICE=OS
CC_FLAGS=-arch $(ARCH)
@RGPaul
RGPaul / build_openvpn_macos.sh
Last active February 22, 2017 10:43
Build latest OpenVPN CLI Binary on MacOS
#!/bin/bash
set -e
# Script for building OpenVPN CLI (MacOS)
# This Script requires that the OpenSSL Library (1.0.x) and the LZO Library are installed under /usr/local/lib and the
# headers under /usr/local/include
# For compiling the OpenSSL Library see: https://gist.github.com/Manromen/0cd572aa7694d6902260
# For compiling the LZO Library see: https://gist.github.com/Manromen/ac41c615aa4a95134eae6813402dd297
#
# OpenSSL Library: https://www.openssl.org
@RGPaul
RGPaul / build_lzo_macos.sh
Last active February 22, 2017 10:38
Build latest LZO Library for MacOS
#!/bin/bash
set -e
# set the version to build
declare LZO_VERSION="2.09"
# download lzo if not already present
if [ ! -f lzo-${LZO_VERSION}.tar.gz ]; then
curl -O http://www.oberhumer.com/opensource/lzo/download/lzo-${LZO_VERSION}.tar.gz
fi
@RGPaul
RGPaul / googleDriveDownload.sh
Last active September 15, 2018 09:24
Download big file from Google Drive with curl
#!/usr/bin/env bash
# ----------------------------------------------------------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2018 Ralph-Gordon Paul. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the following conditions:
@RGPaul
RGPaul / googleDriveDownload.ps1
Created September 15, 2018 10:02
Download big file from Google Drive with PowerShell
#!/usr/bin/env powershell
# ----------------------------------------------------------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2018 Ralph-Gordon Paul. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the following conditions: