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
{"name":"BerkeKaragoz","settings":"{\"settings\":\"{\\n \\\"workbench.iconTheme\\\": \\\"material-icon-theme\\\",\\n \\\"editor.formatOnSave\\\": true,\\n \\\"[typescriptreact]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n },\\n \\\"indentRainbow.colorOnWhiteSpaceOnly\\\": true,\\n \\\"[typescript]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n },\\n \\\"[scss]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n },\\n \\\"[html]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n },\\n \\\"[javascript]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n },\\n \\\"[json]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n },\\n \\\"[jsonc]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n },\\n \\\"githubPullRequests.pullBranch\\\": \\\"never\\\",\\n \\\"typescript.preferences.importMod |
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
for branch in $(git branch | sed 's/\*//'); do | |
if [[ $branch != */* && $branch != "master" && $branch != "main" ]]; then | |
git branch -m $branch done/$branch | |
fi | |
done |
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
// Replaces the symlinks with their targets | |
var fs = require("fs"); | |
fs.readdir(__dirname, (err, files) => { | |
if (err) console.log(err); | |
else { | |
console.log("\nCurrent directory filenames: ", files); | |
files.forEach((file) => { | |
fs.readlink(file, (err, linkString) => { | |
if (err) return; |
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
if (!req.headers.range) { | |
res.sendFile(fileAbsolutePath, { maxAge: '2 days' }, (err) => { | |
if (err) console.error(err); | |
}); | |
} else { | |
const { size, blksize } = statSync(fileAbsolutePath); | |
const chunkSizeTarget = 10 ** 7 / 2; | |
const chunkSize = Math.floor(chunkSizeTarget / blksize) * blksize; |
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
""" | |
Simple File Set Downloader, berkekaragoz.com | |
Example | |
Lets say that we want to download all files starting from: | |
https://example.com//assets/file-01.zip | |
to | |
https://example.com/assets/file-30.zip |
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
$time = Read-Host -Prompt "Minutes to wait before shutdown" | |
$host.privatedata.ProgressForegroundColor = "white"; | |
while ($time -ne 1){ | |
Write-Progress "$time minutes left to shutdown. Close to cancel." | |
$time = $time - 1 | |
sleep 60 | |
} |
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 Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\QuakeChampions.exe\PerfOptions] | |
"CpuPriorityClass"=dword:00000003 |