Skip to content

Instantly share code, notes, and snippets.

View schlomo's full-sized avatar

Schlomo Schapiro schlomo

View GitHub Profile
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b4)
00:1c.2 PCI bridg
@schlomo
schlomo / avconcat.sh
Created January 15, 2014 20:32
Simple Video Tricks: Concatenate
#!/bin/bash
#
# concatenate several SOURCE_CONCAT_FILE_NAMES files into a mp4
# FIRST_NAME and second argument are file names or parts of a filename. All files inbetween will be concatenated.
START="$1" ; shift
END="$1" ; shift
COMMON_PREFIX=""
# find all input files
@schlomo
schlomo / udp_stream_recorder.conf
Last active January 2, 2016 15:38
Simple Upstart Service to record incoming UDP streams into time-stamped files.
# Service definition for Upstart, put into /etc/init
description "Record TS stream from VGADVIRecorder"
start on started autofs
stop on stopping autofs
respawn
# who else will have access
umask 0000
@schlomo
schlomo / ... SSH PKI Test Suite & Demo
Last active December 18, 2015 09:09
SSH PKI demo
Moved to https://github.com/schlomo/openssh-config-test
@schlomo
schlomo / demo3.ipxe
Last active October 27, 2015 04:51
iPXE Installation menu with several Linux Distributions and Live CDs
#!ipxe
menu Bitte waehlen Sie ein Betriebssystem zur Installation aus
item ubuntu Ubuntu installieren
item fedora Fedora installieren
item --gap
item back Zurueck zum Hauptmenue
choose --timeout 20000 --default back target && goto ${target} || goto menu
:ubuntu
set ubuntu http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-i386/current/images/netboot/ubuntu-installer/i386
schlomo@brho:~/src/rpi-image-creator$ ./rpi-image-creator /dev/sdd
Switching over to run as root
Fetching http://downloads.raspberrypi.org/raspbian/images/raspbian-2015-02-17/2015-02-16-raspbian-wheezy.zip
Checksum of download/2015-02-16-raspbian-wheezy.zip: OK
Loop-back mounting temp/2015-02-16-raspbian-wheezy.img
Raspbian Image Details:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/loop0p1 56M 15M 42M 26% mnt/img_root/boot
/dev/mapper/loop0p2 2.9G 2.3G 462M 84% mnt/img_root
Modifying Image
schlomo@brho:~/src/rpi-image-creator$ ./rpi-image-creator --chroot
Switching over to run as root
Fetching http://downloads.raspberrypi.org/raspbian/images/raspbian-2015-02-17/2015-02-16-raspbian-wheezy.zip
Checksum of download/2015-02-16-raspbian-wheezy.zip: OK
Loop-back mounting temp/2015-02-16-raspbian-wheezy.img
Raspbian Image Details:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/loop0p1 56M 15M 42M 26% mnt/img_root/boot
/dev/mapper/loop0p2 2.9G 2.3G 462M 84% mnt/img_root
Modifying Image
APT::FTPArchive::Release::Origin "Schlomo";
APT::FTPArchive::Release::Label "Schlomo Stable";
APT::FTPArchive::Release::Architectures "amd64 armhf armel i386";
APT::FTPArchive::Release::Description "Private Packages";
@schlomo
schlomo / putinrepo.sh
Created February 18, 2015 21:12
Simple DEB repository management. See http://blog.schlomo.schapiro.org/2015/02/simplified-deb-repository.html for full story
#!/bin/bash
#
# Trivial DEB repo management
#
# Written by Schlomo Schapiro
# Licensed under the GNU General Public License, see http://www.gnu.org/licenses/gpl.html for full text
set -e -E -u
if [[ ! "${REPO_BASE_DIR:-}" ]] ; then
ME_DIR="$(dirname "$(readlink -f "$0")")"
for CHECK_DIR in "$ME_DIR" "$ME_DIR"/../repo "$ME_DIR"/repo ; do
@schlomo
schlomo / auto.sh
Created February 7, 2015 19:18
Ubuntu guest session configuration. This script runs as the guest user and should be installed as /etc/guest-session/auto.sh
gsettings set org.gnome.desktop.lockdown disable-user-switching true
gsettings set org.gnome.desktop.session idle-delay 0
gsettings set com.canonical.indicator.session suppress-restart-menuitem true
gsettings set com.canonical.indicator.session suppress-shutdown-menuitem true
gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Alt>Shift_L']"
gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'de+deadgraveacute'), ('xkb', 'il')]"
gsettings set com.canonical.indicator.datetime show-day true
gsettings set com.canonical.indicator.datetime show-seconds true
gsettings set com.canonical.indicator.datetime show-date true
gsettings set com.canonical.indicator.datetime show-week-numbers true