Skip to content

Instantly share code, notes, and snippets.

@WheresWardy
WheresWardy / usertap.log
Created November 29, 2011 13:57
Usertap error log
[root@w tmp]# stap -vv --vp 00001 /root/usertap/src/usertap.stp
Created temporary directory "/tmp/staphlk3IP"
SystemTap translator/driver (version 1.4/0.152 non-git sources)
Copyright (C) 2005-2011 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
enabled features: AVAHI LIBRPM LIBSQLITE3 NSS BOOST_SHARED_PTR TR1_UNORDERED_MAP
Session arch: x86_64 release: 2.6.32-131.0.15.el6.x86_64
Searched "/usr/share/systemtap/tapset/x86_64/*.stp", found 3 processed 3
Searched "/usr/share/systemtap/tapset/*.stp", found 73 processed 73
Pass 1: parsed user script and 76 library script(s) using 96876virt/22600res/2788shr kb, in 140usr/20sys/151real ms.
@WheresWardy
WheresWardy / filter_date.rb
Created June 4, 2013 11:19
Jekyll/Liquid plugin to add an ordinal suffix to dates
module Jekyll
module DateFilter
def ord(v)
(['1', '21', '31'].include?(v) && "st") ||
(['2', '22'].include?(v) && "nd") ||
(['3', '23'].include?(v) && "rd") ||
"th"
end
def date_post(postdate)
--- kcompat.h 2014-11-05 18:14:14.780832000 +0000
+++ kcompat-modified.h 2014-11-05 18:16:53.552832000 +0000
@@ -3172,8 +3172,6 @@
#define u64_stats_update_begin(a) do { } while(0)
#define u64_stats_update_end(a) do { } while(0)
#define u64_stats_fetch_begin(a) do { } while(0)
-#define u64_stats_fetch_retry_bh(a) (0)
-#define u64_stats_fetch_begin_bh(a) (0)
#if (RHEL_RELEASE_CODE && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,1))
@WheresWardy
WheresWardy / find_iam_user.py
Last active February 11, 2019 12:09 — forked from OnlyInAmerica/find_iam_user.py
Find an AWS IAM user corresponding to an AWS Access Key
#!/usr/bin/env python
# Find the IAM username belonging to the TARGET_ACCESS_KEY
# Useful for finding IAM user corresponding to a compromised AWS credential
# Requirements:
#
# Environmental variables:
# AWS_PROFILE
# python: