Skip to content

Instantly share code, notes, and snippets.

@renews
renews / kamal-production-server-setup.sh
Created February 6, 2025 20:27 — forked from rameerez/kamal-production-server-setup.sh
Set up a Ubuntu server to deploy Kamal 2.x Docker containers to, hardened security and production ready
#!/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 ---
@dnedrow
dnedrow / SkipIfNoCodeChanges.yml
Last active February 6, 2025 20:28
Skip GitHub Actions workflow step(s) if there are no code changes
-- 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
@josephtate
josephtate / sample-pulp-repo-config.yaml
Created February 6, 2025 20:26
A YAML file to describe the pulp setup for a release workflow with multiple sources(remotes) and protected final stage.
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.
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
@julsemaan
julsemaan / dns-sniffer.service
Last active February 6, 2025 20:38
dns-sniffer.service
[Unit]
Description=DNS sniffer
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=1
User=root
ExecStart=tcpdump -l port 53
@DolphinOfficial
DolphinOfficial / PostShutdownFullLog.txt
Created February 6, 2025 20:25
Text file created by Roblox
-- 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 ------------------
{
}
@Schoolads
Schoolads / gist:77e299898087036b0c57d05977f52907
Created February 6, 2025 20:25
(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 Admi…
(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.
@dnedrow
dnedrow / CustomSwiftUIViewInitWithCombine.swift
Created February 6, 2025 20:25
Custom init for a SwiftUI view that uses Combine
// 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
{
"passed": true,
"results": {
"errors": [],
"failed": [],
"passed": [
{
"description": "Check to make sure that all CRs have a spec block.",
"elapsed_time": 12723.0,
"name": "ScorecardBasicSpecCheck"
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