Skip to content

Instantly share code, notes, and snippets.

View bsetmet's full-sized avatar

Bill or Jeremy from BSETMET bsetmet

View GitHub Profile
@sebbarg
sebbarg / pgadmin4.sh
Created January 3, 2018 10:33
Linux/Docker: connect pgadmin4 to postgres running on the local host (not in a container)
#!/usr/bin/env bash
set -o nounset -o pipefail
#
# - When running this script pgadmin4 is available at http://localhost:5050
# - Postgres is tunneled through SSH and available to pgadmin4 (and anything else)
# at pghost:54320
#
# - Container: https://github.com/thaJeztah/pgadmin4-docker
#
@seakintruth
seakintruth / library.packages.R
Last active August 9, 2020 19:19
Function that installs and librarys as many packages as you want in one sweep
# Modified from https://github.com/plynty/bls-ce-r-tools/blob/master/CE_PUMD_Wrangler.R
# Function that installs and librarys as many packages as you want in one sweep
# This action is similar to the utils::install.packages function
# just simplified/custom for my needs
# Parameters: string of package(s) name(s)
# fOnlyEnsureInstalled if TRUE does not load packages...
# Usage: library.packages("data.table","dplyr","stringr","dtplyr")
# Returns a matrix of packages and status of install and load/attachment
library.packages <- function(
...,
@seakintruth
seakintruth / RSTUDIO_Version_Launcher.sh
Last active October 17, 2021 21:11
Rstudio Version Launcher (And R Version installer) for Ubuntu / Debian.
#!/usr/bin/env bash
# failed to perform conditional arithmatic when using #!/bin/sh
# Made available under (CC BY-SA 3.0) https://creativecommons.org/licenses/by-sa/3.0/
# The menu system as modified from https://askubuntu.com/a/257766/957393
# The option_picked function is by Jeremy D. Gerdes seakintruth@gmail.com April 2019
# The install_if_missing is modified from https://stackoverflow.com/a/22592801/1146659
# -------------------------------------------------------------------------------------
# Before running this script Install R and Rstudio with/from:
# sudo apt install r-base
# https://rstudio.com/products/rstudio/download/#download
@mnapoli
mnapoli / Gearman-Windows.md
Last active January 5, 2023 07:58
Installing Gearman on windows

Gearman can be installed on Windows through cygwin.

Install Cygwin packages

Install cygwin packages (through setup.exe):

  • gcc
  • make
  • libuuid1-devel
  • libiconv