Skip to content

Instantly share code, notes, and snippets.


Zan Loy zanloy

View GitHub Profile
emad-elsaid / share-screen.rb
Created Feb 22, 2014
share your screen on the local network
View share-screen.rb
require 'socket'
require 'base64'
Refresh = 1 # seconds to refresh image on server
screen_capture_command = 'screencapture -C -x tmp.png'
image = ''
latest =
server = 3000
loop do
brianredbeard /
Last active Jun 16, 2020
Reposync - A better tool than mrepo. Use this to sync down all channels a RHEL system is subscribed to and turn them into locally exposed yum repositories.
# This tool can be used to sync down Red Hat based packages from RHN using only Red Hat shipped tools
# Brian "Red Beard" Harrington <>
# To satisfy the pre-reqs for this script install the following two rpms:
# yum-utils
# createrepo
/usr/bin/reposync --gpgcheck -m --download-metadata -l -p ${download_dir}/ >> /var/log/reposync.log 2>&1