Skip to content

Instantly share code, notes, and snippets.

View zeekhuge's full-sized avatar

Zubeen Tolani zeekhuge

View GitHub Profile
/sys/bus/iio/devices/iio:device0
|-- dev
|-- in_voltage0_raw
|-- name
|-- power
| |-- async
| |-- autosuspend_delay_ms
| |-- control
| |-- runtime_active_kids
| |-- runtime_active_time
;*
;* Copyright (C) 2016 Zubeen Tolani <ZeekHuge - [email protected]>
;*
;* The code is a part of BeagleScope Project.
;*
;* This program is free software; you can redistribute it and/or
;* modify it under the terms of the GNU General Public License version
;* 2 as published by the Free Software Foundation.
.cdecls "main_pru1.c"
@zeekhuge
zeekhuge / testing_dmesg.txt
Created August 1, 2016 11:48
The output of the dmesg window while testing various freqeuencies :
[ +0.009406] remoteproc1: 4a334000.pru0 is available
[ +0.000025] remoteproc1: Note: remoteproc is still under development and considered experimental.
[ +0.000009] remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[ +0.005223] remoteproc1: powering up 4a334000.pru0
[ +0.000035] remoteproc1: Booting fw image am335x-pru0-fw, size 75804
[ +0.000204] ti-pruss 4a300000.pruss: configured system_events = 0x00000000000b0000 intr_channels = 0x00000007 host_intr = 0x00000007
[ +0.006423] remoteproc1: remote processor 4a334000.pru0 is now up
[ +0.000252] virtio_rpmsg_bus virtio0: rpmsg host is online
[ +0.000049] virtio_rpmsg_bus virtio0: creating channel beaglescope addr 0x1e
[ +0.000511] /root/bs/driver/beaglescope_driver.c: probe
@zeekhuge
zeekhuge / 2nd_time_dmesg_window_log.txt
Created August 1, 2016 12:08
Note line number 79 with that RT throttling thing, thats why this dmesg output is as a gist, its yet another dmesg otherwise
[ +0.033981] /root/bs/driver/beaglescope_driver.c: write_raw
[ +0.000027] val - 100000 val2 - 0
[ +0.003480] /root/bs/driver/beaglescope_driver.c: set_pru_sampling_frequency
[ +0.000011] 999, 497, 499
[ +0.002627] Requested sampling freqeuency 100000
[ +0.004661] Available sampling freqeuency 100000
[Aug 1 12:03] /root/bs/driver/beaglescope_driver.c: preenable
[ +0.000055] /root/bs/driver/beaglescope_driver.c: set_pru_read_mode
[ +0.000026] misc_config_data = 2147483649
[ +0.000022] /root/bs/driver/beaglescope_driver.c: beaglescope_read_from_pru
@zeekhuge
zeekhuge / yet_another_dmesg.txt
Created August 1, 2016 12:17
to show mentors line number 53
[ +0.003604] /root/bs/driver/beaglescope_driver.c: set_pru_sampling_frequency
[ +0.000030] 115, 57, 57
[ +0.002541] Requested sampling freqeuency 850000
[ +0.004713] Available sampling freqeuency 854700
[ +3.400993] /root/bs/driver/beaglescope_driver.c: preenable
[ +0.000054] /root/bs/driver/beaglescope_driver.c: set_pru_read_mode
[ +0.000025] misc_config_data = 2147483649
[ +0.000022] /root/bs/driver/beaglescope_driver.c: beaglescope_read_from_pru
[ +0.000021] /root/bs/driver/beaglescope_driver.c: here 1V
[ +0.000045] /root/bs/driver/beaglescope_driver.c: here 2
@zeekhuge
zeekhuge / .vimrc
Last active January 30, 2019 08:35
" to start vim-plug plugin manager
call plug#begin('~/.config/nvim/bundle/')
Plug '~/.vim/bundle/ale'
Plug '~/.vim/bundle/asyncrun.vim'
" we probably do not want this, we already have YCM
" Plug '~/.vim/bundle/AutoComplPop'
Plug '~/.vim/bundle/ctrlp.vim'
@zeekhuge
zeekhuge / wsNamer.sh
Last active June 5, 2017 20:11
Bash script to easily name the viewports/workspaces on Compiz based systems
#!/bin/bash
#
# Copyrigh 2017 Zubeen Tolani aka ZeekHuge <[email protected]>
#
# Use 'wsNamer.sh -s' to set the name.
# For ease, one can map it to a keyboard shortcut.
#
# Note : make necessary modifications before use.
#
# Works for Compiz window manager with Unity viewports/workspaces
@zeekhuge
zeekhuge / eyeProtector.sh
Created November 30, 2017 17:17
A simple bash script that turns off your screen for `SECONDS_TO_CLOSE_EYE` after `MINUTES_TO_WORK` long work to force you relax your eyes.
#!/bin/bash
#
# Set this script to start on login using `StartUp Application`
#
########-- CHANGE THESE FOR DIFFERENT BEHAVIOUR --#############
MINUTES_TO_WORK=45
SECONDS_TO_CLOSE_EYE=60
###############################################################
#!/usr/bin/env bash
#
# Instruction :
# - Save this file locally
# - Open terminal
# - execute command "source </path/to/this/file>
# - To get the smallest possible promt, execute "zbar 0"
# - Otherwise, execute command "zbar"
#
#! /bin/bash
## Who and whats the catch ?
#
# Copyright 2018 ZeekHuge <[email protected]>
#
# Disclaimer : This program is not 100% accurate, and while it may not suggest
# an epub file being malicious, the file can still contain any malicious code.
# Use this program completely at your own risk, and the author is no where
# obliged to provide assistance, guarantee, warranty or any kind of compensation