Skip to content

Instantly share code, notes, and snippets.

View zinntikumugai's full-sized avatar

じんさん zinntikumugai

View GitHub Profile
_ _ _____ _____ _____ _____ _
| \ | || ___|_ _| / __ \ |_ _| | |
| \| || |__ | | | / \/ ___ _ __ ___ | | ___ ___| |_
| . ` || __| | | | | / _ \| '__/ _ \ | |/ _ \/ __| __|
_| |\ || |___ | | | \__/\ (_) | | | __/ | | __/\__ \ |_
(_)_| \_/\____/ \_/ \____/\___/|_| \___| \_/\___||___/\__|
[Environment]
Environment.CommandLine: "F:\DATA\Programming\Project\dotNet Core Test\dotNet Core Test\bin\Debug\netcoreapp2.0\dotNet Core Test.dll"
Environment.CurrentDirectory: F:\DATA\Programming\Project\dotNet Core Test\dotNet Core Test
_ _ _____ _____ _____ _____ _
| \ | || ___|_ _| / __ \ |_ _| | |
| \| || |__ | | | / \/ ___ _ __ ___ | | ___ ___| |_
| . ` || __| | | | | / _ \| '__/ _ \ | |/ _ \/ __| __|
_| |\ || |___ | | | \__/\ (_) | | | __/ | | __/\__ \ |_
(_)_| \_/\____/ \_/ \____/\___/|_| \___| \_/\___||___/\__|
[Environment]
Environment.CommandLine: "/home/user/dotNet-Core-Test/dotNet Core Test/bin/Debug/netcoreapp2.0/dotNet Core Test.dll"
Environment.CurrentDirectory: /home/user/dotNet-Core-Test/dotNet Core Test
@echo off
cd /d %~dp0
youtube-dl.exe --format 91 sKIbH-gXmX0 -o - | "c:\Program Files\VideoLAN\VLC\vlc.exe" -
pause
@zinntikumugai
zinntikumugai / randm.vbs
Created October 29, 2017 12:34
サクラエディタで行をシャッフルする by http://moritora.seesaa.net/article/409483699.html
Option Explicit
Function DV(A, B)
DV = Fix(A / B)
End Function
Function RD(A, B)
RD = DV(A, B) * B
End Function
@zinntikumugai
zinntikumugai / allupdate.sh
Last active July 18, 2017 19:04
自動ですべて更新ししてみるテスト
#!/bin/sh
echo "########################"
echo "## All Auto UPdates ##"
echo "########################"
echo ""
sleep time 2s
apt-get update -y
apt-get upgrade -y
apt-get dist-upgrade -y
@zinntikumugai
zinntikumugai / autoremove.bat
Created April 28, 2017 23:29
一部を覗いて「.m4a」を削除する
@echo off
cd /d %~dp0
setlocal enabledelayedexpansion
for /f "usebackq delims=" %%i in (`dir /B /S *.m4a`) do (
echo ----------------------------------------------------
echo %%i
echo.
del %%i
@zinntikumugai
zinntikumugai / mp4tom4a.bat
Last active April 28, 2017 23:07
スペース対応版 「.mp4」から音声抽出「.m4a」AAC版
@echo off
cd /d %~dp0
setlocal enabledelayedexpansion
rem ||行末のスペース削除
rem -----------------------
set FFMPEG=ffmpeg.exe -y -i
set FFMPEGOUT=-acodec copy
rem -----------------------
rem ||「.mp4」のファイルを取得(スペースありも可)
@zinntikumugai
zinntikumugai / mp4tom4a.bat
Created April 28, 2017 15:17
「.mp4」ファイルの音声(AAC)のみ抽出して、「.m4a」ファイルとして保存するスクリプト
@echo off
cd /d %~dp0
setlocal enabledelayedexpansion
rem || ffmpegの設定及び引数
rem ------------------------
set FFMPEG=ffmpeg.exe -y -i
set FFMPEGOUT= -acodec copy
rem ------------------------
@zinntikumugai
zinntikumugai / ddns.lua
Created April 23, 2017 11:46
[Lua]DDNSの更新スクリプト(未完成)
urltable = {
--hostname directory UseIPaddress
{"www.mydns.jp", "/directip.html?MID=mydnsxxxxxx&PWD=xxxxxxxxxxx&IPV4ADDR=",true},
{"f5.si", "/update.php?domain=xxxxxxxxx&password=xxxxxxxxxx", false}
}
-- http://symfoware.blog68.fc2.com/blog-entry-455.html
function split(str, delim)
if string.find(str, delim) == nil then
/*
* 7セグLEDx4
*/
#define DATAPIN 8
#define LATCHPIN 9
#define CLOCKPIN 10
//7セグLED 表示用
int data[][8] = {
{ 1,1,1,1,1,1,0,0}, //0