Skip to content

Instantly share code, notes, and snippets.

//
// AXI Read
//
{"signal" : [
{"name":"aclk", "wave":"p.............|..."},
{"name":"araddr", "wave":"x|x2.x|x..........",
"data": ["0x07000100"]},
{"name":"arvalid", "wave":"x|01.0|..........."},
{"name":"arready", "wave":"x|0.1.0|.........."},
{},
#!/usr/bin/perl
use strict;
use warnings;
#
# Beauty of Math!
# https://plus.google.com/u/0/102786751626732213960/posts/PvZKGwZ3kLQ
#
@asolkar
asolkar / Chrome Installation.csh
Created December 16, 2011 05:15
Chrome and LibreOffice on RHEL 6.1
% cd /one/of/my/dirs
% mkdir sys
% cd sys
% rpm2cpio ~/Downloads/google-chrome-beta_current_x86_64.rpm | cpio -idmv --no-absolute-filenames
@asolkar
asolkar / cr48_cpu_info.log
Created December 11, 2010 22:03
Cr-48 CPU information
cpu: Intel(R) Atom(TM) CPU N455 @ 1.66GHz
cpuinfo:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU N455 @ 1.66GHz
stepping : 10
/*
Copyright 2008 Mahesh Asolkar
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@asolkar
asolkar / Output of the script
Created June 2, 2010 06:01
My dvgrab script
[sudo] password for mahesh:
Found AV/C device with GUID 0x0800460104f74565
Waiting for HDV...
Capture Started
"video_editors_2010.05.31_17-52-26.m2t": 32.40 MiB 312 frames timecode 00:14:46.11 date 2010.05.31 17:52:36
"video_editors_2010.05.31_17-53-00.m2t": 37.49 MiB 360 frames timecode 00:14:58.11 date 2010.05.31 17:53:11
"video_editors_2010.05.31_20-09-12.m2t": 349.50 MiB 3363 frames timecode 00:16:50.18 date 2010.05.31 20:11:04
"video_editors_2010.05.31_20-16-16.m2t": 38.43 MiB 370 frames timecode 00:17:02.29 date 2010.05.31 20:16:29
"video_editors_2010.05.31_20-17-38.m2t": 38.17 MiB 368 frames timecode 00:17:15.08 date 2010.05.31 20:17:50
"video_editors_2010.05.31_20-18-46.m2t": 38.36 MiB 369 frames timecode 00:17:27.17 date 2010.05.31 20:18:58
sudo aptitude install build-essential libxmmsclient-dev \
libx11-dev libxext-dev libxdamage-dev \
libxft-dev liblua5.1-dev libglib2.0-dev \
libcurl-dev libcurl4-dev
./configure --prefix=/opt/conky \
--enable-xmms2 --disable-mpd \
--enable-nvidia --enable-weather-metar \
--enable-curl
make
sudo make install
# set to yes if you want Conky to be forked in the background
background yes
# Use Xft?
use_xft yes
xftalpha 0.1
xftfont Droid Sans:size=10
# Update interval in seconds
update_interval 1
./configure --prefix=/opt/apps/pidgin \
PURPLE_CFLAGS="-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/opt/apps/pidgin/include/libpurple -L/opt/apps/pidgin/lib -lpurple" \
INTLTOOL_PERL=/opt/perl/bin/perl
if ($status) exit $status
gmake
if ($status) exit $status
gmake install
#!/depot/perl-5.8.3/bin/perl
#
# Mahesh Asolkar (c) 2006
# Reference : http://en.wikipedia.org/wiki/Morse_code
#
use strict;
use warnings;
use Getopt::Long;