Skip to content

Instantly share code, notes, and snippets.

View guivazcabral's full-sized avatar
🎯
Focusing

Gui Cabral guivazcabral

🎯
Focusing
View GitHub Profile
@zorji
zorji / auto-ts-ignore.ts
Last active June 16, 2025 12:32
A script to auto add // @ts-ignore to lines with TypeScript compilation error
/**
* A script to auto add // @ts-ignore to lines with TypeScript compilation error
* This could be useful when you are upgrading your tsc version, or introduced new changes in tsconfig or just converting JS codebase to TS.
* Example usage:
* $ npx tsc > compilation-errors.log
* $ npx ts-node auto-ts-ignore.ts compilation-errors.log
*/
import { readFile, writeFile } from 'fs/promises'
function remove_accents($string) {
if ( !preg_match('/[\x80-\xff]/', $string) )
return $string;
$chars = array(
// Decompositions for Latin-1 Supplement
chr(195).chr(128) => 'A', chr(195).chr(129) => 'A',
chr(195).chr(130) => 'A', chr(195).chr(131) => 'A',
chr(195).chr(132) => 'A', chr(195).chr(133) => 'A',
chr(195).chr(135) => 'C', chr(195).chr(136) => 'E',
@tsabat
tsabat / zsh.md
Last active July 22, 2025 02:26
Getting oh-my-zsh to work in Ubuntu