Skip to content

Instantly share code, notes, and snippets.

@Klerith
Klerith / configurar-node-ts.md
Last active April 18, 2024 18:34
Node con TypeScript - TS-Node-dev simplificado

Node con TypeScript - TS-Node-dev (preferido)

  1. Instalar TypeScript y demás dependencias
npm i -D typescript @types/node ts-node-dev rimraf
  1. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
npx tsc --init --outDir dist/ --rootDir src
@skrilladeville
skrilladeville / file.rb
Created May 3, 2013 07:04
Free Web Hosting with PHP, MySQL and cPanel, No Ads
http://www.000webhost.com/
@Zodiase
Zodiase / isThisTestFileRunExplicitly.js
Created April 18, 2024 18:29
Skip test file unless explicitly targeted. This allows an "unfriendly" test file to live along other test files and not interfere "run all tests".
/**
* This test file should only be run explicitly. When that's the case, the command should look something like:
* npm run test ./some/test/folder/test-something.js
* which means the process arguments should be something like:
* [ "some/path/node", "some/path/mocha", "./some/test/folder/test-something.js" ]
* but we can not assume the third argument would always be a file path.
* So to evaluate this flag, the function should:
* 1. Check if argv[2] is likely a file path pointing at this file.
* 2. resolve argv[2] and compare with this file's absolute path.
*/
@abernier
abernier / .gitignore
Last active April 18, 2024 18:29
domvertices.js
node_modules/
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "ec2:*",
"Effect": "Allow",
"Resource": "*"
},
{
"Effect": "Allow",
@Hardikanand1st
Hardikanand1st / rarreg.key
Last active April 18, 2024 18:25
WinRar free key rarreg.key
RAR registration data
Hardik
www.Hardik.live
UID=448c4a899c6cdc1039c5
641221225039c585fc5ef8da12ccf689780883109587752a828ff0
59ae0579fe68942c97d160f361d16f96c8fe03f1f89c66abc25a37
7777a27ec82f103b3d8e05dcefeaa45c71675ca822242858a1c897
c57d0b0a3fe7ac36c517b1d2be385dcc726039e5f536439a806c35
1e180e47e6bf51febac6eaae111343d85015dbd59ba45c71675ca8
2224285927550547c74c826eade52bbdb578741acc1565af60e326
@charlesaloaye
charlesaloaye / gist:d5234275c8ed0bb4510ffaa9670d80aa
Last active April 18, 2024 18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8iOiIyMDI0LTEwL
"""
Results from 5 seeds:
95.28, 95.35, 95.17, 95.26, 95.28
"""
#############################################
# Setup/Hyperparameters #
#############################################
import os
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-----------------------------------------------------------------------
Written by:William Smith
Partner Program Manager
Jamf
bill@talkingmoose.net
https://gist.github.com/talkingmoose/15f055885b51cc8cb0bc7aad021acead
@Klerith
Klerith / git-alias.md
Last active April 18, 2024 18:21
Useful Git Alias

Log

git config --global alias.lg "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"

Status

git config --global alias.s status --short

Alternativa útil de status

git config --global alias.s status -sb