Create alias manually in ~/.gitconfig
file (recommened):
[alias]
gone = "!f() { git fetch --all --prune; git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D; }; f"
Create alias (problematic):
Create alias manually in ~/.gitconfig
file (recommened):
[alias]
gone = "!f() { git fetch --all --prune; git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D; }; f"
Create alias (problematic):
npx
and zx
in repository foldernpx zx https://gist.githubusercontent.com/iamandrewluca/5cc85b56a595056f0099d04ed6dd8a79/raw/run.mjs \
--repository="https://github.com/facebook/react.git" \
--homepage="https://reactjs.org" \
--ignore="fixtures" \
--space="2"
////////////////////////////////////////////////////////////// | |
export const buttonSizes_1 = ['small', 'medium'] as const | |
export type ButtonSize_1 = typeof buttonSizes_1[number] | |
function test_1(_: ButtonSize_1) { | |
console.assert(buttonSizes_1.includes(_)) | |
} | |
test_1('medium') // we can do this | |
test_1(ButtonSize_1.small) // we can't do this |
const routerPagesNames = { | |
forgotpassword: 'forgotpassword', | |
login: 'login', | |
resetPassword: 'reset-password', | |
index: { | |
index: 'index', | |
communication: 'index-communication', | |
content: 'index-content', | |
statistics: 'index-statistics', | |
users: 'index-users', |
### CODE FOR MOLDOVA Individual Contributor License Agreement | |
Thank you for your interest in contributing to open source software projects (“Projects”) made available by CODE FOR MOLDOVA SE or its affiliates (“CODE FOR MOLDOVA”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to CODE FOR MOLDOVA in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact contact@code4.md. | |
Hereby, by agreeing to the current provisions, you agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your rights, title and interest in and to your Contributions. | |
**Copyright Licens |
(function bookmarksExportToCsv() { | |
/** | |
* 1. Export bookmarks from browser (supported any Chromium based browsers and Safari) (chrome://bookmarks) | |
* 2. Open exported html file again in the browser | |
* 3. Copy paste this entire file in console, and execute it (hit enter) | |
* 4. You will be prompted to save a CSV file. Save it. | |
* 5. Open Notion. Click Import -> CSV | |
* 6. Select saved CSV file. Wait for import | |
* 7. You have a new database with all your bookmarks | |
*/ |
const sleep = time => new Promise(resolve => setTimeout(resolve, time)) | |
let items = [] | |
const interval = setInterval(async function() { | |
if (items.length < 10) { | |
items = Array.from(document.querySelectorAll('#contents ytd-playlist-video-renderer:not([is-dismissed])')) | |
} | |
if (items.length === 0) { | |
clearInterval(interval) | |
return | |
} |
const postcss = require("postcss"); | |
const tailwind = require("tailwindcss"); | |
const express = require("express"); | |
const app = express(); | |
app.get("/:configBase64/tailwind.css", async (req, res) => { | |
const buffer = Buffer.from(req.params.configBase64, "base64"); | |
const config = JSON.parse(buffer.toString("utf-8")); | |
const baseCSS = `@tailwind base;@tailwind components;@tailwind utilities;`; |
javascript: void ((function() { | |
/* More bookmarklets at https://gist.github.com/iamandrewluca/61feacf07bc4f2f50e70f986c2e9b2d2 */ | |
document.querySelectorAll('[id]').forEach(el => { | |
const specificIds = document.querySelectorAll(`[id="${el.id}"]`); | |
if (specificIds.length > 1 && specificIds[0] === el) { | |
console.log('Duplicate id ' + el.id); | |
specificIds.forEach(element => { | |
element.style.outline = '5px solid red'; | |
}); | |
alert('duplicate found'); |
javascript: void ((function() { | |
/* More bookmarklets at https://gist.github.com/iamandrewluca/61feacf07bc4f2f50e70f986c2e9b2d2 */ | |
document.body.contentEditable = 'true'; | |
document.designMode='on'; | |
})()); |