Skip to content

Instantly share code, notes, and snippets.

View ClayMav's full-sized avatar

Clay McGinnis ClayMav

View GitHub Profile
@jadsonbr
jadsonbr / ath10k
Created June 21, 2017 17:47 — forked from MichelLacerda/ath10k
ath10k debian
http://askubuntu.com/questions/708061/qualcomm-atheros-device-168c0042-rev-30-wi-fi-driver-installation
Ubuntu 16.04 users should just need to
wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.157.5_all.deb
sudo dpkg -i linux-firmware_1.157.5_all.deb
Reboot
@mihow
mihow / load_dotenv.sh
Last active July 18, 2025 07:10
Load environment variables from dotenv / .env file in Bash
# The initial version
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
# My favorite from the comments. Thanks @richarddewit & others!
set -a && source .env && set +a
@PurpleBooth
PurpleBooth / README-Template.md
Last active July 17, 2025 05:44
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@ericremoreynolds
ericremoreynolds / client.html
Last active February 25, 2024 21:55
Flask-socket.io emit to specific clients
<html>
<body>
<h1>I feel lonely</h1>
<script type="text/javascript" src="//code.jquery.com/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/0.9.16/socket.io.min.js"></script>
<script type="text/javascript" charset="utf-8">
var socket = io.connect('http://' + document.domain + ':' + location.port);
socket.on('connect', function() {
socket.emit('connected');