Skip to content

Instantly share code, notes, and snippets.

An Ansible summary

Patterns

  • all (or *)
  • hostname: foo.example.com
  • groupname: webservers
  • or: webservers:dbserver
  • exclude: webserver:!phoenix
  • intersection: webservers:&staging
#!/bin/sh
# this shell script was written to clean up disk space whenever i am tight on my old and small SSD.
# intended for RHEL based OS but it should work with debian based with a couple of tweaks
#
# i have used it to gain upto 5gb of space. YMMV
#
# improvements welcome!
#!/bin/sh
@marafa
marafa / gist:c60d22e4eb55649d2df9d1cb6e3cf618
Created November 28, 2019 01:48
"./plex/database/Library/Application Support/Plex Media Server/Preferences.xml" for an offline never to touch plex pass local lan media server
<?xml version="1.0" encoding="utf-8"?>
<Preferences MachineIdentifier="56394cf4-5902-4b2c-9b4c-330980578f95" ProcessedMachineIdentifier="52ec730661cc046b8ba62b7468c7983e7bd65ef5" AcceptedEULA="1" FSEventLibraryUpdatesEnabled="1" ScheduledLibraryUpdatesEnabled="1" iPhotoSharingEnabled="0" iTunesSharingEnabled="0" ButlerEndHour="7" ButlerStartHour="1" CinemaTrailersFromLibrary="0" collectUsageData="0" OnDeckWindow="1" FriendlyName="plex.marafa.vm" AnonymousMachineIdentifier="b66c9744-ed81-46e5-ad85-0e95cfd1be42" GracenoteUser="WEcxAy+VcymhOd3gRJTxUGQxAa6QOxzoMv8ybLL7kLQtELyGtHNaZ2KVmZFNPItDF2rL2L3+gU+Y07wEaGjfkmiGE2wOUDZGelXjWShISsgOCmmXvvuqCEPO8MxfKdpQFVfV6h1giZWwlEWlV7jJk1awyNW+0PI85RaUUzw3q5MzziHxzZOQlEaZCTd1H6a6/jspXg==" allowedNetworks="192.168.0.0/24" MetricsEpoch="1" agentAutoEnabled.com.plexapp.agents.lastfm.Artists.com.plexapp.agents.vevo="1" agentAutoEnabled.com.plexapp.agents.lastfm.Albums.com.plexapp.agents.lyricfind="1" agentAutoEnabled.com.plexapp.agents.plexmusic.Albums.com.plexapp.agents.lyricfi