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
| # Adds all projects found under the specified repo roots to the solution. | |
| # Updates the original projects package references to project references where applicable. | |
| # Usage: .\Convert-To-ProjectReferences.ps1 -SolutionPath "<path_to_solution>" -RepoRoots "<path_to_repo_root_1>", "<path_to_repo_root_2>" | |
| # The IgnoreTestProjects parameter is defaulted to $true. | |
| # The -Debug switch exists. | |
| param( | |
| [Parameter(Mandatory=$true)] | |
| [string]$SolutionPath, | |
| [Parameter(Mandatory=$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
| # Extracts all package versions to Directory.Packages.props and leaves package references in the .csprojs recursively. | |
| # Will accommediate for multi-target builds with package references that are conditional to TargetFramework. | |
| # Usage: .\Convert-To-DirectoryPackages.ps1 -RootPath "C:\path_to_root_solution"." | |
| # The PreserveAssets parameter will leave the PrivateAssets and IncludedAssets elements in each csproj. | |
| # Those elements will be added as attributes to Directory.Packages.props always. | |
| param( | |
| [string]$RootPath = ".", | |
| [string]$OutputFile = "Directory.Packages.props", | |
| [bool]$PreserveAssets = $false |
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
| # Place a copy of this config to ~/.aerospace.toml | |
| # After that, you can edit ~/.aerospace.toml to your liking | |
| # You can use it to add commands that run after AeroSpace startup. | |
| # Available commands : https://nikitabobko.github.io/AeroSpace/commands | |
| after-startup-command = [] | |
| # Start AeroSpace at login | |
| start-at-login = 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
| import socket | |
| import threading | |
| import argparse | |
| import sys | |
| LISTEN_HOST = '0.0.0.0' | |
| LISTEN_PORT = 4222 | |
| REAL_PORT = 4222 # Fixed NATS port | |
| def handle_client(client_sock, real_host): |
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
| # List of plugins | |
| set -g @plugin 'tmux-plugins/tpm' | |
| set -g @plugin 'tmux-plugins/tmux-sensible' | |
| set -g @plugin 'tmux-plugins/tmux-logging' | |
| set -g @plugin 'tmux-plugins/tmux-yank' | |
| set -g @plugin 'tmux-plugins/tmux-resurrect' | |
| set -g prefix C-a | |
| bind C-a send-prefix |
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
| #!/usr/bin/env python | |
| import hmac | |
| import hashlib | |
| import json | |
| from lib.core.data import kb | |
| from lib.core.enums import PRIORITY | |
| __priority__ = PRIORITY.NORMAL |
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
| # Common useful commands | |
| # Must be sourced first. | |
| # . .\CcHelper.ps1 | |
| # Dependencies | |
| # donet package add coverlet.msbuild | |
| # dotnet tool install -g dotnet-reportgenerator-globaltool | |
| # dotnet tool install --global coverlet.console | |
| # Useful |
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
| # Based off: https://paulbutler.org/2025/smuggling-arbitrary-data-through-an-emoji/ | |
| import argparse | |
| ENCODING = 'utf-8' | |
| HEX_RANGE = 16 | |
| CODE_POINT_RANGE = 256 # Variation selectors | |
| # Variation selectors block https://unicode.org/charts/nameslist/n_FE00.html | |
| # VS1..=VS16 | |
| VARIATION_SELECTOR_START = 0xFE00 |
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
| <div style="width: 220px; height:50px; background-color: #343c41; border-radius:4px; text-align: left; background-image: url(https://www.hackthebox.com/images/icon20.png); background-position: right 5px bottom 5px; background-repeat: no-repeat;"> | |
| <style scoped>@font-face {font-family: "Roboto";font-style: normal;font-weight: 400;src: url(https://fonts.gstatic.com/s/ubuntumono/v6/ViZhet7Ak-LRXZMXzuAfkY4P5ICox8Kq3LLUNMylGO4.woff2) format("woff2");}.htb_font {font-family: "Roboto", monospace;}.htb_nickname {color: #ffffff;font-size: 12px;font-weight: bold;}.htb_points {color: #56C0E0;font-size: 10px;}.htb_respect {color: #f7af3e;font-size: 10px;}.htb_ranking {color: #ffffff;font-size: 10px;}.htb_line {line-height: 12px;margin: 0px;padding: 0px;}.htb_link {color: #9acc14;font-size:0.6em;text-decoration: none;}.htb_link:hover {color: #9acc14;font-size:0.6em;text-decoration: underline;}.htb_link:visited {color: #9acc14;}.htb_rank{color: #ffffff;font-size: 11px;}.htb_row1{height:13px;}.htb_row2{height:17px;}.htb_ |
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 openAllDates() { | |
| const parentElement = document.querySelector('.privboard-days'); | |
| const spans = parentElement.querySelectorAll('span'); | |
| spans.forEach(span => { | |
| const anchor = document.createElement('a'); | |
| const dayText = span.textContent.replace(/\n/g, ''); | |
| anchor.href = `/2024/day/${dayText.replace(/<br>/g, '')}`; // Remove <br> for href | |
| anchor.innerHTML = span.innerHTML; |
NewerOlder