This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(date; cat /proc/interrupts) | md5sum | sed -r 's/^(.{6}).*$/\1/;s/([0-9a-f]{2})/\1:/g;s/^/00:0c:29:/;s/:$//' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# User specific aliases and functions | |
. $HOME/.aliases |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Code to get random line from file from Bryce Boe: | |
# http://www.bryceboe.com/2009/03/23/random-lines-from-a-file/ | |
# | |
import os, random, sys, string | |
mixed = string.punctuation + string.digits + string.ascii_letters | |
l337 = string.maketrans('abegiloprstzAS', '263611092572@$') | |
max = 16 | |
if __name__ == '__main__': |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%define _topdir /home/username/builds | |
%define _sourcedir %{_topdir}/SOURCES | |
%define _builddir %{_topdir}/BUILD | |
%define logmsg logger -t %{name}/rpm | |
Name: this-package | |
Version: 1.0 | |
Release: 0.1%{?dist} | |
Summary: Summary goes here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use CGI::Carp qw(fatalsToBrowser warningsToBrowser set_message); | |
### Custom fatals browser message | |
BEGIN { | |
sub handle_errors { | |
my $msg = shift; | |
my $err_mail = "Error%20message:%0A%0A\ | |
-------------------------------------------------------------------------------%0A\ | |
$msg%0A\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
defaults write com.apple.iTunes full-window -boolean YES |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ktpass -princ HTTP/[fully.qualified.domain.name]@[REALM] -mapuser [AD_user]@[REALM] -ptype KRB5_NT_PRINCIPAL -pass [password] -out c:\path\to\keytab.file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zypper in kernel-source kernel-syms | |
cd /var/tmp && wget http://path/to/src/rpm | |
rpm -ivh hp-be2net-4.1.402.6-2.src.rpm | |
rpmbuild -bb /usr/src/packages/SPECS/hp-be2net.spec | |
ls -l /usr/src/packages/RPMS/x86_64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~/bin | |
curl -0 http://gdata-python-client.googlecode.com/files/gdata-2.0.17.tar.gz | tar -xz | |
cd gdata-2.0.17 | |
python setup.py install --home=~ | |
cd .. | |
curl -0 http://googlecl.googlecode.com/files/googlecl-0.9.13.tar.gz | tar -xz | |
cd googlecl-0.9.13 | |
python setup.py install --home=~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cd /var/tmp | |
# wget http://kojipkgs.fedoraproject.org//packages/libimobiledevice/1.1.1/3.fc16/i686/libimobiledevice-1.1.1-3.fc16.i686.rpm | |
# yum localinstall libimobiledevice-1.1.1-3.fc16.i686.rpm |