- The UI must have the ability to override (skip) the next scheduled shutdown without modifying the schedule itself.
- The GitHub Actions must provide a workflow dispatch or endpoint that:
- Accepts a request from the UI to override the next scheduled shutdown.
- Ensures the scheduled shutdown does not execute for the upcoming window (but does not affect future scheduled shutdowns).
- Optionally, clears the override after the scheduled shutdown time has passed (so future shutdowns happen as normal).
- Returns confirmation of the override action.
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
| import { Injectable } from '@angular/core'; | |
| import { HttpClient, HttpHeaders } from '@angular/common/http'; | |
| import { Observable, forkJoin, of } from 'rxjs'; | |
| import { switchMap, map, catchError } from 'rxjs/operators'; | |
| @Injectable({ | |
| providedIn: 'root', | |
| }) | |
| export class GithubService { | |
| private apiUrl = 'https://api.github.com'; |
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
| function dev() { | |
| local dir="${1:-$PWD}" | |
| dir="$(realpath "$dir")" | |
| if [[ ! -d "$dir" ]]; then | |
| echo "Directory does not exist: $dir" | |
| return 1 | |
| fi | |
| local session_file |
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
| function dev() { | |
| local home="$HOME" | |
| local dir | |
| dir=$(find "$home" -type d \( \ | |
| -path "$home/Music" -o \ | |
| -path "$home/Library" -o \ | |
| -path "$home/Downloads" -o \ | |
| -path "$home/Desktop" -o \ | |
| -path "$home/Documents" -o \ |
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
| app.get('/auth/microsoft', (req, res) => { | |
| const redirectUri = 'http://localhost:3000/auth/microsoft/callback'; // This must match the app registration | |
| const finalRedirect = req.query.redirect_uri || '/'; | |
| req.session.redirectUri = finalRedirect; | |
| const params = new URLSearchParams({ | |
| client_id: process.env.MICROSOFT_CLIENT_ID, | |
| response_type: 'code', | |
| redirect_uri: redirectUri, | |
| scope: 'openid profile offline_access https://graph.microsoft.com/.default', |
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
| app.get('/auth/github', (req, res) => { | |
| const redirectUri = req.query.redirect_uri || '/'; | |
| req.session.redirectUri = redirectUri; | |
| const params = new URLSearchParams({ | |
| client_id: process.env.GITHUB_CLIENT_ID, | |
| redirect_uri: 'http://localhost:3000/auth/github/callback', | |
| scope: 'read:user user:email', | |
| allow_signup: 'true', | |
| }); |
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
| /** | |
| * @typedef TOCItem | |
| * @property {number} level.required - Heading level (1 for h1, 2 for h2, etc.) | |
| * @property {string} text.required - Text of the heading | |
| * @property {string} slug.required - Slugified ID used for anchor navigation | |
| */ | |
| /** | |
| * @typedef PatternIndexItem | |
| * @property {number} id.required - Unique identifier for the page |
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
| const axios = require('axios'); | |
| const RALLY_API_HOST = 'https://rally1.rallydev.com' | |
| const RALLY_API_PATH = `/slm/webservice/v2.0` | |
| const RALLY_WORKSPACE = '4729135433' | |
| const RALLY_PROJECT = { | |
| pidi: 344842856592, // 5 - PIDI Intake | |
| dss: 89480156508, // AS DS - Infrastructure | |
| } |
This project involves building predictive models to analyze customer churn using Python, pandas, scikit-learn, and XGBoost. It includes data preprocessing, feature engineering, model training, and evaluation.
/data: Contains raw and processed datasets. Raw data should not be committed./notebooks: Jupyter notebooks for exploratory data analysis and prototyping./src: Python scripts for data processing, modeling, and evaluation./models: Saved model artifacts./reports: Generated reports and visualizations.
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
| # update system packages | |
| sudo apt-get update | |
| sudo apt-get install -y ca-certificates curl | |
| # add Docker’s official GPG key and repo | |
| sudo install -m 0755 -d /etc/apt/keyrings | |
| sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc | |
| sudo chmod a+r /etc/apt/keyrings/docker.asc | |
| echo \ | |
| "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] \ |
OlderNewer