Skip to content

Instantly share code, notes, and snippets.

View rwcitek's full-sized avatar

Robert Citek rwcitek

View GitHub Profile
@rwcitek
rwcitek / debootstrap-ubuntu-precise.txt
Last active August 29, 2015 14:10
Installing Ubuntu Precise (12.04) in a VirtualBox VM using Knoppix 7.2 and debootstrap
# based in part on information from here:
# http://www.linuxquestions.org/questions/debian-26/how-to-install-debian-using-debootstrap-4175465295/
#### Part 1 - VM and Knoppix
# create a VM with an 8GB /dev/sda, a bridged eth0, and KNOPPIX_V7.2.0DVD-2013-06-16-EN.iso attached
# boot Knoppix 7.2 with options
knoppix64 2 vga=788 noaudio
@rwcitek
rwcitek / debootstrap-ubuntu-precise-auto.txt
Last active August 29, 2015 14:10
Mostly automated install of Ubuntu Precise (12.04) in a VirtualBox VM using Knoppix 7.2 and debootstrap
# based in part on information from here:
# http://www.linuxquestions.org/questions/debian-26/how-to-install-debian-using-debootstrap-4175465295/
#### Part 1 - Knoppix
# boot Knoppix 7.2
knoppix64 2 vga=788 noaudio
# configure networking
@rwcitek
rwcitek / debootstrap-ubuntu-trusty-auto.txt
Created November 29, 2014 18:37
Mostly automated install of Ubuntu Precise (12.04) and upgrade to Trusty (14.04) in a VirtualBox VM using Knoppix 7.2 and debootstrap
# based in part on information from here:
# http://www.linuxquestions.org/questions/debian-26/how-to-install-debian-using-debootstrap-4175465295/
# https://wiki.ubuntu.com/FoundationsTeam/Specs/KarmicLandscapeReleaseUpgrades
#### Part 1 - Knoppix
# boot Knoppix 7.2
knoppix64 2 noaudio
# configure networking
@rwcitek
rwcitek / gitflow.commands.in.video.txt
Last active August 29, 2015 14:11
The commands used to explain git flow in this video: http://vimeo.com/16018419
# the commands used to explain git flow in this video:
# http://vimeo.com/16018419
# pre-reqs:
# apt-get install git git-flow tig tmux
# run tmux in split screen (optional, but is what is done in video)
# in lower screen ... refreshing occasionally
tig
@rwcitek
rwcitek / rpm.services.list.sh
Last active August 29, 2015 14:11
Generates a list of RPM packages for listening services that may require a restart with an upgrade.
#!/bin/bash
# Generates a list of RPM packages for listening services that may result in services being restarted during a upgrade.
# These probably should not be upgraded automatically in a production environment.
netstat -plntu |
grep -o '[0-9]*/' |
tr -d / |
sort -u |
xargs -r -i stat -c "%N" /proc/{}/exe |
@rwcitek
rwcitek / deb.pkg.reboot.txt
Created December 19, 2014 23:02
Finding DEB packages that should be held back because they will require a reboot to take effect.
# finding DEB packages that should be held back because they will require a reboot to take effect
# get latest state of packages
apt-get clean && apt-get update && apt-get -dy upgrade
# find those needing reboot
cd /var/cache/apt/archives/ && rm -rf DEBIAN
for i in *.deb ; do
echo == ${i}
dpkg-deb -e ${i}
@rwcitek
rwcitek / install.ansible.ubuntu.1004.sh
Last active May 18, 2017 08:32
Installing Ansible on Ubuntu 10.04
# from http://docs.ansible.com/intro_installation.html#running-from-source
# as of 2015-02-08
## ansible on Ubuntu 10.04
# become root
sudo su -
# as root ...
apt-get update
apt-get -y install python-pip python-dev git-core make
@rwcitek
rwcitek / debootstrap-debian-squeeze-auto.txt
Last active April 24, 2021 04:22
Mostly automated install of Debian Squeeze in a VirtualBox VM using Knoppix 7.2 and debootstrap
# based in part on information from here:
# http://www.linuxquestions.org/questions/debian-26/how-to-install-debian-using-debootstrap-4175465295/
#### Part 1 - Knoppix
# boot Knoppix 7.2
knoppix64 2 vga=788 noaudio
# configure networking
@rwcitek
rwcitek / slide-deck.sh
Last active August 7, 2022 20:43 — forked from sluugdemogithub/slide-deck.sh
Creating a new slidedesk repo from the jekyll-and-slide repo
# This gist combines specific commits from two different repos: jekyll-and-slide and reveal.js
# - https://github.com/adamhollett/jekyll-and-slide
# - https://github.com/hakimel/reveal.js
# If there was a way to do this from the browser, this gist would be unnecessary.
# prerequisite: create a blank repo in GitHub and note repo URL
# i.e. no README, no license, completely blank
REMOTE_URL='https://github.com/sluugdemogithub/demo03.git'
# create the URL for GitHub Pages
@rwcitek
rwcitek / slide-deck.existing.repo.sh
Created November 2, 2022 05:16
Creating a GH pages slide deck inside an existing repo
# This gist combines specific commits from two different repos: jekyll-and-slide and reveal.js
# - https://github.com/adamhollett/jekyll-and-slide
# - https://github.com/hakimel/reveal.js
# If there was a way to do this from the browser, this gist would be unnecessary.
# prerequisite: an existing repo in GitHub, no branch named "gh-pages", and note repo URL
REMOTE_URL='https://github.com/sluugdemogithub/demo03.git'
# create the URL for GitHub Pages
<<< "$REMOTE_URL" IFS='/' read scheme x host id repo