This file contains 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
#include "rdtsc.h" | |
#include <stdio.h> | |
int main(void) | |
{ | |
unsigned long long start = rdtsc(); | |
printf("start time [clock] : %llu\n", start ); | |
int n = 5; |
This file contains 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
$ sudo gem install test-kitchen | |
ERROR: While executing gem ... (Gem::DependencyError) | |
Unable to resolve dependencies: vagrant requires json (~> 1.5.1) | |
$ sudo gem list json | |
*** LOCAL GEMS *** | |
json (1.7.7, 1.6.1) |
This file contains 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/perl | |
#Usage checkLTrace.pl [keyword] [filepath] | |
#use strict; | |
#use warnings; | |
if (@ARGV < 2) { exit(1); }; | |
$grepword = $ARGV[0]; | |
$filename = $ARGV[1]; |
This file contains 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/env python | |
import sys | |
import libvirt | |
import guestfs | |
from lxml import etree | |
if (len(sys.argv) != 3): | |
sys.exit('Usage: # sudo python %s old_domain new_domain' % sys.argv[0]) | |
old_domain = sys.argv[1] |