Skip to content

Instantly share code, notes, and snippets.

Avatar

Kevin R. Barnes vinbarnes

View GitHub Profile
@noelhibbard
noelhibbard / Doorbell.env
Last active May 16, 2023 14:48
This gist shows how to pull the local stream from a Wyze camera and then push it to an RTMP server.
View Doorbell.env
# Edit and rename this file and then place it in /etc/wyzecam-to-rtmp
WYZE_EMAIL="joeblow@example.com"
WYZE_PASSWORD="wyzepasshere"
WYZE_CAMERA_NAME="Doorbell"
RTMP_URL="rtmp://127.0.0.1/live/doorbell"
@dhh
dhh / Gemfile
Created June 24, 2020 22:23
HEY's Gemfile
View Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
@blackwright
blackwright / repl.js
Last active April 7, 2020 10:10
Sequelize REPL
View repl.js
// Require the REPL module
// and models
let repl = require('repl').start({});
const models = require('./models');
// Make the `models` object
// a global variable in the
// REPL
repl.context.models = models;
View a_terrible_thing.txt
[aaron@TC omglolwut (master)]$ cat lib/tasks/disable_autoload_during_migrations.rake
task :disable_autoload do
ActiveSupport::Dependencies.class_eval do
extend Module.new {
def load_file(path, const_paths = loadable_constants_for_path(path))
return if path.starts_with? File.join(Rails.application.root, 'app', 'models')
super
end
}
end
@vinbarnes
vinbarnes / changelog_summary.sh
Created November 17, 2015 14:25
get changelog summary
View changelog_summary.sh
git log -p --no-color --since="5 days ago" -S "*" -- CHANGELOG.md |grep -n "+.*\*" | tr -d '+' | sort -r -n | sed 's/^[0-9]*://g'
@TodoCleverNameHere
TodoCleverNameHere / 01-JiraLikeTrello.md
Last active April 21, 2019 11:44
Make Jira's Agile Board look like Trello
View 01-JiraLikeTrello.md

Make Jira's Agile Board look like Trello

Do you love the simple, easy-to-use, good-looking interface of Trello? But are you instead forced to use the ugly, complicated "polar bear in a snow storm" Jira agile board for your planning, grooming, and standups? Then this is the pill that just might help you survive, allowing you to use Jira's clunky agile board without giving up your sanity.

To start improving your Atlassian experience, use the browser plugin of your choice to inject the CSS code below into your Jira page (Chrome users: I have really enjoyed this extension if you don't have one already).

Extra credit

Hate Jira's annoying issue editing sidebar that takes precious column space and is too squished to appreciate your ticket anyway? And hate it when you click the ticket title and Jira redirects you to another page? You

@stephenyeargin
stephenyeargin / roll-slack-webhooks.rb
Last active August 29, 2015 14:17
Roll Slack Webhooks
View roll-slack-webhooks.rb
require 'octokit'
# Config
GITHUB_API_TOKEN = '<a token>'
GITHUB_ORGANIZATION = '<an organization>'
###
client = Octokit::Client.new(
access_token: GITHUB_API_TOKEN
View gist:4f4080ee87f177e87607
RUBY_GC_HEAP_FREE_SLOTS=600000
RUBY_GC_HEAP_GROWTH_FACTOR=1.25
RUBY_GC_HEAP_GROWTH_MAX_SLOTS=300000
RUBY_GC_HEAP_INIT_SLOTS=600000
RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=1.3
RUBY_GC_MALLOC_LIMIT=64000000
RUBY_GC_OLDMALLOC_LIMIT=64000000
RUBY_HEAP_FREE_MIN=12500
RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
RUBY_HEAP_SLOTS_INCREMENT=100000
@bradp
bradp / setup.sh
Last active June 8, 2023 20:56
New Mac Setup Script
View setup.sh
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install
@gnarmis
gnarmis / git-recent-branches
Last active August 29, 2015 14:01
List Git Branches by Recency
View git-recent-branches
#!/bin/bash
#
# Blame @gnarmis if this doesn't work
#
# Put this anywhere on your $PATH (~/bin is recommended). Then git will see it
# and you'll be able to do `git recent-branches`.
#
# Show top 5 most recent branches:
# $ git recent-branches | head -n 5
#