Skip to content

Instantly share code, notes, and snippets.

@BladeWDR
BladeWDR / install-lazygit.yml
Created June 8, 2024 14:21
Ansible Playbook to install lazygit on localhost.
---
- name: Install Lazygit
hosts: localhost
connection: local
become: true
tasks:
- name: Get the latest Lazygit version
ansible.builtin.uri:
url: https://api.github.com/repos/jesseduffield/lazygit/releases/latest
@BladeWDR
BladeWDR / Disable-Recall.ps1
Created October 21, 2024 18:55
Disable Recall Powershell script
$TempDir = 'C:\Temp'
if(-not (Test-Path -Path "$TempDir" -PathType Container)){
New-Item -Path "$TempDir" -ItemType Directory
}
Start-Transcript -Path "$TempDir\Disable-Recall-Scheduled-Task.log" -Force
$WindowsDisplayVersion = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").DisplayVersion
@BladeWDR
BladeWDR / ansible-edit-sources.yml
Created December 7, 2024 01:53
An Ansible version of Apalrd's rewrite.sh :)
---
- name: Edit the sources files on Debian and Ubuntu hosts to use our local caching webserver.
hosts: all
vars:
internal_cache_server_name: http://deb.test.xyz
# Original repo name we need to match on the left, the path in your nginx webserver on the right.
original_repo_targets:
http://archive.ubuntu.com/ubuntu: ubuntu
@BladeWDR
BladeWDR / fedora-setup.sh
Created December 8, 2024 21:36
Fedora setup script for SwayWM
#!/usr/bin/env bash
# Fedora installation helper script.
# I tend to build these from the server installer for a cleaner system
# So there's quite a few packages missing.
set -eou pipefail
# vars
# Various packages
@BladeWDR
BladeWDR / docker-compose.yml
Created January 7, 2025 02:04
SearXNG docker stack
networks:
proxy:
external: true
# description: Self-hosted metasearch engine
# https://github.com/searxng/searxng-docker
# Copy the settings template in etc/searxng and save it as settings.yml in the same directory.
# Make sure you change the secret key.
services: