Skip to content

Instantly share code, notes, and snippets.

View erichowey's full-sized avatar

Eric Howey erichowey

  • Talkroute Inc.
  • Las Vegas
View GitHub Profile
int leds = 9;
int increase = 12;
int decrease = 13;
int level = 20;
void setup()
{
pinMode(leds, OUTPUT);
pinMode(increase, INPUT_PULLUP);
pinMode(decrease, INPUT);
@erichowey
erichowey / gist:07d9bc2220f2327d940b6976bf0c4d28
Last active June 26, 2020 21:00
Proposed Number Search API King Cobra
GET /api/king-cobra/v2/nanp/search/local
AT LEAST ONE OF THE FOLLOWING PARAMTERS ARE REQUIRED:
area_code
state_province
zip_postal
country
rate_center
@erichowey
erichowey / TestFire2012.ino
Created July 3, 2020 03:43
Multiple CRGB Instances
#include <FastLED.h>
#define LEFT_LED_PIN 22
#define RIGHT_LED_PIN 23
#define LEFT_NUM_LEDS 72
#define RIGHT_NUM_LEDS 72
CRGB leftLEDS[NUM_LEDS];
CRGB rightLEDS[NUM_LEDS];
{
"difficulty_settings":
{
"recipe_difficulty": 0,
"technology_difficulty": 0,
"technology_price_multiplier": 1,
"research_queue_setting": "after-victory"
},
"pollution":
{
"name": "MegaSmelter69",
"description": "",
"tags": ["game", "tags"],
"_comment_max_players": "Maximum number of players allowed, admins can join even a full server. 0 means unlimited.",
"max_players": 0,
"_comment_visibility": ["public: Game will be published on the official Factorio matching server",
"lan: Game will be broadcast on LAN"],
; version=9
; This is INI file : https://en.wikipedia.org/wiki/INI_file#Format
; Semicolons (;) at the beginning of the line indicate a comment. Comment lines are ignored.
[path]
read-data=__PATH__executable__/../../data
write-data=__PATH__executable__/../..
[general]
locale=
## ULAW/ALAW
ffmpeg -i <any_file> -ar 8000 -ac 1 -acodec pcm_s16le -f s16le Output.sln
## OPUS
ffmpeg -i <any_file> -map_metadata -1 -ar 48000 -b:a 64k -ac 1 -acodec libopus -f opus Output.opus
## G722
ffmpeg -i <any_file> -ar 16000 -acodec g722 -b:a 64k Output.g722
## m4a
return {
[ "LuaORM.LuaORM.Model" ] = "L",
[ "LuaORM.LuaORM.Query.Clause.OrderBy.OrderByRule" ] = "L",
[ "LuaORM.LuaORM.Query.Clause.Where" ] = "L",
[ "LuaORM.LuaORM.Query.Clause.Join.JoinRule" ] = "L",
[ "LuaORM.LuaORM.Util.Type.TypeRestriction" ] = "L",
[ "LuaORM.LuaORM.Util.Type.Type" ] = "L",
[ "LuaORM.LuaORM.FieldValueRowList.FieldValueRowList" ] = "L",
[ "LuaORM.LuaORM.Query.Condition.Condition" ] = "L",
[ "LuaORM.LuaORM.Util.Logger" ] = "L",
@erichowey
erichowey / LuaORMTest.lua
Created January 21, 2021 20:49
LuaORMTest.lua
require "globals"
local settings = require "lib.Settings"
--local DB = require "lib.Database"
local API = require "LuaORM.API"
local Model = API.Model
local fieldTypes = API.fieldTypes
API.ORM:initialize({
@erichowey
erichowey / invokeai.service
Created May 8, 2023 20:42
InvokeAI systemd unit file
[Unit]
Description=A Stable Diffusion Toolkit
After=network.target
[Service]
Type=simple
WorkingDirectory=/opt/invokeai/
ExecStart=/opt/invokeai/.venv/bin/python /opt/invokeai/.venv/bin/invokeai --web --host 0.0.0.0 --port 8989 --root_dir /opt/invokeai
User=invokeai
Group=invokeai