Skip to content

Instantly share code, notes, and snippets.

Andy Miller rhukster

Block or report user

Report or block rhukster

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
View htaccess_tester.php
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Grav .htaccess Tester</title>
<link rel="stylesheet" href="">
body { padding: 2rem; }
textarea.form-input { height: 500px; }
rhukster / better-discord.css
Created Nov 22, 2018
Custom discord stylesheet with tighter spacing and better contrast
View better-discord.css
[class*="membersGroup-"] {
height: 28px;
padding-top: 8px;
padding-left: 12px;
[class*="member-"] {
height: 40px;
[class*="member-"] [class*="avatarWrapper"] [class*="small-"] {
width: 25px;
rhukster / test-ldap-2.php
Created May 5, 2018 — forked from leftclickben/test-ldap-2.php
Open a connection to an LDAP server, query it for a given user, and check group membership for that user (test script)
View test-ldap-2.php
# Parse options
$opts = getopt('h:n:u:p:b:s:', array( 'help' ));
if (isset($opts['help']) && $opts['help']) {
echo <<<ENDHELP
$argv[0] [-h HOSTNAME] [-n PORTNUM] [-u USERNAME] [-p PASSWORD] [-b BASEDN] [-s SEARCH]
View xdebug
#!/usr/bin/env bash
# @author Djamil Legato
# @modified Andy Miller - Homebrew/core compatibility
# @license MIT
# @version 1.2
app="$(basename "$0")"
# Creator: Phil Cook
# Modified: Andy Miller
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g')
brew_array=("5.5","5.6","7.0","7.1","7.2", "7.3")
php_array=("php@5.5" "php@5.6" "php@7.0" "php@7.1" "php@7.2" "php@7.3")
valet_support_php_version_array=("php@5.5" "php@5.6" "php@7.0" "php@7.1" "php@7.2" "php@7.3")
View gist:6df3bdb106e2b06242b10ae549e5e021
type: parents
show_root: true
show_all: true
show_fullpath: false
show_slug: true
start_route: '/test'
limit_levels: 3
classes: fancy
rhukster / conditional.yaml
Last active Mar 19, 2017
Conditional Field in Use
View conditional.yaml
type: conditional
condition: "id ? 'false' : 'true'"
classes: overlay bottom
label: New Field A
type: text
rhukster /
Last active Jul 25, 2019
Watch script for wellington sassc wrapper
# Configuration
# sass source
# sass options
rhukster /
Last active Dec 24, 2016 — forked from w00fz/
PHP switcher
# Check if command was ran as root.
if [[ $(id -u) -eq 0 ]]; then
echo "The command \"sphp\" should not be executed as root or via sudo directly."
echo "When a service requires root access, you will be prompted for a password as needed."
exit 1
# Usage
View Vagrant Landing Page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Vagrant Grav</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="">
/* Space out content a bit */
You can’t perform that action at this time.