Discover gists
This file contains 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 | |
# Production Docker Host Hardening Script v2 | |
# For Ubuntu Server 24.04 LTS (Noble) | |
# Suitable for both Kamal deployment and builder hosts | |
set -euo pipefail | |
IFS=$'\n\t' | |
# --- Constants --- |
This file contains 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
-- https://stackoverflow.com/q/73109333 | |
name: push | |
on: [push] | |
jobs: | |
list-contents: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: ls ./src/content/ > ./src/_content.txt | |
- run: if [[ "$(git diff --exit-code src/_content.txt)" =~ 'diff' ]]; then echo "IS_VALID=true" >> $GITHUB_ENV; else echo "IS_VALID=false" >> $GITHUB_ENV ;fi |
This file contains 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
peridot_config: &peridot_src | |
base_url: https://mtnrepo.ciq.dev | |
use_hashed_repo: false | |
credentials: | |
username: depot-sync | |
password: arglebarglemarglefargle | |
pulp_config: | |
remote_defaults: &pulp_remote_defaults | |
# These settings are used as default values for the remotes that are created using it. |
This file contains 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
Pipeline still running ... | |
PipelineRun is still running: Tasks Completed: 44 (Failed: 1, Cancelled 0), Incomplete: 2, Skipped: 8 | |
[get-pr-number : parse-pr-url] + echo -n 5144 | |
[get-pr-number : parse-pr-url] + tee /tekton/results/git_pr_number | |
[get-pr-number : parse-pr-url] 5144 | |
[acquire-lease : create-lease] + calculate_duration_in_seconds 90m | |
[acquire-lease : create-lease] + '[' m == m ']' | |
[acquire-lease : create-lease] + TOTAL_DURATION_IN_SECONDS=5400 | |
[acquire-lease : create-lease] + export TOTAL_DURATION_IN_SECONDS |
This file contains 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
[Unit] | |
Description=DNS sniffer | |
After=network.target | |
[Service] | |
Type=simple | |
Restart=always | |
RestartSec=1 | |
User=root | |
ExecStart=tcpdump -l port 53 |
This file contains 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
-- AH POST-SERVER LOGS -- | |
-- ServerID: 3e54865c-a661-4bb1-bb13-8189246b1365 | |
-- Server started: February 06, 2025 08:24 PM UTC | Server uptime: 59 seconds | |
------------------ LOADB LOGS ------------------ | |
{ | |
} |
This file contains 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
(2025|26}Benson Idahosa University , Edo State Registration Form is on sale call (08125777035) for Admission Processing. Admission Forms On sales Of Direct entry form, Pre-Degree Form, Jupeb form IJMB Form, masters form, Ph.D Form, Sandwich Form, Diploma Form, Change of institution form, Transfer form, Change of course Form are all out Call Admin On {O8125777035} on how to purchase the form and register online, For Admission Process on how to be admitted and mode of payment of School Fee And Acceptances Fee Contact Office of the registrar on +2348125777035 for more Details. |
This file contains 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
// https://stackoverflow.com/a/56911273 | |
// Custom init for a SwiftUI view that uses Combine | |
struct CustomInput : View { | |
@Binding var text: String | |
var name: String | |
init(_ name: String, _ text: Binding<String>) { | |
self.name = name | |
self._text = text |
This file contains 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
{ | |
"passed": true, | |
"results": { | |
"errors": [], | |
"failed": [], | |
"passed": [ | |
{ | |
"description": "Check to make sure that all CRs have a spec block.", | |
"elapsed_time": 12723.0, | |
"name": "ScorecardBasicSpecCheck" |
This file contains 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
sudo modprobe i2c-stub chip_addr=0x10 | |
echo monitoring_system 0x10 | sudo tee /sys/bus/i2c/devices/i2c-1/new_device | |
echo 'file drivers/i2c/* +p' | sudo tee /sys/kernel/debug/dynamic_debug/control |