Skip to content

Instantly share code, notes, and snippets.

View avin's full-sized avatar
🐒
Code Monkey

Avin Lambrero avin

🐒
Code Monkey
View GitHub Profile
@avin
avin / .clang-format
Last active October 23, 2021 18:41
C++ clang-tidy + clang-format
BasedOnStyle: LLVM
Standard: c++17
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
DerivePointerAlignment: true
PointerAlignment: Left
IndentWidth: 4
ContinuationIndentWidth: 8
@avin
avin / instructions.md
Last active October 9, 2021 11:51
Improve font render in VSCode

Add

* {
  text-shadow: transparent 0px 0px 0px,
    rgba(0, 0, 0, 0.5) 0px 0px 0px !important;
}

to

@avin
avin / force-verdana.reg
Last active October 4, 2021 19:50
Make Verdana font for Windows UI (for SegoeUI place)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]
"CaptionFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\
00,00,00,cc,00,00,00,00,56,00,65,00,72,00,64,00,61,00,6e,00,61,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"MenuFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,\
00,00,cc,00,00,00,00,56,00,65,00,72,00,64,00,61,00,6e,00,61,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
@avin
avin / windows-web-dev.md
Last active December 27, 2025 15:56
Windows web development apps
@avin
avin / postinstall.js
Created June 27, 2021 10:57
npm install in subfolders recursively
const fs = require('fs');
const os = require('os');
const childProcess = require('child_process');
const path = require('path');
const walk = function (dir, done) {
let results = [];
fs.readdir(dir, function (err, list) {
if (err) return done(err);
let i = 0;
(function next() {
@avin
avin / todo.txt
Created June 20, 2021 09:50
Install FreeBSD packages in pfSense
1. Make sure "enabled" key is set to "yes" in /etc/pkg/FreeBSD.conf
2. Change "enabled: no" to "enabled: yes" in /usr/local/etc/pkg/repos/FreeBSD.conf
3. Change "enabled: no" to "enabled: yes" in /usr/local/etc/pkg/repos/pfSense.conf for FreeBSD repo
4. Now you're able to install packages from FreeBSD official repo
@avin
avin / list.txt
Created May 30, 2021 07:42
Common fonts for Windows & Mac
Arial, Helvetica, Sans-Serif
Arial Black, Gadget, Sans-Serif
Comic Sans MS, Textile, Cursive
Courier New, Courier, Monospace
Georgia, Times New Roman, Times, Serif
Impact, Charcoal, Sans-Serif
Lucida Console, Monaco, Monospace
Lucida Sans Unicode, Lucida Grande, Sans-Serif
Palatino Linotype, Book Antiqua, Palatino, Serif
Tahoma, Geneva, Sans-Serif
@avin
avin / craco.config.js
Created May 2, 2021 10:59
Replace React with Preact. Reduce 100kb bundle size
webpack: {
alias: {
"react": "preact/compat",
"react-dom/test-utils": "preact/test-utils",
"react-dom": "preact/compat",
},
}
@avin
avin / 1.ts
Created May 1, 2021 14:40
Nest Controller template
// ${LowerMultiName}/${LowerMultiName}.controller
import {
Body,
Post,
Controller,
Get,
Param,
Patch,
Delete,
@avin
avin / _.fixture.tsx
Last active January 24, 2023 11:31
React Component Template
// ${NAME}/${NAME}.fixture.tsx
import React from 'react';
import ${NAME} from './${NAME}';
export default (): JSX.Element => {
return (
<div className="content">
<${NAME} />
</div>