Skip to content

Instantly share code, notes, and snippets.

View benoahriz's full-sized avatar
:octocat:
makin stuff

Benjamin Rizkowsky benoahriz

:octocat:
makin stuff
View GitHub Profile
#!/bin/bash -x
if [[ $UID != 0 ]]; then
echo "Please run this script with with a root shell i.e. sudo su -"
echo "sudo $0 $*"
exit 1
fi
#Manual Cleanup
echo "Manual cleanup Items"
rm /var/cache/apt/*.bin
@benoahriz
benoahriz / VBoxManage
Last active August 29, 2015 14:06 — forked from npf/VBoxManage
#!/bin/bash
VBOXMANAGE=/usr/bin/VBoxManage
VBOXVMDIR="$HOME/VirtualBox VMs"
VAGRANTVMDIR="/tmp/vagrant"
LOGFILE=/tmp/vagrant/vboxmanage.$(date +%s)
echo "$0 $@" >> $LOGFILE
if [ "$1" == "import" ]; then
declare -a ARGS
while [ $# -gt 0 ]; do
ARGS=(${ARGS[@]} ${1/$VBOXVMDIR/$VAGRANTVMDIR})
#!/usr/bin/ruby
#
# This script fixes /usr/local only.
#
# 6th January 2010:
# Modified the script to just fix, rather than install. - rpavlik
#
# 30th March 2010:
# Added a check to make sure user is in the staff group. This was a problem
# for me, and I think it was due to me migrating my account over several
#!/usr/bin/env python
from __future__ import print_function
import argparse
import json
import chef
import os
import sys
import re
from time import time
@benoahriz
benoahriz / .gitignore
Last active August 29, 2015 14:27 — forked from karmi/.gitignore
Example Nginx configurations for Elasticsearch
nginx/
!nginx/.gitkeep
!nginx/logs/.gitkeep
src/
tmp/
@benoahriz
benoahriz / Logging_Functions.ps1
Created April 19, 2016 16:59 — forked from 9to5IT/Logging_Functions.ps1
PowerShell: Logging Functions
Function Log-Start{
<#
.SYNOPSIS
Creates log file
.DESCRIPTION
Creates log file with path and name that is passed. Checks if log file exists, and if it does deletes it and creates a new one.
Once created, writes initial logging data
.PARAMETER LogPath
@benoahriz
benoahriz / bumpversion.sh
Created July 12, 2017 16:15 — forked from pete-otaqui/bumpversion.sh
Bump a software project's VERSION, add the CHANGES, and tag with GIT
#!/bin/bash
# works with a file called VERSION in the current directory,
# the contents of which should be a semantic version number
# such as "1.2.3"
# this script will display the current version, automatically
# suggest a "minor" version update, and ask for input to use
# the suggestion, or a newly entered value.
Fitter, happier
More productive
Comfortable
Not drinking too much
Regular exercise at the gym, three days a week
Getting on better with your associate employee contemporaries
At ease
Eating well, no more microwave dinners and saturated fats
A patient, better driver
A safer car, baby smiling in back seat

Keybase proof

I hereby claim:

  • I am benoahriz on github.
  • I am benoahriz (https://keybase.io/benoahriz) on keybase.
  • I have a public key ASC70L1RA5m20k6oHi9Ooa4KtQWU2qQX_Z0Bw0lmpw1DBQo

To claim this, I am signing this object: