Skip to content

Instantly share code, notes, and snippets.

Avatar

Zan Loy zanloy

View GitHub Profile
@emad-elsaid
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 = Time.now
server = TCPServer.new 3000
loop do
@brianredbeard
brianredbeard / syncrepos.sh
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.
View syncrepos.sh
#!/bin/bash
# This tool can be used to sync down Red Hat based packages from RHN using only Red Hat shipped tools
# Brian "Red Beard" Harrington <brian@dead-city.org>
# To satisfy the pre-reqs for this script install the following two rpms:
# yum-utils
# createrepo
download_dir="/var/www/html/RHN"
/usr/bin/reposync --gpgcheck -m --download-metadata -l -p ${download_dir}/ >> /var/log/reposync.log 2>&1