Skip to content

Instantly share code, notes, and snippets.

@cupracer
cupracer / nfs.stp
Last active February 10, 2021 17:54
Systemtap script to trace various NFS calls
#! /usr/bin/env stap
global log_nfs_file_open = 1;
global log_nfs_file_read = 1;
global log_nfs_file_write = 1;
global log_nfs_getattr = 1;
global log_nfs_permission = 1;
global log_nfs_opendir = 1;
global log_nfs_lookup = 1;
@anupdugar
anupdugar / OauthClient.php
Created January 12, 2015 07:11
Scripts to demo Magento 2 Oauth1.a token exchange
<?php
use OAuth\Common\Consumer\Credentials;
use OAuth\Common\Http\Client\ClientInterface;
use OAuth\Common\Http\Exception\TokenResponseException;
use OAuth\Common\Http\Uri\Uri;
use OAuth\Common\Http\Uri\UriInterface;
use OAuth\Common\Storage\TokenStorageInterface;
use OAuth\OAuth1\Service\AbstractService;
use OAuth\OAuth1\Signature\SignatureInterface;
@paulirish
paulirish / rAF.js
Last active March 22, 2024 00:00
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];