Skip to content

Instantly share code, notes, and snippets.

View marzvrover's full-sized avatar
:fishsticks:

marz marzvrover

:fishsticks:
View GitHub Profile

Keybase proof

I hereby claim:

  • I am marzvrover on github.
  • I am marzvrover (https://keybase.io/marzily) on keybase.
  • I have a public key ASD70WneyVEGb0nvHnUYbBV3Amy9jtUp0PRQuP5VOA3_RAo

To claim this, I am signing this object:

@marzvrover
marzvrover / update-file-variables.sh
Created December 27, 2017 20:41
Simple script to update variables in a file. Use with variables files where the pattern is key=value.
#!/usr/bin/env bash
var_file_location="/usr/local/etc/php/php.ini"
declare -A values
values["upload_max_filesize"]="2M"
for key in "${!values[@]}"
do
@marzvrover
marzvrover / .vimrc
Created January 14, 2019 19:23
My current vimrc
syntax on
set expandtab
set softtabstop=4
set shiftwidth=4
set tabstop=4
set list
set listchars=tab:>\ ,eol:¬
set listchars+=space:·
@marzvrover
marzvrover / fix-for-dyld-library-not-loaded.md
Created January 22, 2019 21:08
Fix for "dyld: Library not loaded"

For errors similar to: (this example uses php)

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib
  Referenced from: /usr/local/bin/php
  Reason: image not found
Abort trap: 6

then run

brew uninstall --ignore-dependencies php
@marzvrover
marzvrover / .bash_profile
Created March 4, 2019 19:51
The base to my current .bash_profile file.
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
export CLICOLOR=1
alias please="php please"
alias artisan="php artisan"
alias tinker="artisan tinker"
alias migrate="artisan migrate"
@marzvrover
marzvrover / game_of_life.lua
Created March 20, 2020 06:31
I decided to throw together Conway's Game of Life in Lua for a TikTok for no reason.
WIDTH=100
HEIGHT=50
PERCENT_START=66
CELL='0'
LIFECYCLES=25
TIME_DELAY='.246'
gameboard = {}
for i=0,HEIGHT
@marzvrover
marzvrover / picker.cs
Last active November 2, 2020 22:41
Randomly outputs a value from a new line separated list retrieved from stdin
using System;
using System.Collections.Generic;
namespace Marzvrover
{
class Picker
{
static void Main(string[] args)
{
string input;
@marzvrover
marzvrover / fixSudoTouchID.tool
Last active December 20, 2020 16:24
A simple tool to add Touch ID to sudo
# Write the new file
awk 'NR==2 {print "auth sufficient pam_tid.so"} 1' /etc/pam.d/sudo > /etc/pam.d/sudo.new
# Make a backup of the current file
cp /etc/pam.d/sudo /etc/pam.d/sudo.bak
# Replace the current file with the new file
mv /etc/pam.d/sudo.new /etc/pam.d/sudo
# If you need to restore the backup and do not have
# access to sudo due to the issue. Reboot into recoveryOS
# Mount your data volume
@marzvrover
marzvrover / # Shell Environment
Last active May 20, 2022 14:23
My current shell environment files
This gist contains my shell environment files:
.zshrc
.zshenv
.aliases
@marzvrover
marzvrover / install_psql_php.sh
Last active October 10, 2021 05:58 — forked from giorgiofellipe/install_psql_php.sh
Install PHP PGSQL extensions on macOS (change PHP_VER with your PHP version)
PHP_VER="7.3.31"
# Check if extension exists first
php -m | grep pgsql
# Update brew and install requirements
brew update
brew install autoconf
# Download PHP source and extract