Skip to content

Instantly share code, notes, and snippets.

View ProfessorManhattan's full-sized avatar
💭
Free Gaza

Brian Zalewski ProfessorManhattan

💭
Free Gaza
View GitHub Profile
@mcmire
mcmire / 00_README.md
Last active October 31, 2022 01:17
Installation and uninstallation scripts for dotfiles

This gist provides scripts that you can use to install files inside of a dotfiles repo into your home directory and uninstall them if you wish. To use these, download the zip file of this gist and unzip it into the bin folder of your dotfiles repo. Then run chmod +x bin/install bin/uninstall. After this, run:

bin/install --help
bin/uninstall --help
@MikeKlebolt
MikeKlebolt / Dockerfile
Last active June 5, 2024 03:44
Molecule setup used for testing Windows Ansible roles with Docker
# Molecule managed
FROM microsoft/windowsservercore:latest
RUN powershell.exe -Command \
wget https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 -Proxy <proxy> -Outfile c:\remoting.ps1; \
powershell.exe -ExecutionPolicy ByPass -File c:\remoting.ps1 -EnableCredSSP; \
$password = ConvertTo-SecureString "<password>" -AsPlainText -Force; \
Set-LocalUser -Name administrator -Password $password; \
Enable-LocalUser -Name "Administrator"; \
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
EXPOSE 5986
@danihodovic
danihodovic / script.py
Created June 18, 2018 10:11
Fix yamllint document start
#!/usr/bin/env python3
# Auto fixes the yamllint warning `document-start`.
# Walks all the files in the `ansible` directory and executes yamllint on
# every yaml file. If the document start error is found it prepends the
# file with `---\n`.
import os
import subprocess
from pathlib import Path
@boyvanamstel
boyvanamstel / gist:2919778
Created June 12, 2012 19:58
Enable/Disable 'Gatekeeper' in Mac OS X Lion for testing purposes
$ sudo spctl --master-enable
$ sudo spctl --master-disable
# Read more: http://forums.appleinsider.com/t/143736/gatekeeper-is-hidden-in-os-x-10-7-3-lion-developers-can-preview-it-now