Skip to content

Instantly share code, notes, and snippets.

Working from home

himanoa himanoa

Working from home
View GitHub Profile
View AC6-1.0.0→
View debug.js
const fs = require("fs")
const matter = require("gray-matter")
fs.readFileSync("", "utf-8")
/* body
author_association: OWNER
created_at: '2022-05-08T09:01:18Z'
id: 1120378582
View pretty-output
#!/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
#!/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();
View xdg-open
#!/usr/bin/env bash
echo $1
xargs cmd.exe /c start $1
himanoa / circleci-context-register-command-builder.js
Last active July 7, 2020 05:56
View circleci-context-register-command-builder.js
Requirements: [circleci](
const orgName = "YOUR ORGNAME";
const contexts = [
name: "context-name",
// 環境変数名をkey 環境変数に代入したい値をvalueに入れる
View vlueprint-sparql
$ curl -X POST '' -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 * Connected to ( 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
# 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
name = himanoa
email =
root = /Users/himanoa/src
service =