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
/** | |
* Unknown array type alias. | |
*/ | |
type TArray = unknown[]; | |
/** | |
* Unknown object type alias. | |
*/ | |
type TObject = Record<string | symbol, unknown>; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Arthur subscriptions in feedly Cloud</title> | |
</head> | |
<body> | |
<outline text="Everything" title="Everything"> | |
<outline type="rss" text="TechCrunch" title="TechCrunch" xmlUrl="http://feeds.feedburner.com/Techcrunch" htmlUrl="https://techcrunch.com" /> | |
<outline type="rss" text="TorrentFreak" title="TorrentFreak" xmlUrl="http://feeds.feedburner.com/Torrentfreak" htmlUrl="https://torrentfreak.com" /> |
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 (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) { | |
Start-Process -FilePath PowerShell.exe -Verb RunAs -ArgumentList "-ExecutionPolicy Bypass -File ""$PSCommandPath""" | |
Exit | |
} | |
Write-Host "1. Stopping Hyper-V* services" | |
$s = Get-Service | Where-Object { $_.DisplayName -like "Hyper-V*" -and $_.Status -eq "Running" } | |
$s | ForEach-Object { Stop-Service -Force $_.ServiceName } | |
Write-Host -NoNewline "2. Press ENTER to continue" |
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
# starship prompt | |
# https://starship.rs/ | |
eval "$(starship init zsh)" | |
# rtx runtime | |
# https://github.com/jdx/rtx | |
eval "$(rtx activate zsh)" | |
export PIPENV_VENV_IN_PROJECT=1 | |
export VISUAL=vim |
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 cloneDeep = require("clone-deep"); | |
const { readFileSync, existsSync } = require("fs"); | |
const path = require("path"); | |
// next-less (official plugin to integrate Less) is now | |
// deprecated so we have to provide our own solution. | |
// | |
// Next.js already provides built-in integration with CSS and Sass, but it | |
// relies on a dynamic WebPack config. generation to do it optimally. | |
// |
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 { useState, useEffect } from "react"; | |
type Serializable = | |
| null | |
| boolean | |
| number | |
| string | |
| Date | |
| { toJSON(): string } | |
| Serializable[] |
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
backgroundOrder: | |
- 13 | |
- 44 | |
- 52 | |
- 11 | |
- 51 | |
- 50 | |
- 9 | |
- 12 | |
- 14 |
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 data from a remote JSON document. | |
* | |
* @param {url} URL of the JSON document | |
* @param {path} dot notation path to the value you want to extract | |
* | |
* @return a single value extracted from the JSON. | |
* | |
* @customfunction | |
*/ |
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/usr/env bash | |
set -ue | |
# Need sudo. | |
test $(id -u) -eq 0 || { sudo $0; exit 0; } | |
# Free up port 53 | |
systemctl stop systemd-resolved | |
systemctl disabled systemd-resolved |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyGNCdo+LfOlbm+PfJZu9iAlTn6gKZMqVra/nx/IG6wFY8Cm+Zs/RlFVTCl9HHtOyCcyeEeUnwPfA2WrYR9smjs+gUZIKRE6leiOxMZXYl+QPE462EhZgKN8Nbiv2fabXIjhCnrphC8OZq7Lub246pe/zO+CSZOZWblUqwuh9XidGQttB3c/FQdj3qo9+gK6wg7xlekujTPTxaCnYislaPPX2iIxXZfQmrVnrWGnGGdQMuFDtrE41tQEVc/shI0mP5ciSH2H8uc79cg7RB54aGZQtW91Ka+Yjs+4Fi8DsplT7O1WN5yD9q7grd+1zhFilHCDxP2XaRPY+P4+4OQFoX [email protected] |