ブラウザでBoxのフォルダを開いている時に、当該フォルダをBoxDrive(Windows Explorer)で開きたくなることがある。そんな時にこのブックマークレットを使用すれば、いい感じにパスをコピーできる。
以下で公開されているブックマークレットを元に修正したもの。
- (1) 階層メニューのパスがコピーされない場合がある不具合を修正
ブラウザでBoxのフォルダを開いている時に、当該フォルダをBoxDrive(Windows Explorer)で開きたくなることがある。そんな時にこのブックマークレットを使用すれば、いい感じにパスをコピーできる。
以下で公開されているブックマークレットを元に修正したもの。
@powershell -NoProfile -ExecutionPolicy Unrestricted "&([ScriptBlock]::Create((cat \"%~f0\" | ?{$_.ReadCount -gt 1}) -join \"`n\"))" %* & goto:eof | |
$Signature = @' | |
[DllImport("user32.dll")] | |
public static extern void mouse_event(long dwFlags, long dx, long dy, long cButtons, long dwExtraInfo); | |
'@ | |
$MouseEvent = Add-Type -MemberDefinition $Signature -Name "Win32MouseEvent" -Namespace Win32Functions -PassThru | |
echo "ASSaver.ps1 started." |
#!/usr/bin/env python | |
# | |
# Trac Wiki to Markdown converter | |
# | |
# Copyright(c) 2019 Keisuke MORI ([email protected]) | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. |
#!/bin/sh | |
# | |
# git spec-import | |
# a git extention to import patches from the RPM spec file to a git branch | |
# | |
# Copyright(c) 2019 Keisuke MORI ([email protected]) | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 |
#!/usr/bin/env python | |
# | |
# Trac Wiki to Markdown converter | |
# | |
# Copyright(c) 2019 Keisuke MORI ([email protected]) | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. |
$ curl -L -O https://www.linbit.com/downloads/drbd/utils/drbd-utils-9.10.0.tar.gz | |
$ tar xfvz drbd-utils-9.10.0.tar.gz | |
$ cd drbd-utils-9.10.0/ | |
$ ./configure | |
$ make rpm RPMOPT="--without sbinsymlinks" | |
# rpm -ivh drbd-utils-9.10.0-1.el7.x86_64.rpm | |
準備しています... ################################# [100%] | |
更新中 / インストール中... | |
1:drbd-utils-9.10.0-1.el7 ################################# [100%] |
# IPaddr2-ipv6-sanitize | |
# | |
# usage: | |
# ocft make -d . IPaddr2-ipv6-sanitize | |
# ocft test -v -X IPaddr2-ipv6-sanitize | |
# | |
# inspect log files: | |
# /var/lib/resource-agents/ocft/cases/logs/IPaddr2-ipv6-sanitize.log | |
# /var/lib/heartbeat/trace_ra/IPaddr2/* |
- hosts: 127.0.0.1 | |
connection: local | |
become: true | |
max_fail_percentage: 0 | |
tasks: | |
- name: debug | |
debug: | |
var: ansible_facts |
# invoke as: | |
# powershell -NoProfile -ExecutionPolicy Unrestricted -NonInteractive .\findif.ps1 | |
# | |
Param( | |
[Parameter(Mandatory=$True,Position=1)][string]$IPAddress, | |
[Parameter(Mandatory=$True,Position=2)][string]$InterfaceAddress | |
) | |
# check if the ipaddr is already assigned |
#!/usr/bin/env python | |
import logging | |
import os | |
import signal | |
import sys | |
import win32serviceutil | |
logging.basicConfig( |