This file contains hidden or 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
| hexdump -v -e '16/1 "0x%02x, " "\n"' 01.vgm > dump.c |
This file contains hidden or 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
| # 実行日当月のイベントログを対象にする | |
| Get-EventLog -LogName System -After (Get-Date -Format "yyyy/MM/01") | Where-Object { | |
| # OSの起動終了時刻をイベントログサービスの開始(6005)、停止(6006)で判定 | |
| $_.EventID -eq '6005' -or $_.EventID -eq '6006' | |
| } | ForEach-Object { | |
| # イベントを日付でサマリーするためのカスタムオブジェクト生成 | |
| [PSCustomObject]@{ | |
| EventID = $_.EventID | |
| EventName = if($_.EventID -eq '6005') { "up" } else { "down" } | |
| DateGenerated = ($_.TimeGenerated).ToString("yyyy/MM/dd") |
This file contains hidden or 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
| # | |
| # Download VScode extention .vsix | |
| # https://code.visualstudio.com/docs/editor/extension-gallery#_common-questions | |
| # | |
| Param($extention_site = "https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell") | |
| $ErrorActionPreference = "stop" | |
| # setting extention site | |
| $res = Invoke-WebRequest -Uri $extention_site |
This file contains hidden or 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
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 4 | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true |
This file contains hidden or 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
| { | |
| "configurations": [ | |
| { | |
| "name": "Win32", | |
| "includePath": [ | |
| "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino", | |
| "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr\\avr\\include", | |
| "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr\\lib\\gcc\\avr\\4.9.2\\include", | |
| "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard", | |
| "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries" |
This file contains hidden or 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
| @charset "utf-8"; | |
| @font-face { | |
| font-family: Arial; | |
| src: local("ヒラギノ角ゴ ProN"); | |
| } | |
| @font-face { | |
| font-family: Osaka; | |
| src: local("ヒラギノ角ゴ ProN"); |
This file contains hidden or 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
| $command = "dir C:\Windows\System32" | |
| $info = New-Object System.Diagnostics.ProcessStartInfo | |
| $info.FileName = [System.Environment]::GetEnvironmentVariable("ComSpec") | |
| $info.Arguments = "/c " + $command | |
| $info.UseShellExecute = $false | |
| $info.RedirectStandardOutput = $true | |
| $info.CreateNoWindow = $true | |
| $info.Verb ="RunAs" |
This file contains hidden or 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
| # | |
| # プレーンな user/password 文字列からの認証情報をつくる | |
| # | |
| $username = "DOMAIN\username" | |
| $secure = ConvertTo-SecureString "xxxxxxxx" -AsPlainText -Force | |
| $credential = New-Object System.Management.Automation.PsCredential($username, $secure) | |
| # | |
| # Enter-PSSession 相手のサーバーに対話式でログインしたい場合 (exit で抜けます) | |
| # |
This file contains hidden or 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
| def builder = new ProcessBuilder("ls -laF".split("[\\s]+")) | |
| def process = builder.redirectErrorStream(true).start() | |
| process.inputStream.eachLine { println it } | |
| process.waitFor() | |
| println process.exitValue() |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
| <style type="text/css"> | |
| .box-anime-move { | |
| transition: transform 0.2s; |