Skip to content

Instantly share code, notes, and snippets.

View ntavish's full-sized avatar

Tavish Naruka ntavish

View GitHub Profile
@ntavish
ntavish / build-m8c-rg35xx-splush.sh
Created September 8, 2024 15:25 — forked from mnml/build-m8c-rg35xx-splush.sh
Building m8c for RG35XX Plus/H/SP on KNULLI (Scroll down for zip)
#!/bin/bash
#
# build kernel modules
#
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.9.170.tar.gz
tar xzf linux-4.9.170.tar.gz
cd linux-4.9.170
wget -O .config https://raw.githubusercontent.com/knulli-cfw/distribution/knulli-main/board/batocera/allwinner/h700/rg35xx-plus/linux-sunxi64-legacy.config
@ntavish
ntavish / desktop2.md
Last active May 24, 2018 07:29 — forked from electronut/desktop.md
Electronut Labs economical Desktop PC configuration
@ntavish
ntavish / tracer.c
Last active August 29, 2015 14:19 — forked from mniip/tracer.c
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <signal.h>
#include <limits.h>
#include <errno.h>
#include <pthread.h>
OSDConf : suggested topics / tracks to choose from:-
Suggest to have voting on the below tracks (add/delete/modify mentioned ones)and only top 4 / 5 concrete to select for the event ..??
Mobile Track
- Android
- HTML5 for Mobile world
- etc.
Web / Browser Track
- HTML5
#
# this gist can be used to list all targets, or - more correctly - rules,
# that are defined in a Makefile (and possibly other included Makefiles)
# and is inspired by Jack Kelly's reply to a StackOverflow question:
#
# http://stackoverflow.com/questions/3063507/list-goals-targets-in-gnu-make/3632592#3632592
#
# I also found this script - http://www.shelldorado.com/scripts/cmds/targets - which does
# something similar using awk, but it extracts targets from the "static" rules from a single
# Makefile, meaning it ignores any included Makefiles, as well as targets from "dynamic" rules

Google Speech To Text API

Base URL: https://www.google.com/speech-api/v1/recognize
It accepts POST requests with voice file encoded in FLAC format, and query parameters for control.

Query Parameters

client
The client's name you're connecting from. For spoofing purposes, let's use chromium

lang
Speech language, for example, ar-QA for Qatari Arabic, or en-US for U.S. English

@ntavish
ntavish / quicklog.h
Created November 27, 2011 11:15 — forked from anonymous/quicklog.h
Quicklog: For when printf isn't enough but a full logging library is too much
//quicklog.h
//include it, and just loginfo("hello, %s", "world");
//MIT licence
#include <stdio.h>
#include <time.h>
#ifndef QUICKLOG_H
#define QUICKLOG_H