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
MS Authenticatorに設定していた大量のTOTP情報はすべて消えてしまった。けどIIJ Smartkeyは何もせず自動で復元された。 | |
うーん。これは一体どういうことなのか。 |
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
-=ー | |
:=ー | |
;=っ | |
a=あ | |
ba=ば | |
bd=べん | |
be=べ | |
bh=ぶう | |
bi=び | |
bj=ぶん |
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
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2") | |
Set colItems = objWMIService.ExecQuery("Select * from Win32_NetworkAdapterConfiguration Where IPEnabled = True") | |
For Each objItem in colItems | |
If Not IsNull(objItem.IPAddress) Then | |
For Each strIPAddress in objItem.IPAddress | |
WScript.Echo "IP Address: http://" & strIPAddress & ":7860" | |
Next | |
End If | |
Next |
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 | |
# https://qiita.com/croquisdukke/items/9c5d8933496ba6729c78 | |
import time | |
import os | |
import sys | |
import serial | |
import datetime |
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
# | |
# 以下のURLを参考に適当なショートカットを作成して、リンク先を powershell -NoProfile -File ファイル名(.ps1) とし | |
# http://misohena.jp/blog/2017-10-16-drag-and-drop-to-powershell-script.html | |
# 画像ファイルをドロップするとファイル名の手前に撮影日時をつけてくれる | |
# 例外処理はいれてないのでバックアップとった上で動かす必要がある | |
Add-Type -AssemblyName System.Drawing | |
Add-Type -AssemblyName System.Windows.Forms | |
# Write-Output hoge |
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
G91 ;Relative positioning | |
G1 E-2 F2700 ;Retract a bit | |
G1 E-2 Z0.2 F2400 ;Retract and raise Z | |
G1 X5 Y5 F3000 ;Wipe out | |
G1 Z10 ;Raise Z more | |
G90 ;Absolute positionning | |
G1 X0 Y{machine_depth} ;Present print | |
M106 S0 ;Turn-off fan | |
M104 S0 ;Turn-off hotend |
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
<?php | |
define('MIXI_EMAIL', '[email protected]'); | |
define('MIXI_PASSWORD', 'pass'); | |
/** | |
* mixiの日記削除スクリプト | |
* | |
* @author Kiryu Tsukimiya <[email protected]> | |
*/ |
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
<?php | |
$rows1 = [['id' => 1], ['id' => 2]]; | |
$rows2 = [[]]; | |
$rows3 = []; | |
function pattern1($rows) | |
{ |
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
/* | |
Fade | |
This example shows how to fade an LED on pin 9 using the analogWrite() | |
function. | |
The analogWrite() function uses PWM, so if you want to change the pin you're | |
using, be sure to use another PWM capable pin. On most Arduino, the PWM pins | |
are identified with a "~" sign, like ~3, ~5, ~6, ~9, ~10 and ~11. |
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
<?php | |
function hex2ascii($hex) | |
{ | |
$ascii = ''; | |
$hex = str_replace(" ", "", $hex); | |
for($i = 0; $i < strlen($hex); $i = $i+2) | |
$ascii .= chr(hexdec(substr($hex, $i, 2))); | |
return($ascii); | |
} |
NewerOlder