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 | |
# runs lsbom from .pkg without leaving temp files lying around | |
PKG=$1 | |
[ ! -f "$PKG" ] && echo "usage: $0 <pkg-file> [ <lsbom-args> ... ]" && exit 1 | |
shift | |
BOM=$(pkgutil --bom "$PKG") | |
lsbom $@ "$BOM" |
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 -x | |
# | |
# killgit - removes .git directories recursively | |
# | |
find . -type d -name .git -exec rm -rf {} \; |
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
Initializing cgroup subsys cpuset | |
Initializing cgroup subsys cpu | |
Linux version 2.6.32-131.17.1.el6.x86_64 ([email protected]) (gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC) ) #1 SMP Thu Oct 6 19:24:09 BST 2011 | |
Command line: ro root=UUID=fce6e337-a49c-4328-87f0-d2a27013bb73 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet vga=773 usbcore.autosuspend=1 | |
KERNEL supported cpus: | |
Intel GenuineIntel | |
AMD AuthenticAMD | |
Centaur CentaurHauls | |
BIOS-provided physical RAM map: | |
BIOS-e820: 0000000000000000 - 000000000009d800 (usable) |
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/python | |
# | |
# pretty print xml | |
# modified from http://stackoverflow.com/questions/749796 | |
# | |
import xml.dom.minidom | |
import codecs | |
import sys |
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
awk 'BEGIN {FS="\t"} $4 == "m" && index($3, " native ")' < tags |
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
# | |
# example: | |
# f = open('/path/some/file', 'r') | |
# age, year, c = unpack('>HHB', f) | |
# | |
import struct | |
def unpack(fmt, f, offset=None): | |
"""Unpacks data read from file stream at optionally specified offset""" |
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
/* | |
* simple replacement executable for logging arguments | |
*/ | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
int main(int argc, char *argv[]) { | |
int i; |
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
# | |
# Kickstart file for minimal CentOS VM | |
# http://fedoraproject.org/wiki/Anaconda/Kickstart | |
# | |
# to use, pass ks=http://server/ks.cfg to kernel | |
# | |
#version=RHEL6 | |
install | |
text |
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
import win32con | |
import win32gui | |
import ctypes | |
_user32 = ctypes.windll.user32 | |
excludes = (_user32.GetShellWindow(), win32gui.FindWindow('Shell_TrayWnd', None)) | |
winlist = [] | |
win32gui.EnumWindows(lambda hwnd, l: l.append(hwnd) if \ |
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
schtasks /Change /TN \Microsoft\Windows\Maintenance\WinSAT /DISABLE |
OlderNewer