Skip to content

Instantly share code, notes, and snippets.

Kevin Herrera kherge

Block or report user

Report or block kherge

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kherge
kherge / Example.java
Last active Dec 12, 2018
Null Coalescing in Java
View Example.java
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.Optional;
public class Example {
public static void main(String []args) {
// Create a series of nullable objects.
Test a = new Test();
@kherge
kherge / README.md
Last active Jan 17, 2017
A script for switching between multiple versions of PHP.
View README.md

PHP Alias

This is a BASH shell script that will,

  1. Keep track of a list of PHP interpreters available.
  2. Allow you to switch quickly between them.
  3. Automatically switch to a different version when entering a directory.

Installation

@kherge
kherge / issues.md
Last active Apr 15, 2017
How to organize GitHub issues.
View issues.md

Issues

Did some searching online to see how others have handled organizing issues on GitHub for their own projects. This one by Robin Powered is by far the best I have seen so far. I have broken down the image in the blog post so that it can be easily copied and pasted into my own GitHub issue label manager.

Platform
@kherge
kherge / keybase.md
Created Mar 20, 2016
Keybase verification document.
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@kherge
kherge / README.md
Last active Feb 4, 2016
Various configuration files for PHP.
View README.md

PHP Configurations

These are configuration files that I use for development and production environments.

@kherge
kherge / README.md
Last active May 6, 2016
Installs PHPBrew and its dependencies.
View README.md

PHPBrew Installer

This script is for simplifying the process of installing phpbrew for managing different versions of PHP.

  • The phpbrew.sh script installs dependencies and sets up the current user to use phpbrew.
  • The gd.sh script install the GD extension if you get errors using the usual install command.

Tips

@kherge
kherge / README.md
Last active May 28, 2019
A simple semantic version manager for Git repositories.
View README.md

Git Releases

git-releases is a shell script that will manage semantic version numbers as tags for a Git repository.

Installation

  1. Copy git-releases to a directory in $PATH.
  2. Chmod git-releases to 755.
@kherge
kherge / README.md
Last active Aug 29, 2015
Manages different versions of Java in BASH.
View README.md

Java Version Manager for BASH

A simple script for managing different versions of Java.

Installation

  1. Create the directory .jvm in your home directory.
  2. Copy jvm to .jvm.
  3. Add . ~/.jvm/jvm to your .bashrc script.
  4. Exit and open a new terminal window.
@kherge
kherge / README.md
Last active Aug 29, 2015
Recipes I made up for healthier and (relatively) cheaper eating.
View README.md

Recipes

This is a collection of simple recipes I have created for myself.

You can’t perform that action at this time.