Skip to content

Instantly share code, notes, and snippets.

View rhukster's full-sized avatar

Andy Miller rhukster

View GitHub Profile
rhukster / gist:e8f5f3676c38dde29624734ea99bf837
Created September 5, 2020 16:33 — forked from yehgdotnet/gist:6353e367cb1178017980d2437417d6a5
.htaccess (allow only cloudflare IP range) Raw
View gist:e8f5f3676c38dde29624734ea99bf837
<Files 403.shtml>
order allow,deny
allow from all
deny from all
allow from
rhukster /
Created August 19, 2020 22:15 — forked from oleq/
A2DP audio streaming using Raspberry PI (Raspbian Jessie)

What is this all about?

This tutorial will turn your Raspberry PI into a simple Bluetooth audio receiver, which plays music through connected speakers. It's like a regular car audio system, but it can be used anywhere and it's a good value.

   Audio source (i.e. smartphone) 
 (((  Wireless Bluetooth Channel  )))
rhukster / test-ldap-2.php
Created May 5, 2018 04:36 — 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]
rhukster /
Last active September 13, 2022 06:21 — 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