Skip to content

Instantly share code, notes, and snippets.

View thejeffreystone's full-sized avatar

Jeffrey Stone thejeffreystone

View GitHub Profile
@thejeffreystone
thejeffreystone / Jarvis.py
Created December 9, 2016 14:11 — forked from GGulati/Jarvis.py
Pythom Speech Recognition
import speech_recognition
import pyttsx
speech_engine = pyttsx.init('sapi5') # see http://pyttsx.readthedocs.org/en/latest/engine.html#pyttsx.init
speech_engine.setProperty('rate', 150)
def speak(text):
speech_engine.say(text)
speech_engine.runAndWait()
@thejeffreystone
thejeffreystone / 0_reuse_code.js
Created December 9, 2016 14:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@thejeffreystone
thejeffreystone / pre-commit
Created March 21, 2016 15:42 — forked from stevendanna/pre-commit
Pre-commit hook to help prevent key leakage
#!/bin/bash
#
# Warn about possible cloud access keys before committing
#
exec </dev/tty
unset possible_keys
possible_keys=$(git diff --cached | egrep '^[+\-].*(AKIA|AWS_ACCESS|AWS_SECRET|OS_PASSWORD|OS_USERNAME)')
if [[ -n "$possible_keys" ]];then
echo -e "WARNING: Diff contains possible access keys:\n"
echo "${possible_keys}"
@thejeffreystone
thejeffreystone / install_splunk.sh
Created January 7, 2016 01:40 — forked from stamler/install_splunk.sh
Install Splunk Enterprise 6.2 on CentOS 7 Minimal as a non-root user systemd service and enable syslog on port 514 and http on port 80
#!/bin/bash
# Install Splunk 6.2 on CentOS 7 as a non-root user service that runs on boot with
# systemd. This script also opens the firewall to allow syslog on UDP port 514. Since
# we're running Splunk as non-root, this port is then forwarded to 5514. Configuring a
# syslog input in slunk on UDP 514 will gather this data. Must be run as root
# Create Account
useradd splunk
groupadd splunk
<?php
use Illuminate\Auth\UserProviderInterface as UserProvider;
use Illuminate\Auth\UserInterface as UserInterface;
class LdapProvider implements UserProvider{
public function __construct(){}
/**