Skip to content

Instantly share code, notes, and snippets.

View mpcen's full-sized avatar
🍑
❤️

Manny Martinez mpcen

🍑
❤️
View GitHub Profile
{
"general": {
"totalBlobCount": 22461,
"totalSizeInTb": 37.78744339429285,
"maxFileSizeInGb": 13.037804987000001,
"maxFileSizeProduct": "Microsoft Electron",
"blobsLargerThan5Gb": 1909,
"productsWithBlobsOver5Gb": {
"Accessibility Insights for Android": 4,
"Chromium Embedded Framework": 1,
// collection: definitions-trimmed
{
"_id" : "npm/npmjs/@fluentui/webpack-utilities/8.1.11",
"described" : {
"hashes" : {
"sha1" : "41e61bd838b733e0ec1f6b0b32ae56d6f8b45ecf",
"sha256" : "e99a9de3cafc45643127880957306baf57495e3d621f7f4f31cd2d99c9219d73"
},
"files" : 15,
"releaseDate" : "2023-02-03",
@mpcen
mpcen / gist:a20bede98a691800c8f0adb70d837f42
Last active March 6, 2023 14:11
definitions-paged example doc
// collection: definitions-paged
{
"_id" : "sourcearchive/npmjs/@fluentui/react-text/9.0.0-alpha.13",
"described" : {
"hashes" : {
"sha1" : "662d8495c3d302c7c2c462b2287ac12f696e7081",
"sha256" : "0e1efd530b42c2a1bee1063cef18a60e39c77de9b5f3838720a7e349333c3541"
},
"files" : 361,
"releaseDate" : "2021-09-10",
@mpcen
mpcen / gist:688a3db9f0bf2947e7f5c408e591bb00
Created September 4, 2021 01:33
Forward a local port of an application running in WSL 2
Open an admin powershell:
`netsh interface portproxy add v4tov4 listenport=PORT listenaddress=0.0.0.0 connectport=PORT connectaddress=IP_WSL2_MACHINE`
More info: https://www.williamjbowman.com/blog/2020/04/25/running-a-public-server-from-wsl-2/
and: https://www.youtube.com/watch?v=yCK3easuYm4
@mpcen
mpcen / gist:23007849e6ec71b6ba6aae97059f726a
Created December 24, 2019 04:35
package.json prettier config
"prettier": {
"tabWidth": 4,
"trailingComma": "none",
"singleQuote": true,
"printWidth": 110
}
@mpcen
mpcen / data-fetching.js
Last active July 21, 2018 21:09
Promise.all with Async/Await vs only Async/Await
function getMetric1Data() {
// Some API call that takes 500ms to fetch data
return new Promise(resolve => {
setTimeout(() => {
resolve("Got metric 1 data");
}, 500);
});
}
function getMetric2Data() {