Skip to content

Instantly share code, notes, and snippets.

View chrissnell's full-sized avatar

Chris Snell chrissnell

View GitHub Profile
@chrissnell
chrissnell / circular-average.sql
Last active December 18, 2021 01:07
Circular average via custom PostgreSQL aggregate function
CREATE TYPE circular_avg_state AS (
sin_sum real,
cos_sum real,
accum real
);
CREATE OR REPLACE FUNCTION circular_avg_state_accumulator(state circular_avg_state, reading real)
RETURNS circular_avg_state
IMMUTABLE
This is my pressure cooker adaptation of my mother-in-law's recipe. She's a real-deal Cajun from "down on da bayou". Contrary to popular belief, Cajun food is not red-hot spicy. It's predominantly savory, owing to its French-Canadian heritage. Our kids love this recipe and have been eating it since they were on solid food.
You'll need:
1 pound red kidney beans
1 onion
1 stalk celery (optional)
1 green bell pepper (optional)
1 link of Hillshire Farms smoked sausage (like polish style). You can use turkey but pork/beef is most authentic
1-2 bay leafs
% mattermost-desktop
App threw an error during load
TypeError: app.makeSingleInstance is not a function
at Module.<anonymous> (/usr/lib/mattermost-desktop/app.asar/main_bundle.js:302:9)
at __webpack_require__ (/usr/lib/mattermost-desktop/app.asar/main_bundle.js:20:30)
at /usr/lib/mattermost-desktop/app.asar/main_bundle.js:84:18
at Object.<anonymous> (/usr/lib/mattermost-desktop/app.asar/main_bundle.js:87:10)
at Object.<anonymous> (/usr/lib/mattermost-desktop/app.asar/main_bundle.js:16670:3)
at Module._compile (internal/modules/cjs/loader.js:693:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:704:10)
#!/bin/bash
#
# Credit to @raydog for this script
#
if [ -z "$1" ] ; then
echo "Usage: $0 <mp4_file>"
exit 1
fi
MOVFILE="$1"
-----BEGIN CERTIFICATE-----
MIIFCTCCA/GgAwIBAgISAyI8Ihspe7IRQ5u5XUovELf6MA0GCSqGSIb3DQEBCwUA
MEoxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MSMwIQYDVQQD
ExpMZXQncyBFbmNyeXB0IEF1dGhvcml0eSBYMzAeFw0xNzA4MzAxODE0MDBaFw0x
NzExMjgxODE0MDBaMB4xHDAaBgNVBAMTE2hvbWUuY2hyaXNzbmVsbC5jb20wggEi
MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCg1N/cK9DOomuDKI+p7SpIYVZm
uM/JqzzVs1DHuJ8E3EeBd0BUZ6LRjQWM/izjNbTI4H7sY7EFmq6OQ+cB9OL3HTQ7
35ipxexpWXEi01Cx/iUF1VS2D1sTl1Zfmt26VXrGHPwnKYavimswrDr8RfTYuGB+
xt6XpD1S1OIsZOa3XINnOKd0+lNesEohacO0xexT/BEvedvr6w1J0fGQd78l+CDm
VEVbWvkYt3CSLZl6nY5R51mE4xmrUjii7amV/mLNldgddIqbWA+ZYYm6i6vyABrU

Keybase proof

I hereby claim:

  • I am chrissnell on github.
  • I am chrissnell (https://keybase.io/chrissnell) on keybase.
  • I have a public key ASDcBQzsvMAoHjIAS0G6Cb9Acpi5mm95vFQ8SVg_OVD_sgo

To claim this, I am signing this object:

@chrissnell
chrissnell / xorg.conf
Created March 14, 2017 16:27
UP2715K + dual GTX 1070 xorg.conf
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
@chrissnell
chrissnell / xorg.conf
Created March 14, 2017 16:27
UP2715K + dual GTX 1070 xorg.conf
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
1 pound of pinto beans 6 cups water 1 yellow onion 3 teaspoons cumin 2-3
tablespoons dark chili powder (optional...not totally authentic but I like it)
Soak beans overnight in a big pot full of cold water. In the morning, discard
water and thoroughly rinse the beans. Chop one onion. Add beans, chopped
onion, water, and cumin (and optional chili powder) to instant pot. Stir. Cook
on high pressure for 15 minutes, cut power, and allow to depressurize
naturally. Remove lid and add salt to taste (careful--not too much salt). Once
you have them tasting good, you now have borracho beans (literally: "drunk
beans"). For refried beans, drain and discard all water. Put beans in the
1 pound red kidney beans 1 link of Hillshire Farms smoked sausage (like polish
style) 1 celery stalk 1 yellow onion 1-2 bay leaves Ground cayenne pepper Brown
rice or long-grain white rice Crystal brand hot sauce
This is my pressure cooker adaptation of my mother-in-law's recipe.
Rinse 1 pound of red kidney beans, then cover with 3-4" of water and soak
overnight. The next morning, dump the water and rinse them thoroughly.
Chop one medium-sized yellow onion and one celery stalk.