Skip to content

Instantly share code, notes, and snippets.

View austinkregel's full-sized avatar

Austin Kregel austinkregel

View GitHub Profile
@austinkregel
austinkregel / occurences-of-computer-command.json
Last active January 11, 2024 04:28
A little gist that scaned all of the Star Trek transcrips published here (Discovery, Deep Space 9, Voyager, etc) https://github.com/varenc/star_trek_transcript_search, extracts the keyword "computer", identifiers the speaker, and then also gets the full line spoken for context.
[
{
"speaker": "SISKO",
"message": "Acknowledged. Come on. What do you say? We'll take the pond with us. Computer, end programme.",
"wakeWord": "Computer",
"actual_message": "Computer, end programme."
},
{
"speaker": "DAX",
"message": "Computer, create a data base for all historical references to the Orbs, including all reports of any unexplained phenomena in Bajoran space.",
@austinkregel
austinkregel / en.yaml
Created November 18, 2023 01:43
A converted dialogflow bot to homeassistant with minor success.
language: en
intents:
account.balance.check@account:
data:
- check my @account balance
- check my @account account
- what's the balance in my @account account
- show available money on my @account account
- "@account"
account.balance.check:

akregel

Keybase proof

I hereby claim:

  • I am austinkregel on github.
  • I am akregel (https://keybase.io/akregel) on keybase.
  • I have a public key ASBsLIhM3srhoidqQuvNOsU2mI40ho6bX3sNtf7MgvC-0go

To claim this, I am signing this object:

@austinkregel
austinkregel / .phpstorm.meta.php
Last active January 9, 2020 06:23
IDE style resource of types and returns for libvirt-php. This contains all methods for PHP LibVirt paired with their respective types, parameters, and return types.
<?php
if (!function_exists('libvirt_connect')) {
/**
* This function should be called first to get a connection to the Hypervisor. If necessary, authentication will be performed using supplied credentials.
* @param string $url URL of the hypervisor to connect to. Can be for example or .
* @param bool $readonly If (default) connection is made readonly.
* @param array $credentials Credentials to authenticate with. See for more details.
* @return resource|bool
* @see https://libvirt.org/php/api-reference.html#libvirt_connect
@austinkregel
austinkregel / slug.js
Created June 14, 2019 03:08
Laravel 5.x Str::slug conversion to JavaScript
const charsArray={
'0': ['°', '₀', '۰', '0'],
'1': ['¹', '₁', '۱', '1'],
'2': ['²', '₂', '۲', '2'],
'3': ['³', '₃', '۳', '3'],
'4': ['⁴', '₄', '۴', '٤', '4'],
'5': ['⁵', '₅', '۵', '٥', '5'],
'6': ['⁶', '₆', '۶', '٦', '6'],
'7': ['⁷', '₇', '۷', '7'],
'8': ['⁸', '₈', '۸', '8'],
@austinkregel
austinkregel / digital-ocean-dark-mode.css
Created January 2, 2019 23:59
A dark mode theme for digital ocean built for the chrome extension Stylebot.
/**
* This theme is _not_ perfect in the slightest, but it achieves my goal of
* making a dark theme for much of the DO UI.
* Suggestions are welcome, and will be implemented to this theme at my own discretion.
*/
.Button--blue {
background: #3490DC;
}
@austinkregel
austinkregel / set-up-mac.md
Last active February 12, 2018 19:40
This is just a helper script for my co-workers to quickly setup their new macs.
#!/bin/bash
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install bash-git-prompt
cat <<EOT >> ~/.bash_profile
if [ -f "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh" ]; then
__GIT_PROMPT_DIR=$(brew --prefix)/opt/bash-git-prompt/share
source "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh"
@austinkregel
austinkregel / install-crouton.sh
Created November 19, 2017 04:06
This is a bash script to install crouton for chromebooks
#!/bin/bash
# Install crouton
echo ''
echo ''
echo '# Installing crouton #'
echo ''
curl -sS https://raw.githubusercontent.com/dnschneid/crouton/master/installer/crouton > /tmp/crouton
echo ''
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\Http\Requests;
use App\Models\User;
use Socialite;
class MagicController extends Controller
{
"dash": {
"abs": false,
"brake": false,
"check_engine": [
"Mass Airflow Sensor needs replacing (MAF)"
],
"cruise_control": {
"active": true,
"speed": 59