Skip to content

Instantly share code, notes, and snippets.

View Thilak-KN's full-sized avatar
👀

Thilak Thilak-KN

👀
  • India
View GitHub Profile
@Thilak-KN
Thilak-KN / userChrome.css
Created October 17, 2023 19:16 — forked from silvercircle/userChrome.css
My Thunderbird userChrome for square tabs + some minor UI tweaks
/*
* Thunderbird userChrome.css
*
* WARNING: This style was designed for TB version 60 and will likely not work
* with more recent versions (see comments)
*
* it's meant to be used with the default 3 panel split layout
*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
@Thilak-KN
Thilak-KN / colorizeTomcat
Created June 12, 2023 18:56 — forked from tfga/colorizeTomcat
Colorize logs
#!/usr/bin/env bash
#
# Usage:
#
# catalina.sh run 2>&1 | colorizeTomcat
# tail -200 catalina.out | colorizeTomcat
#
# Previous versions:
#
@Thilak-KN
Thilak-KN / grep-color.sh
Created June 12, 2023 18:55 — forked from masonwan/grep-color.sh
Print out Tomcat log file "catalina.out" with color
tail -200 catalina.out | ack-grep --flush --passthru --color --color-match=red "^.*ERROR.*" | ack-grep --flush --passthru --color --color-match=green "^.*DEBUG.*"
@Thilak-KN
Thilak-KN / MouseGazeScript.cs
Created November 27, 2022 08:29
Attach this Script to a GameObject. One can add custom behavior instead of Destroying that GameObject.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GazeScript : MonoBehaviour
{
bool gazeState = false;
[SerializeField]
float maxTime = 4.0f; //Set the Maximum Timer
float timer = 0f;
#include<stdio.h>
#include<stdlib.h>
typedef struct llnode
{
int data;
struct llnode *link;
}node;
node *first; //global variable
insert_node(int x)
#include<stdio.h>
#include<stdlib.h>
typedef struct dllnode
{
int data;
struct dllnode *bwd;
struct dllnode *fwd;
}node;
node *first=NULL,*last=NULL;// Actually we shouldn't use Global Variable... as Anyone can access it... Leading to loss of Data Privacy
/*Circular Singly Linked List - Last Node in sll have link = NULL, the node may or maynot be linked properly, So we use Circular Linked list, Thats the Main Advantage of CSLL */
#include<stdio.h>
#include<stdlib.h>
typedef struct llnode
{
int data;
struct llnode *link;
}node;
node *first; //global variable
#include<stdio.h>
#include<stdlib.h>
typedef struct bstnode
{
int data;
struct bstnode* left;
struct bstnode* right;
}node;