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 | |
set -e | |
# Run script | |
# curl -fsLS https://bit.ly/inst-mitamae | bash | |
type curl >/dev/null 2>&1 || sudo apt install -qqq -y curl | |
type openssl >/dev/null 2>&1 || sudo apt install -qqq -y openssl | |
type tar >/dev/null 2>&1 || sudo apt install -qqq -y tar |
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
%%% usage | |
% diary_name = strcat('prof_', datestr(now, 'yyyymmddHHMMSS'), '.yaml'); | |
% diary_folder = pwd; | |
% diary(diary_name); | |
% convProfilerDataMAT2YAML('ProfilerData.mat'); | |
% diary off; | |
function convProfilerDataMAT2YAML(matfile) | |
narginchk(1, 1) | |
mat = load(matfile); | |
spd = mat.(cell2mat(fieldnames(mat))); |
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
param() | |
#--------------- | |
# Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://gist.github.com/hiono/15d2a5d667118afd941f31b9a6835a3e/raw/base_setup.ps1')) | |
#--------------- | |
# Set-PSDebug -Trace 2 | |
Set-StrictMode -Version Latest | |
$ProgressPreference = 'SilentlyContinue' | |
$ErrorActionPreference = 'Stop' | |
$validExitCodes = @(0, 1605, 1614, 1641, 3010) | |
trap { |
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
# Layout Poetry originally from | |
# https://github.com/direnv/direnv/issues/592 | |
layout_poetry() { | |
if [[ ! -f pyproject.toml ]]; then | |
log_error 'No pyproject.toml found. Use `poetry new` or `poetry init` to cr | |
exit 2 | |
fi | |
local VENV=$(poetry env list --full-path | cut -d' ' -f1) |
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/sh | |
# usage | |
# curl -s https://gist.githubusercontent.com/hiono/805800f242672ca15198fb151c2d86e9/raw | sudo bash | |
set -o errexit | |
set -o nounset | |
# Docker | |
apt remove --quiet --yes docker docker-engine docker.io containerd runc || true | |
apt update |
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 | |
# usage | |
# curl -s https://gist.githubusercontent.com/hiono/9c1e602d5307d0dc1415007866eb64a0/raw | bash | |
set -e | |
set -v | |
sudo apt -qq update | |
# addtopath | |
curl -s https://gist.githubusercontent.com/ccoomber/5886028/raw >> ~/.bashrc |
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
# | |
# Setup for data platform demo environment | |
# Learn more: http://boxstarter.org/Learn/WebLauncher | |
# | |
# Install manually | |
#---- セットアップ用の一時的な設定--- | |
Update-ExecutionPolicy Unrestricted | |
Disable-UAC |
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
# | |
# Setup for data platform demo environment | |
# Learn more: http://boxstarter.org/Learn/WebLauncher | |
# | |
# Install manually | |
#---- セットアップ用の一時的な設定--- | |
Update-ExecutionPolicy Unrestricted | |
Disable-UAC |
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
# | |
# Setup for data platform demo environment | |
# Learn more: http://boxstarter.org/Learn/WebLauncher | |
# | |
# Install manually | |
#---- セットアップ用の一時的な設定--- | |
Update-ExecutionPolicy Unrestricted | |
Disable-UAC |
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
# Orig: http://torumakabe.github.io/post/intro_boxstarter/ | |
# Learn more: http://boxstarter.org/Learn/WebLauncher | |
# Chocolateyパッケージがないもの、パッケージ更新が遅いものは別途入れます。メモです。 | |
# Install manually (Ubuntu, VS, snip, Azure CLI/PS/Storage Explorer, Terraform, Go, 1Password 6, Driver Management Tool) | |
#---- TEMPORARY --- | |
Disable-UAC | |
#--- Fonts --- |
NewerOlder