Skip to content

Instantly share code, notes, and snippets.

View snowyyd's full-sized avatar
🏠
Working from home

Agustín snowyyd

🏠
Working from home
  • Argentina
  • 18:37 (UTC -03:00)
View GitHub Profile
@snowyyd
snowyyd / merge.ts
Last active February 16, 2025 17:57
Merge C# files into a single one
/**
* Usage: node --experimental-strip-types merge.ts
*/
"use strict";
import fs from 'node:fs/promises';
import path from 'node:path';
const usingRe = /^using ([A-Za-z0-9.= ]+);?/;
@snowyyd
snowyyd / .bashrc
Last active December 14, 2022 19:37
Node.js container alias
# without global modules
alias dn='docker run --rm -it -v $PWD:/app -w /app node'
# with global modules
docker run --rm -it -v $PWD:/app -v $HOME/.npm-global:/.npm-global -w /app -e NPM_CONFIG_PREFIX=/.npm-global -e PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/.npm-global/bin" node
@snowyyd
snowyyd / w0k0u5m0_caveGame.sql
Created November 28, 2022 23:09
Recreated database of Moirai
-- drop table if currently exists
DROP TABLE IF EXISTS `completion`;
-- create table
CREATE TABLE `completion` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`name` VARCHAR(24) NOT NULL,
`email` VARCHAR(120) NOT NULL,
`matchedWith` INT(11) NOT NULL,
`didKill` TINYINT(1) NOT NULL,
@snowyyd
snowyyd / stremio-patch.js
Last active October 3, 2023 18:07
Stremio Web client patches
/**
*
* @name Stremio JavaScript Patcher
* @author n0bodysec
* @description A simple JS that is executed on document load. You can apply custom client patches with it.
* @example https://gist.github.com/n0bodysec/2896438d8578f13c4a9e30373f7200c1
* This script can be loaded using nginx sub_filter
* sub_filter '</body>' '<script src="https://your.stremio.url/patches.js"></script></body>';
* sub_filter_once on;
*
@snowyyd
snowyyd / ClearAdobeCredentials.ps1
Last active September 20, 2024 02:27
Clear all Adobe App credentials from Windows Credential Manager
# Inspired on https://community.adobe.com/t5/download-install-discussions/getting-a-long-list-of-quot-adobe-app-info-quot-generic-credentials/td-p/10189222
# Usage: add this script to your PowerShell profile and run "ClearAdobeCredentials". "Adobe User" credentials will not be removed.
<# Commands explanation:
cmdkey /list > This will list all your saved credentials
Select-String -Pattern "Adobe App" > Show only credentials that match "Adobe App"
-replace "^ *[A-Za-z]+:? (.*)", "`"`$1`"") > Regex that removes " Target:" and add quotes around the credential
% { cmdkey /delete:$_ } > This will run "cmdkey /delete" for each matching credential
#>