Skip to content

Instantly share code, notes, and snippets.

View lihas's full-sized avatar
💭
OpenGL

sahil lihas

💭
OpenGL
View GitHub Profile
@lihas
lihas / Courses
Last active February 2, 2016 12:45
Good courses - Courses to do when I am free
1. AI course at MIT opencourseware
==================================
Good breadth, Not just core AI, has little bit of genetic algorithms, some ML concepts.
Link : http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-034-artificial-intelligence-fall-2010/lecture-videos/
2. Several courses
====================
http://aduni.org/courses/
@lihas
lihas / gist:e4629e255330a20dc003
Created April 19, 2015 22:48
Quotes worth remembering
“Set peace of mind as your highest goal, and organize your life around it.” ~Brian Tracy
"Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time" ~Thomas A. Edison
@lihas
lihas / git-cache-meta.sh
Created August 20, 2016 12:04 — forked from andris9/git-cache-meta.sh
git-cache-meta
#!/bin/sh -e
#git-cache-meta -- simple file meta data caching and applying.
#Simpler than etckeeper, metastore, setgitperms, etc.
#from http://www.kerneltrap.org/mailarchive/git/2009/1/9/4654694
#modified by n1k
# - save all files metadata not only from other users
# - save numeric uid and gid
# 2012-03-05 - added filetime, andris9
@lihas
lihas / sparsify.c
Created August 21, 2016 18:47 — forked from kempniu/sparsify.c
sparsify - copy non-zero blocks of data from source to destination
/*
***********************************************************************
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* Version 2, December 2004
*
* Copyright (C) 2004 Sam Hocevar <[email protected]>
*
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
@lihas
lihas / 0_reuse_code.js
Created September 24, 2016 19:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@lihas
lihas / RegisterDLL.ps1
Created July 28, 2017 19:23 — forked from nylyst/RegisterDLL.ps1
Powershell to register a dll without regsvr32.exe
$registerDLL = @"
namespace RegisterDLL {
using System;
using System.Runtime.InteropServices;
public static class Kernel32 {
[DllImport("kernel32", SetLastError=true, CharSet = CharSet.Ansi)]
public static extern IntPtr LoadLibrary([MarshalAs(UnmanagedType.LPStr)]string lpFileName);
[DllImport("kernel32", CharSet=CharSet.Ansi, ExactSpelling=true, SetLastError=true)]
@lihas
lihas / DUSBVC-intel
Created June 5, 2018 15:40
from DUSBVC.pdf file from intel
// DisplayUSB.cpp: Defines the entry point for the console application.
//
// Copyright (C) 2001, Intel Corporation
// All rights reserved.
// Permission is hereby granted to merge this program code with other program
// material to create a derivative work. This derivative work may be distributed
// in compiled object form only. Any other publication of this program, in any form,
// without the explicit permission of the copyright holder is prohibited.
//
// Send questions and comments to [email protected]
@lihas
lihas / usb.cpp
Created June 6, 2018 09:18 — forked from gabonator/usb.cpp
USB enumerating tools
#include "usb.h"
#ifndef DISABLE_USB
#pragma comment(lib, "setupapi.lib")
#include "SetupAPI.h"
#include "cfgmgr32.h"
#pragma pack(4)
@lihas
lihas / DxDiagProviderEnum
Last active April 23, 2024 13:27
DxDiagProvider enum children and properties
// DxDiagProviderCom.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <initguid.h>
#include <iostream>
#include <objbase.h>
#include <dxdiag.h>
#include <string>
using namespace std;
@lihas
lihas / SymbolSearchPath.txt
Last active April 22, 2021 08:20
SymbolSearchPath.txt
Loading Symbols:
There are two different ways in which you can load symbols in GPUView.
Either, through modifying the first line of this file or through setting
the environment variable "_NT_SYMBOL_PATH".
By modifying this file:
To use this file, simply change the first line of this file to point to
your symbol directory. For instance, if you project has to different