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
#!/bin/bash | |
# for Ubuntu | |
# Install pre-requirements | |
sudo apt-get update | |
sudo apt-get install -y chromium-codecs-ffmpeg-extra | |
# Import to opera | |
sudo ln -sf /usr/lib/chromium-browser/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so |
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
$objects_dir = "C:\Users\araki-mk\AppData\Roaming\.minecraft\assets\objects" # Full path to .minecraft/assets/objects | |
$listjson = "C:\Users\araki-mk\AppData\Roaming\.minecraft\assets\indexes\1.16.json" # Full path to json file in .minecraft/assets/indexes | |
$exportdir = "C:\Users\araki-mk\AppData\Roaming\.minecraft\assets\extracted" # Full path to export directory | |
# =================== | |
$json = Get-Content $listjson | |
$list = ConvertFrom-Json -InputObject $json |
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
#バックアップデータを保持しない | |
*.backup | |
#キャッシュを保持しない | |
cache | |
.sass-cache | |
#メールの設定を保持しない | |
mail_setting.yaml |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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
#!/bin/bash | |
destdir=/mnt/backupstorage | |
date=$(date +"%Y%m%d") | |
for f in /var/lib/libvirt/maas-images/* ;do | |
fn=$(basename -- $f) | |
dest="$destdir/$date-$fn.qcow2" | |
echo "$f => $dest" | |
qemu-img convert -c -f raw -O qcow2 $f $dest |
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 number | |
syntax enable | |
set showmatch | |
set hlsearch | |
set incsearch | |
set ignorecase | |
set smartindent | |
set autoindent | |
set expandtab | |
set laststatus=2 |
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
>docker run --rm -it -v "/c/temp/mvd:/hoge/fuga/foo/bar/foo2/bar2/hoge2/fuga2/.log.jar:ro" -v "/dev/zero:/hoge/fuga/foo/bar/foo.jar:ro" -v "/dev/zero:/hoge/fuga/foo/foo.jar:ro" -v "/dev/zero:/hoge/fuga/foo.jar:ro" -v "/dev/zero:/hoge/foo.jar:ro" -v "/dev/zero:/foo.jar:ro" --network none mcr.microsoft.com/openjdk/jdk:17-ubuntu java -jar /hoge/fuga/foo/bar/foo2/bar2/hoge2/fuga2/.log.jar | |
Loading jar file: /lib/jvm/msopenjdk-17-amd64/lib/jrt-fs.jar | |
Loading jar file: /usr/lib/jvm/msopenjdk-17-amd64/lib/jrt-fs.jar | |
Loading jar file: /proc/self/task/1/cwd/foo.jar | |
java.util.zip.ZipException: zip file is empty | |
at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1598) | |
at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1382) | |
at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1477) | |
at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1315) | |
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1277) |
OlderNewer