View debug.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
const fs = require("fs") | |
const matter = require("gray-matter") | |
fs.readFileSync("test.md", "utf-8") | |
/* test.md body | |
--- | |
author_association: OWNER | |
created_at: '2022-05-08T09:01:18Z' | |
html_url: https://github.com/himanoa/times-himanoa/issues/2#issuecomment-1120378582 | |
id: 1120378582 | |
issue_url: https://api.github.com/repos/himanoa/times-himanoa/issues/2 |
View pretty-output
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
#!/usr/bin/env python | |
from argparse import ArgumentParser | |
import os | |
import subprocess | |
def run(): | |
usage = 'Usage: pretty-output <command_name> [...argv]' | |
argparser = ArgumentParser(usage=usage) | |
argparser.add_argument('command_name', help='Execute command', nargs="*") |
View change-path-from-win-to-wsl2
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
#!/usr/bin/env zx | |
const path = process.argv[3] | |
const matches = path.match(/^([A-Z]):(.+\n?)/) | |
if(matches) { | |
const [_, driveLetter, path] = matches | |
const unixPath = path.replace(/\\/g, "/").replace(/([ \(\)])/g, '\\$1'); | |
const lowerDriveLetter = driveLetter.toLowerCase(); | |
console.log(`/mnt/${lowerDriveLetter}${unixPath}`); |
View gist:338b97e37b8d259d5f37c80a143cb219
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
console.log("hello world") |
View xdg-open
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
#!/usr/bin/env bash | |
echo $1 | |
xargs cmd.exe /c start $1 |
View circleci-context-register-command-builder.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
/* | |
Requirements: [circleci](https://github.com/CircleCI-Public/circleci-cli) | |
*/ | |
const orgName = "YOUR ORGNAME"; | |
const contexts = [ | |
{ | |
name: "context-name", | |
// 環境変数名をkey 環境変数に代入したい値をvalueに入れる | |
}, |
View vlueprint-sparql
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
$ curl -X POST 'https://vlueprint.org/sparql' -H 'Content-Type: application/sparql-query' -H 'Accept: "application/sparql-results+json"' -d @foo.query -vvv | |
Note: Unnecessary use of -X or --request, POST is already inferred. | |
* Trying 216.239.34.21:443... * Connected to vlueprint.org (216.239.34.21) port 443 (#0) | |
* ALPN, offering h2 | |
* ALPN, offering http/1.1 | |
* successfully set certificate verify locations: | |
* CAfile: /etc/ssl/certs/ca-certificates.crt | |
CApath: none | |
* TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): | |
* TLSv1.3 (IN), TLS handshake, Certificate (11): |
View vimium
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
# Insert your preferred key mappings here. | |
map ge scrollToBottom | |
map <c-u> scrollPageUp | |
map <c-d> scrollPageDown | |
map ga visitPreviousTab | |
map x enterVisualMode | |
map X enterVisualLineMode | |
map d removeTab | |
map D restoreTab |
View gitconfig
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
[core] | |
editor=nvim | |
excludesFile=/Users/himanoa/.gitignore_global | |
[user] | |
name = himanoa | |
email = matsunoappy@gmail.com | |
[ghq] | |
root = /Users/himanoa/src | |
[mkrepo] | |
service = github.com |
View 俺の
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
俺の俺の俺の俺の俺の俺の俺の俺がおかしいって俺って意味か?がおかしいって俺の俺がおかしいって俺って意味か?って意味か?がおかしいって俺の俺の俺がおかしいって俺って意味か?がおかしいって俺の俺がおかしいって俺って意味か?って意味か?って意味か?がおかしいって俺の俺の俺の俺がおかしいって俺って意味か?がおかしいって俺の俺がおかしいって俺って意味か?って意味か?がおかしいって俺の俺の俺がおかしいって俺って意味か?がおかしいって俺の俺がおかしいって俺って意味か?って意味か?って意味か?って意味か?がおかしいって俺の俺の俺の俺の俺がおかしいって俺って意味か?がおかしいって俺の俺がおかしいって俺って意味か?って意味か?がおかしいって俺の俺の俺がおかしいって俺って意味か?がおかしいって俺の俺がおかしいって俺って意味か?って意味か?って意味か?がおかしいって俺の俺の俺の俺がおかしいって俺って意味か?がおかしいって俺の俺がおかしいって俺って意味か?って意味か?がおかしいって俺の俺の俺がおかしいって俺って意味か?がおかしいって俺の俺がおかしいって俺って意味か?って意味か?って意味か?って意味か?って意味か?がおかしいって俺の俺の俺の俺の俺の俺がおかしいって俺って意味か?がおかしいって俺の俺がおかしいって俺って意味か?って意味か?がおかしいって俺の俺の俺がおかしいって俺って意味か?がおかしいって俺の俺がおかしいって俺って意味か?って意味か?って意味か?がおかしいって俺の俺の俺の俺がおかしいって俺って意味か?がおかしいって俺の俺がおかしいって俺って意味か?って意味か?がおかしいって俺の俺の俺がおかしいって俺って意味か?がおかしいって俺の俺がおかしいって俺って意味か?って意味か?って意味か?って意味か?がおかしいって俺の俺の俺の俺の俺がおかしいって俺って意味か?がおかしいって俺の俺がおかしいって俺って意味か?って意味か?がおかしいって俺の俺の俺がおかしいって俺って意味か?がおかしいって俺の俺がおかしいって俺って意味か?って意味か?って意味か?がおかしいって俺の俺の俺の俺がおかしいって俺って意味か?がおかしいって俺の俺がおかしいって俺って意味か?って意味か?がおかしいって俺の俺の俺がおかしいって俺って意味か?がおかしいって俺の俺がおかしいって俺って意味か?って意味か?って意味か?って意味か?って意味か?って意味か?がおかしいって俺の俺の俺の |
NewerOlder