Install the Windows Terminal from the Microsoft Store. This allows you to always be on the latest version.
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 | |
pushd %CD% | |
FOR /F "tokens=2* skip=2" %%a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 24010" /v "InstallLocation"') DO set RW_INSTALL_LOCATION=%%b | |
ECHO. | |
ECHO Make sure you have 7zip installed! | |
ECHO Run this script as administrator, otherwise files may not be created/moved. | |
ECHO. |
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 { exec } = require('child_process') | |
const fs = require('fs') | |
const path = require('path') | |
let lastDir = '' | |
let currDir | |
const recurse = async (dir, filenames, writeStream) => { | |
currDir = dir | |
const stats = filenames.map(async filename => { |
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
<?php | |
$counter = 0; | |
$flags = array(); | |
$db1; | |
$db2; | |
$db1_table_prefix = ''; | |
$db2_table_prefix = ''; | |
$truncate = false; | |
$truncate_user_groups = false; | |
$batch_size = 1000; |
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
[ | |
{ | |
"key": "No Event", | |
"hidUsagePage": 7, | |
"hidUsageID": 0, | |
"ps2Set1Make": [ | |
null | |
], | |
"ps2Set1Break": [ | |
null |
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
var gradient = ["#11a7b6", "#29b827", "#f8bf00", "#f66d31", "#ef66a0"] | |
var parts = gradient.map((x, i, self) => `${x} ${i / self.length * 100}%, ${x} ${(i + 1) / self.length * 100}%`) | |
var result = `linear-gradient(90deg, ${parts.join(', ')})` |
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
var proto = Element.prototype; | |
var slice = Function.call.bind(Array.prototype.slice); | |
var matches = Function.call.bind( | |
proto.matchesSelector || | |
proto.mozMatchesSelector || | |
proto.webkitMatchesSelector || | |
proto.msMatchesSelector || | |
proto.oMatchesSelector | |
); |
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
ld --verbose | grep SEARCH_DIR | tr -s ' ;' \\012 | |
gcc -print-search-dirs | sed '/^lib/b 1;d;:1;s,/[^/.][^/]*/\.\./,/,;t 1;s,:[^=]*=,:;,;s,;,; ,g' | tr \; \\012 |
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
magick mogrify -resize 3000 -density 300 -background white -channel RGB -negate -flatten -path output *.pdf |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Programmer Benchmark</title> | |
</head> | |
<body> | |
NewerOlder