Skip to content

Instantly share code, notes, and snippets.

@rhettc
rhettc / query_examples.sql
Created May 7, 2020 12:52 — forked from markwhat1/query_examples.sql
Open Dental Query Examples
This file has been truncated, but you can view the full file.
Home Welcome to the Open Dental Query Examples Page
These query examples were written for other practices, usually for a specific purpose. There may be additional changes needed to return the results you want.
Queries are sorted chronologically, with queries written for older versions listed first and queries written for newer versions listed last.
We recommend looking at higher numbered queries first, because older queries may not work in new versions.
If you find a query you like, copy/paste the query into Open Dental to run it. See User Queries
If needed, change
any required variables before running. Look at the query comments for variable descriptions.
@rhettc
rhettc / query_examples.sql
Created May 7, 2020 12:52 — forked from markwhat1/query_examples.sql
Open Dental Query Examples
This file has been truncated, but you can view the full file.
Home Welcome to the Open Dental Query Examples Page
These query examples were written for other practices, usually for a specific purpose. There may be additional changes needed to return the results you want.
Queries are sorted chronologically, with queries written for older versions listed first and queries written for newer versions listed last.
We recommend looking at higher numbered queries first, because older queries may not work in new versions.
If you find a query you like, copy/paste the query into Open Dental to run it. See User Queries
If needed, change
any required variables before running. Look at the query comments for variable descriptions.
@rhettc
rhettc / reclaimWindows10.ps1
Last active November 6, 2019 00:50 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...
@rhettc
rhettc / async_await_best_practices_cheatsheet.md
Created September 20, 2019 20:18 — forked from jonlabelle/async_await_best_practices_cheatsheet.md
C# Asynchronous Programming Guideline Cheat Sheet

Async Await Best Practices Cheat Sheet

Summary of Asynchronous Programming Guidelines

Name Description Exceptions
Avoid async void Prefer async Task methods over async void methods Event handlers
Async all the way Don't mix blocking and async code Console main method
Configure context Use ConfigureAwait(false) when you can Methods that require con­text
@rhettc
rhettc / Puzzle.ino
Last active May 11, 2016 22:13
Extract Method
void setupButton(int pin, Bounce debouncer)
{
pinMode(pin, INPUT_PULLUP);
// configure the de-bounce for this button
debouncer.attach(pin);
debouncer.interval(5);
}
void setup() {
@rhettc
rhettc / gist:ba33e5b58b2dcf0c0c04
Created November 17, 2014 22:15
use find to duplicate the parent directory’s structure into the current directory, files are not copied
# given the structure
../foo/bar
../fizz/bang
../beep
# move into the beep child dir and run the command
cd beep
find ../ -mindepth 1 -type d -printf "%P\0" | xargs --null mkdir
# now beep has the same structure
./foo/bar
./fizz/bang
@rhettc
rhettc / Program.cs
Last active August 29, 2015 14:08 — forked from anonymous/Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TemplateFoo
{
class Program
{
@rhettc
rhettc / big_consumers.sh
Created September 15, 2014 19:05
disk usage
du -chd1 -t1G
# include grand total, friendly sizes, max depth 1, greater than 1G
const int c = 261;
const int d = 294;
const int e = 329;
const int f = 349;
const int g = 391;
const int gS = 415;
const int a = 440;
const int aS = 455;
const int b = 466;
const int cH = 523;
@rhettc
rhettc / pgactivity
Created April 16, 2014 23:37
Show open connections to databases in a brief format conducive to CLI usage
SELECT procpid as pid,
usename as user,
datname as db,
application_name as app, waiting as wait, current_query as query
FROM pg_stat_activity
WHERE datname <> 'postgres';