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
{ | |
"ConfigPath": { | |
"Path": "/Users/kotaro/.config/containers/podman/machine/qemu/intel.json" | |
}, | |
"CmdLine": [ | |
"/opt/homebrew/bin/qemu-system-x86_64", | |
"-m", | |
"2048", | |
"-smp", | |
"1", |
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
## docker_rosseta.yaml | |
# Reference: | |
# - https://github.com/lima-vm/lima/blob/master/examples/docker-rootful.yaml | |
# - https://github.com/lima-vm/lima/blob/master/examples/experimental/vz.yaml | |
vmType: "vz" | |
rosetta: | |
# Enable Rosetta for Linux. | |
# Hint: try `softwareupdate --install-rosetta` if Lima gets stuck at `Installing rosetta...` | |
enabled: 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
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | |
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart | |
wsl --set-default-version 2 |
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
#!/usr/bin/perl -- | |
use strict; | |
use warnings; | |
use CGI; | |
my $q = CGI->new; | |
my %headers = map { $_ => $q->http($_) } $q->http(); | |
print $q->header('text/plain'); | |
print "------------------------------\n"; |
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
sudo yum install -y https://forensics.cert.org/cert-forensics-tools-release-el7.rpm | |
sudo yum install -y exfat-utils | |
sudo mount -t exfat /dev/sda1 /media/ssd/ |
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
#!/bin/bash | |
# Setup for squid cache server (proxy server) | |
if [ ! $1 ]; then | |
echo "not args." | |
exit 1 | |
fi | |
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"> | |
<title>テスト</title> | |
<meta name="viewport" content="width=device-width, height=device-height, viewport-fit=coverw"> | |
</head> | |
<body> | |
</body> |
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
foreach ($_SERVER as $key => $value) { | |
echo($key . ' = ' . $value . '<br>'); | |
} |
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
git archive master --format=zip -o 出力ファイル名 --prefix=data/ `git diff --name-only --diff-filter=d <commit1> <commit2>` |
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
#!/usr/bin/bash | |
find /opt/bacula/backups -type f | grep -v "part.1" | xargs rm -f |
NewerOlder