Author: Engineering Team Date: 2026-02-04 Status: Proposal Type: Feature Enhancement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM python:3.9-slim | |
| # Set environment variables | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| # Install the Kubernetes Python client | |
| RUN pip install --no-cache-dir kubernetes==32.0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "__inputs": [ | |
| { | |
| "name": "DS_PROMETHEUS", | |
| "label": "Prometheus", | |
| "description": "", | |
| "type": "datasource", | |
| "pluginId": "prometheus", | |
| "pluginName": "Prometheus" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew install sleepwatcher | |
| # write restart_apps.sh to ~/.wakeup | |
| chmod +x ~/.wakeup | |
| brew services start sleepwatcher | |
| # your mileage may vary getting sleepwatcher to run the script, but, the script should work if executed manually |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE OR REPLACE FUNCTION copy_table_triggers(p_source_tablename text, p_dest_tablename text) RETURNS boolean | |
| LANGUAGE plpgsql | |
| AS | |
| $$ | |
| DECLARE | |
| v_sql text; | |
| v_trigger_list record; | |
| BEGIN | |
| -- Triggers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -i -H 'Content-type: application/json' -H 'Authorization: key=<your_server_key>' -XPOST https://fcm.googleapis.com/fcm/send -d '{ | |
| "registration_ids":["registration_ids", "of the", "target", "devices as array"], | |
| "notification": { | |
| "title":"Title of your notification", | |
| "body":"content of your notification" | |
| }, | |
| "data": { | |
| "key1" : "value1", | |
| "key2" : "value2", | |
| "key3" : 23.56565, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -e | |
| apt-get install -y wget unzip recode | |
| wget -nc https://nces.ed.gov/ccd/Data/zip/ccd_sch_029_1516_txt_prel_tab.zip | |
| unzip -o ccd_sch_029_1516_txt_prel_tab.zip | |
| recode ISO-8859-15..UTF8 /tmp/ccd_sch_029_1516_txt_prel.tab | |
| #EXPLAIN ANALYZE select sch_name, lea_name, ncessch, website, updated_status, charter_text, ts_rank(search, to_tsquery('simple', 'Michi:*')) AS rank FROM ccd_schools ORDER BY rank DESC LIMIT 100; | |
| #EXPLAIN ANALYZE WITH results AS (select sch_name, lea_name, ncessch, website, updated_status, charter_text, search FROM ccd_schools WHERE search @@ to_tsquery('simple', 'Michi:*')) SELECT *, ts_rank(search, to_tsquery('simple', 'Michi:*')) AS rank FROM results ORDER BY rank DESC LIMIT 100; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| apt-get install -y libreadline-dev libncurses5-dev libpcre3-dev \ | |
| libssl-dev perl make build-essential git curl \ | |
| unzip | |
| git clone https://github.com/RedisLabsModules/password.git /tmp/password | |
| git clone https://github.com/RedisLabsModules/rebloom.git /tmp/rebloom | |
| git clone https://github.com/RedisLabsModules/redis-graph.git /tmp/redis-graph |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This is an attempt at doing things the most obvious way with an | |
| // emphasis on readability ... It's not clever but it's still not obvious | |
| // what we're doing. It also requires you to know both javascript and | |
| // CSS selectors | |
| var addIfAgreed = [ | |
| 2, 4, 5, 6, 7, 9, 12, 13, 16, 18, 19, 20, 21, 22, 23, 26, 33, 35, 39, 41, | |
| 42, 43, 45, 46 | |
| ] |
NewerOlder