Skip to content

Instantly share code, notes, and snippets.

View shakthimaan's full-sized avatar

Shakthi Kannan shakthimaan

View GitHub Profile
╷
│ Error: creating EKS Node Group (demo:private-nodes): operation error EKS: CreateNodegroup, https response error StatusCode: 404, RequestID: 9e3847a1-b030-49d5-af26-20a58da71cec, api error ResourceNotFoundException: No cluster found for name: demo.
│
│ with aws_eks_node_group.private-nodes,
│ on nodes.tf line 37, in resource "aws_eks_node_group" "private-nodes":
│ 37: resource "aws_eks_node_group" "private-nodes" {
│
╵
╷
│ Error: creating Security Group (demo-cluster-20250527184714631500000006): VPCIdNotSpecified: No default VPC for this user
@shakthimaan
shakthimaan / test.jsx
Created May 26, 2025 14:09
babeljs repl testing
Input:
<span>Oh no!</span>
Expected output:
React.createElement("span", null, "Oh no!");
Observed output:
import { jsx as _jsx } from "react/jsx-runtime";
/*#__PURE__*/ _jsx("span", {
children: "Oh no!"
@shakthimaan
shakthimaan / redblack.ml
Last active February 16, 2020 17:56
Revision 2
open Unix
type colour = R | B
type 'a t =
Lf
| Br of colour * 'a t * 'a * 'a t
let rec list_of_set s =
match s with
@shakthimaan
shakthimaan / foo.js
Created August 5, 2016 11:45
istanbul mocha coverage still shows code as not executed
process.on('exit', () => { // Runs, but coverage report marks these lines as not executed!
log.info('Start !!!');
c.close();
b.close();
a.stop();
log.info('Exit !!!');
});
@shakthimaan
shakthimaan / test.js
Last active May 27, 2016 06:06
socket.write with delay
const net = require("net");
const MACHINE_PORT = 8081;
function* machineDataGenerator() {
yield 'ONE\r\n';
yield 'TWO\r\n';
yield 'THREE\r\n';
}
@shakthimaan
shakthimaan / input-poem.tex
Last active December 12, 2022 17:50
LaTeX poem style
\documentclass{article}
\usepackage{verse}
\begin{document}
\begin{verse}
\poemlines{3}
\setverselinenums{1}{3}
@shakthimaan
shakthimaan / test.tex
Created February 19, 2016 12:07
ifthenelse example
\documentclass{article}
\usepackage{ifthen}
\newcommand{\test}[2]
{
\ifthenelse{\equal{#1}{}}
{#2} % No optional argument Expected: Second
{#2 #1} % With optional argument Expected: Second Argument
}
@shakthimaan
shakthimaan / test.org
Created February 14, 2016 09:34
Suppress $ in org-latex-export-as-latex output

First

The first line.

Second

The second ${\englishfont{Sri, Shri ,Shre}}$ line.

Third

@shakthimaan
shakthimaan / config.sty
Created February 6, 2016 17:39
Uneven twoside margins
\usepackage{geometry}
\geometry{layoutwidth=7.5in,layoutheight=9.5in}
\geometry{layouthoffset=0pt,layoutvoffset=0pt}
\geometry{top=1.5cm,bottom=1.5cm}
\geometry{twoside,hmarginratio=3:2}
@shakthimaan
shakthimaan / test.el
Created February 6, 2016 04:17
replace-regexp on file
(defun org-to-latex-toc ()
"Map org sections to LaTeX ToC."
(interactive)
(let ((case-fold-search nil))
(goto-char 1)
(replace-regexp "^\\\\section" "\\\\chapter")
(goto-char 1)
(replace-regexp "^\\\\subsection" "\\\\section")
(goto-char 1)
(replace-regexp "^\\\\subsubsection" "\\\\subsection")