Skip to content

Instantly share code, notes, and snippets.

View xenophy's full-sized avatar

Xenophy.CO.,LTD xenophy

View GitHub Profile
@xenophy
xenophy / setup_nuxt3_prisma.sh
Created January 13, 2023 15:15
Setup Nuxt3 + Prisma(SQLite)
#!/bin/bash
if [ $# -ne 1 ]; then
echo "プロジェクト名を設定設定してください。" 1>&2
exit 1
fi
# プロジェクト名設定
PROJECT_NAME=$1
dnf group install "Development Tools" -y
cd ~
git clone https://github.com/jhawthorn/fzy.git
cd fzy
@xenophy
xenophy / seqgen.bat
Created May 26, 2020 23:59
ffmpegを使って、動画ファイルをドラッグアンドドロップでTIFFシーケンスに分割するバッチファイル
@ECHO OFF
REM ffmpegパス設定
set BIN_PATH=C:\ffmpeg-3.4.2-win64-static\bin
REM 出力先ディレクトリ指定
set DEST_DIR=D:\01_Movie\80_Sequence
# IP Masquerade using Firewalld for CentOS 8.1
#
# [Public Server]
# "eth0": "globalIP" - connected router or WAN
# "eth1": "10.0.0.1" - connected local switch
#
# [Local Server]
# "eth0": "10.0.1.1" - connected local switch
#
#
# [Setup Desktop Environment]
dnf groupinstall -y "Server with GUI";
dnf install -y xrdp;
systemctl enable xrdp --now;
systemctl status xrdp;
# Google Chrome
cd;
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm;
#
# [ Setup phpenv w composer, rbenv, pyenv for CentOS 8.1 ]
#
# exec as root user.
#
#
# Packages
#
# remi and epel and enable PowerTools.
# and setup "dnf update" automaticly.
if has('vim_starting')
" 挿入モード時に非点滅の縦棒タイプのカーソル
let &t_SI .= "\e[6 q"
" ノーマルモード時に非点滅のブロックタイプのカーソル
let &t_EI .= "\e[2 q"
" 置換モード時に非点滅の下線タイプのカーソル
let &t_SR .= "\e[4 q"
endif
@xenophy
xenophy / selectableffmpeg.bat
Created October 26, 2019 09:52
Selectable BatchFile for ffmpeg(any)
rem preparation command
set pwshcmd=powershell -noprofile -command "&{[System.Reflection.Assembly]::LoadWithPartialName('System.windows.forms') | Out-Null;$OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog; $OpenFileDialog.ShowDialog()|out-null; $OpenFileDialog.FileName}"
rem exec commands powershell and get result in FileName variable
for /f "delims=" %%I in ('%pwshcmd%') do set "FileName=%%I"
@echo off
setlocal
set "psCommand="(new-object -COM 'Shell.Application')^
@xenophy
xenophy / setup.sh
Created February 5, 2017 17:36
Unity Project Setup .gitignore and Asset directories.
#!/bin/sh
function setup() {
dirs=()
dirs=("${dirs[@]}" "Scenes")
dirs=("${dirs[@]}" "Prefabs")
dirs=("${dirs[@]}" "Scripts")
dirs=("${dirs[@]}" "Animations")
dirs=("${dirs[@]}" "Materials")
/**
* Some Class
*/
export default class Some {
}
/**
* boot process
*/
(function(global) {