View onewriter.d.ts
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
// https://1writerapp.com/docs/js | |
interface Editor { | |
/** | |
* Returns the range of the current selection in the editor. | |
* The returned value is an array of two integer values, contains the positions of the first and last characters. | |
* @example | |
* ```js | |
* const range = editor.getSelectedRange(); //value of range is [5, 10] | |
* ``` |
View Ingest-Videos.ps1
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
Param( | |
[Parameter(Mandatory, Position = 0)] | |
[String]$Source, | |
[Parameter(Mandatory, Position = 1)] | |
[String]$Destination, | |
[System.DateOnly]$Date = ([System.DateOnly]::FromDateTime([System.DateTime]::Now)), | |
[Parameter(Mandatory, Position = 2)] | |
[String]$Name | |
) |
View inoreader-open-in-background-tab.user.js
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
// ==UserScript== | |
// @name Inoreader open in background tab | |
// @namespace http://mono0x.net/ | |
// @version 0.0.1 | |
// @author mono | |
// @match https://www.inoreader.com/* | |
// @match https://irodr.netlify.app/* | |
// @grant GM_openInTab | |
// @run-at document-end | |
// ==/UserScript== |
View Rename-Videos.ps1
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
$ErrorActionPreference = 'Stop' | |
foreach ($file in ($args | ForEach-Object { Get-Item $_ } | Sort-Object -Property FullName)) { | |
if ($file.Name -match '\A\d{8}-\d{6}-') { | |
# Already renamed (Skip) | |
continue | |
} | |
$timeOptions = if ($file.Name.ToUpper().StartsWith("GX")) { | |
# GoPro (Shift time zone) |
View Concat-Videos.ps1
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
$ErrorActionPreference = 'Stop' | |
$outputPath = "D:\Desktop\$(date '+%Y%m%d%H%M%S').mp4" | |
$listFile = New-TemporaryFile | |
try { | |
$files = $args | ForEach-Object { Get-Item $_ } | |
foreach ($file in $files) { | |
Out-File -Encoding UTF8 -Append -FilePath $listFile -InputObject "file '$($file.FullName)'" | |
} |
View package-lock.json
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": "gatsby-remark-oembed-mdx-site", | |
"version": "1.0.0", | |
"lockfileVersion": 1, | |
"requires": true, | |
"dependencies": { | |
"@ardatan/aggregate-error": { | |
"version": "0.0.6", | |
"resolved": "https://registry.npmjs.org/@ardatan/aggregate-error/-/aggregate-error-0.0.6.tgz", | |
"integrity": "sha512-vyrkEHG1jrukmzTPtyWB4NLPauUw5bQeg4uhn8f+1SSynmrOcyvlb1GKQjjgoBzElLdfXCRYX8UnBlhklOHYRQ==", |
View search.js
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 { useMemo } from "react" | |
import { useStaticQuery } from "gatsby" | |
export const useSearch = (searching) => { | |
const { allMarkdownRemark } = useStaticQuery(graphql` | |
query { | |
allMarkdownRemark( | |
sort: { order: DESC, fields: [frontmatter___date] }, | |
) { | |
edges { |
View wakeonlan.ps1
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
$ErrorActionPreference = "Stop" | |
$macAddresses = @($Args | ForEach-Object { $_.Replace(":", "-") }) | |
$header = [byte[]](@(0xFF) * 6) | |
foreach ($macAddress in $macAddresses) { | |
$payload = [byte[]]($macAddress.split("-") | ForEach-Object { [Convert]::ToInt32($_, 16) }) | |
$magicPacket = $header + $payload * 16 | |
$client = New-Object System.Net.Sockets.UdpClient |
View font-face-for-windows.user.css
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
/* ==UserStyle== | |
@name font-face for Windows | |
@namespace https://gist.github.com/mono0x | |
@version 0.0.1 | |
@license MIT | |
==/UserStyle== */ | |
@font-face { | |
font-family: "MS Pゴシック"; | |
src: local("Meiryo"), local("メイリオ"), local("MS Pゴシック"); | |
} |
View font-face-for-macos.user.css
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
/* ==UserStyle== | |
@name font-face for macOS | |
@namespace https://gist.github.com/mono0x | |
@version 0.0.1 | |
@license MIT | |
==/UserStyle== */ | |
@font-face { | |
font-family: "MS PGothic"; | |
src: local("Hiragino Kaku Gothic ProN"); | |
} |
NewerOlder