Skip to content

Instantly share code, notes, and snippets.

@Milly
Milly / netvolante-update.lua
Created May 13, 2014 12:01
Netvolante DNS サービスを多段ルータの内側で利用する Lua スクリプト
-- netvolante-update.lua
-- Last Modified: 13 May 2014.
--[[
# brief
Netvolante DNS サービスを多段ルータの内側で利用する Lua スクリプトです。
VLAN ポートに一時的にグローバルIPを付与して Netvolante サービスに登録を行います。
@Milly
Milly / init.cmd
Created November 11, 2019 06:25
Inject clink to cmd.exe, if it is interactive running.
@setlocal enableextensions disabledelayedexpansion
@echo off
if not x%CMDNOINIT% == x goto :done
call :check_interactive "%CMDCMDLINE:"=""%"
if ERRORLEVEL 2 goto :interactive_silent
if ERRORLEVEL 1 goto :interactive
goto :done
@Milly
Milly / wsl-open
Created October 16, 2019 08:21
Open a file or directory by the default application from command in the wsl, Like xdg-open.
#!/bin/bash -eu
target=${1:-.}
cmd=
if [[ -d $target ]]; then
# open directory
cmd=explorer.exe
fi
if [[ -e $target ]]; then
@Milly
Milly / # cmigemo - 2019-04-16_10-43-26.txt
Created April 16, 2019 03:32
cmigemo on Ubuntu 18.04.2 LTS - Homebrew build logs
Homebrew build logs for cmigemo on Ubuntu 18.04.2 LTS
Build date: 2019-04-16 10:43:26
@Milly
Milly / tumblr_control.user.js
Last active September 2, 2018 17:47
Add control buttons to tumblr post (Reblog, Edit) Tumblr の個別ポストに「Reblog」「Edit」ボタンを追加します。
// ==UserScript==
// @name Tumblr Control
// @namespace https://twitter.com/Milly
// @description Add control buttons to tumblr post (Reblog, Edit)
// @include http://*.tumblr.com/post/*
// @grant GM_addStyle
// ==/UserScript==
GM_addStyle([
'.my-tumblr-control-buttons {',
@Milly
Milly / googlemapsshowcoords.user.js
Last active September 2, 2018 17:47
Creates a link on Google Maps to show the map centre lat/lon coordinates.
// ==UserScript==
// @author Milly
// @name Google Maps Show Coords Link
// @namespace http://d.hatena.ne.jp/MillyC/
// @description Creates a link on Google Maps to show the map centre lat/lon coordinates.
// @include http://maps.google.tld/*
// @include http://www.google.tld/local*
// @include http://www.google.tld/maps*
// @include https://maps.google.tld/*
// @include https://www.google.tld/local*
@Milly
Milly / Flickr_short_link.user.js
Last active September 2, 2018 17:47
Add short url link to flicker photostream and photo page.
// ==UserScript==
// @name Clean Google links
// @namespace http://d.hatena.ne.jp/MillyC/
// @description clean links in Google search result page (remove "onmousedown" attribute).
// @include http://www.google.com/search?*
// @include https://www.google.com/search?*
// @include http://www.google.co.*/search?*
// @include https://www.google.co.*/search?*
// @grant none
// ==/UserScript==
@Milly
Milly / .gitattribute
Last active September 2, 2018 17:44
To clean `*.ipynb` files before git-commit.
*.ipynb filter=clean-ipynb
@Milly
Milly / README.md
Last active September 2, 2018 13:03
Twipla printlist enhance. for Greasemonky user script