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
| # Dump all notifications to find the ids of scam notifs | |
| gh api notifications > notifications.json | |
| # Read and parse the JSON file | |
| $notifications = Get-Content "notifications.json" | ConvertFrom-Json | |
| # Find all objects with "unread": true and display their URLs | |
| $notifications | Where-Object { $_.unread -eq $true } | ForEach-Object { | |
| Write-Output $_.url | |
| # Extract thread ID from URL (number after the last /) |
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
| log_format lf_app '$remote_addr - $remote_user [$time_local] $status $body_bytes_sent "$request" ' | |
| '"$http_referer" ' | |
| '"$http_user_agent" "$http_x_forwarded_for" ' | |
| '<"$obfuscated_request_body" >'; | |
| map $request_body $obfuscated_request_body { | |
| ~*(.*)(password)(.*) $1$2********; | |
| default $request_body; | |
| } |
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 node:18 | |
| ARG ACCEPT_HIGHCHARTS_LICENSE=YES | |
| ARG HIGHCHARTS_VERSION=9.2.2 | |
| # Create app directory | |
| WORKDIR /usr/src/app | |
| RUN npm install highcharts-export-server -g |
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
| # configure proxy for git while on corporate network | |
| # From https://gist.github.com/garystafford/8196920 | |
| function proxy_on(){ | |
| # assumes $USERDOMAIN, $USERNAME, $USERDNSDOMAIN | |
| # are existing Windows system-level environment variables | |
| # assumes $PASSWORD, $PROXY_SERVER, $PROXY_PORT | |
| # are existing Windows current user-level environment variables (your user) | |
| # environment variables are UPPERCASE even in git bash |