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
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
#!/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
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
%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
#!/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
# .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
(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
# Gmail settings | |
set imap_user = "[email protected]" | |
set imap_pass = "password" | |
set smtp_url = "smtp://[email protected]:587/" | |
set smtp_pass = "password" | |
set from = "[email protected]" | |
set realname = "User Name" | |
set folder = "imaps://imap.gmail.com:993" | |
set spoolfile = "+INBOX" | |
set postponed="+[Gmail]/Drafts" |
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
# Default sessions | |
screen -t HOME 4 | |
# Scrolling buffer | |
defscrollback 99999 | |
altscreen on | |
# PuTTY fix | |
term xterm | |
termcapinfo xterm ti@:te@ |