Skip to content

Instantly share code, notes, and snippets.

@wakaba
wakaba / a.json
Last active April 21, 2024 02:35
{
"success": true,
"result": {
},
"type": "packref",
"source": {
"type": "ckan",
"url": "https://data.gsj.jp/gkan/dataset/gsj_map_1233"
}
}
@wakaba
wakaba / ss.js
Last active February 21, 2024 05:21
async function _capture (e) {
const stream = await navigator.mediaDevices.getDisplayMedia ({
video: {
cursor: "never",
},
audio: false,
displaySurface: "browser",
preferCurrentTab: true,
selfBrowserSurface: "include",
});
You are granted a license to use, reproduce, and create derivative
works of these files.
#!/usr/bin/perl
open $file, '>', '.travis-merge';
print $file q{#!/bin/sh
if [ "$TRAVIS_BRANCH" = "staging" ] || [ "$TRAVIS_BRANCH" = "nightly" ] || [ "$TRAVIS_BRANCH" = "nightlywp" ]; then
echo "Merge $TRAVIS_BRANCH ($TRAVIS_COMMIT) into master..."
git config --global user.email "merger@travis.test"
git config --global user.name "Travis Merger"
git config --global url.https://$TRAVISMERGER_GH_TOKEN:@github.com/.pushInsteadOf https://github.com/
if [ -s "$(git rev-parse --git-dir)/shallow" ]; then
@wakaba
wakaba / bookmarklet
Last active February 16, 2017 07:34
javascript:var s=document.createElement('script');s.src="https://gist.githack.com/wakaba/b90f120b2617afe5c2fc4d08d84e801f/raw/script.js";document.body.appendChild(s);void(0)

😃 :haha:

...
{
"volumesFrom": [],
"portMappings": [],
"command": [],
"environment": [
{
"name": "apikey",
"value": "XXX"
}
- "../../modules/json-functions-xs" tests
- "../../modules/json-ps" tests
- "../../modules/web-encodings" tests build
- "../../modules/web-url" tests build
- "../../modules/web-dom" tests build
- "../../modules/web-css" tests build
- "../../modules/web-markup" tests build
- "../../modules/web-useragent-functions" tests lwp anyeventsocks oauth wsse cli testws curl
- "../../modules/wanage" tests build datetime mp
- "../../modules/temma" tests
use strict;
use warnings;
$ENV{LANG} = 'C';
my @host = qw(
www.google.com
mail.google.com
github.com
gist.github.com
gist.githubusercontent.com
*~
/local/
/perl
/prove
/plackup
/Makefile.setupenv
/cin
/config/perl/libs.txt
/config/
/modules/