Skip to content

Instantly share code, notes, and snippets.

View rluvaton's full-sized avatar
:octocat:
Programming

Raz Luvaton rluvaton

:octocat:
Programming
View GitHub Profile
@Eomm
Eomm / fastify-oss.md
Last active June 4, 2024 10:38
Start contributing to OSS

Start contributing to OSS

Do you want to start contributing to Open Souce Software and the Fastify project?

It would be best if you started asking yourself where to start:

  • Do you want to write code?
  • Do you want to understand how things work?
  • Do you like DevOps stuff?
  • Do you want to work on Github action automation?
  • Do you want to make an impact on the community?
@zaripych
zaripych / typeFootprint.ts
Last active February 1, 2025 18:33
ts-morph type footprint
import {
Project,
Type,
Symbol,
SymbolFlags,
Signature,
Node,
TypeFormatFlags,
} from 'ts-morph';
@rluvaton
rluvaton / reference-types-from-another-file-library.js
Last active April 29, 2020 21:24
Reference types from another file / library #jsdoc #types #js
// Example of how to reference another file / library type
import puppeteer from 'puppeteer';
/** @typedef {import(@types/puppeteer).Browser} Browser */
/**
* @type Browser
*/
let browser;
@thomasloven
thomasloven / my-custom-card.js
Last active April 3, 2025 10:32
Simplest custom card
// Simplest possible custom card
// Does nothing. Doesn't look like anything
class MyCustomCard extends HTMLElement {
setConfig(config) {
// The config object contains the configuration specified by the user in ui-lovelace.yaml
// for your card.
// It will minimally contain:
// config.type = "custom:my-custom-card"
@talaviram
talaviram / add_debug_entitlement.sh
Last active March 30, 2025 11:28
Simple Utility Script for allowing debug of hardened macOS apps.
#! /bin/bash
# Simple Utility Script for allowing debug of hardened macOS apps.
# This is useful mostly for plug-in developer that would like keep developing without turning SIP off.
# Credit for idea goes to (McMartin): https://forum.juce.com/t/apple-gatekeeper-notarised-distributables/29952/57?u=ttg
# Update 2022-03-10: Based on Fabian's feedback, add capability to inject DYLD for sanitizers.
#
# Please note:
# - Modern Logic (on M1s) uses `AUHostingService` which resides within the system thus not patchable and REQUIRES to turn-off SIP.
# - Some hosts uses separate plug-in scanning or sandboxing.
# if that's the case, it's required to patch those (if needed) and attach debugger to them instead.
#!/bin/bash
function usage()
{
echo "Export Nexus Repositories."
echo ""
echo "./nexus-export"
echo -e "\t--help"
echo -e "\t--localNexusUrl"
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active March 26, 2025 17:03
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@zorrodg
zorrodg / LICENSE
Last active November 30, 2023 19:37
CLI Integration Test Helper
MIT License
Copyright © 2019 Andrés Zorro
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
{
"description": "the description for this gist",
"files": {
"file1.84D9D31B-8AD2-492F-A44D-6407128DAD79.txt": {
"content": "updated file contents"
},
"file2.84D9D31B-8AD2-492F-A44D-6407128DAD79.txt": {
"content": "updated file contents"
}
}
anonymous
anonymous / RunTimeComplaxity.md
Created January 7, 2018 08:17
for(i = 0; i < N; i++)
{
    C[i] = a[i] + b[i];
}

$$t(N) = 1 + N + N + 2N + 8N$$ $$t(N) = 12N + 1$$