This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Windows ### | |
# src: https://www.toptal.com/developers/gitignore/api/windows | |
# Windows thumbnail cache files | |
**/*Thumbs.db | |
**/*Thumbs.db:encryptable | |
**/*ehthumbs.db | |
**/*ehthumbs_vista.db | |
# Dump file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios'); | |
const fs = require('fs'); | |
const GITHUB_TOKEN = 'AUTH-KEY'; | |
const MAX_REQUESTS_PER_HOUR = 5000; | |
const REQUESTS_PER_MINUTE = 60; | |
const RATE_LIMIT_DELAY = 60 * 1000 / REQUESTS_PER_MINUTE; | |
async function fetchStarredRepos(username) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// to run the file: | |
// npm install -g ts-node | |
// ts-node filename.ts | |
import axios from 'axios'; | |
import fs from 'fs'; | |
interface Repo { | |
id: number; | |
name: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal EnableDelayedExpansion | |
for /r %%d in (node_modules) do ( | |
rd /s /q "%%d" | |
echo deleted "%%d" | |
) | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find . -name "node_modules" | |
-type d -prune -exec rm -rf '{}' ; | |
read -p "Press Enter to exit..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM setting temp path | |
set tmp_dir=%localappdata%\Temp | |
REM changing to temp dir | |
cd /d %tmp_dir% | |
REM deleting temporary files and directories | |
del /q /f /s * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# changing to temp dir | |
cd /tmp | |
# deleting temporary files and directories | |
rm -rf * | |
read -p "Press Enter to exit..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Ai } from './vendor/@cloudflare/ai.js'; | |
export default { | |
async fetch(request, env) { | |
const ai = new Ai(env.AI); | |
const url = new URL(request.url); | |
const textParam = url.searchParams.get('text'); | |
const inputs = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.even-columns { | |
display: grid; | |
grid-auto-flow: column; | |
grid-auto-columns: 1fr; | |
} |
OlderNewer