Skip to content

Instantly share code, notes, and snippets.

View LibRaw's full-sized avatar

LibRaw LLC LibRaw

View GitHub Profile
@tinbotu
tinbotu / _ethernet-server-adapters-X520-SR2.png
Last active June 16, 2024 07:26
log: patching Intel X520 10G*2 SFP+ NIC EEPROM to unlock third party transceivers (succeed)
_ethernet-server-adapters-X520-SR2.png
@asomers
asomers / zfsfrag.py
Last active November 6, 2016 09:05
Python script to analyze fragmentation of a ZFS file system
# Copyright (c) 2014-2015 Spectra Logic Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions, and the following disclaimer,
# without modification.
# 2. Redistributions in binary form must reproduce at minimum a disclaimer
@Richzendy
Richzendy / check-availability.php
Last active May 6, 2019 09:08
Script to check SoYouStart availability
<?php
/*
* Script to check SoYouStart availability based on http://www.tienle.com/2014/09-03/script-check-soyoustart-availability.html
* to help see http://www.richzendy.org/2014/10/05/script-php-para-chequear-y-notificar-disponibilidad-de-servidores-en-soyoustart.html
*/
define('CHECK_URL', 'http://ws.ovh.com/dedicated/r2/ws.dispatcher/getAvailability2');
define('NOTIFICATION_EMAILS', 'YOUR_EMAIL@DOMAIN.COM');
define('SYSTEM_EMAIL', '1'); // 1 = enabled local smtp system
define('MANDRILL', '0'); // 1 = enable email trought mandrill api, require an account on https://mandrillapp.com/
@allanmac
allanmac / bfe64.cu
Last active December 16, 2015 23:29
What is the best way to extract up to 32 bits that straddle the 32-bit boundary of a 64-bit word given a constant starting position and number of bits? On sm_35 the SHF.R.CLAMP opcode can accomplish this in two instructions. For sm_12-sm_30 devices as many as four instructions are required.
#include <stdio.h>
//
//
//
#define DEVICE_INTRINSIC_QUALIFIERS __device__ __forceinline__
//
//